{"id":20657806,"url":"https://github.com/harkalygergo/wp-turbo","last_synced_at":"2025-04-12T21:35:43.105Z","repository":{"id":62941105,"uuid":"494589399","full_name":"harkalygergo/WP-Turbo","owner":"harkalygergo","description":"Universal plugin to make WordPress better, faster, safer. Feel free to use. Options: enable SKU-based search for WooCommerce, exclude featured products from products loop.","archived":false,"fork":false,"pushed_at":"2025-01-28T13:09:37.000Z","size":1815,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T15:48:06.967Z","etag":null,"topics":["php","woocommerce","wordpress"],"latest_commit_sha":null,"homepage":"https://www.harkalygergo.hu","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harkalygergo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-20T19:48:55.000Z","updated_at":"2025-01-28T13:09:41.000Z","dependencies_parsed_at":"2023-09-23T06:37:54.607Z","dependency_job_id":"1c63c198-ec99-48bc-b202-d49f4843221a","html_url":"https://github.com/harkalygergo/WP-Turbo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harkalygergo%2FWP-Turbo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harkalygergo%2FWP-Turbo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harkalygergo%2FWP-Turbo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harkalygergo%2FWP-Turbo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harkalygergo","download_url":"https://codeload.github.com/harkalygergo/WP-Turbo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637194,"owners_count":21137530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","woocommerce","wordpress"],"created_at":"2024-11-16T18:23:20.651Z","updated_at":"2025-04-12T21:35:43.083Z","avatar_url":"https://github.com/harkalygergo.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WP Turbo\n\nMultisite compatible plugin to make WordPress better, faster, safer. Universally. Feel free to use.\n\nIt's free and open-source and always will be.\n\n---\n\n## Advantages\n\n### General\n\n- change default e-mail sender name and address to `blogname` name and `admin_email`\n- add user registration date column for Users dashboard page\n- add user last login function and column for Users dashboard page\n- add month-based image as background on login page\n- enable CSV mime type for uploading on dashboard\n- add phone number, Facebook and Instagram URL\n\n### Page\n\n- enable page excerpt\n\n### SEO\n\n- add description meta for post/page/product and categories\n\n### WooCommerce\n\n- option to remove wc-blocks styles and scripts from frontend\n- enable SKU-based search for WooCommerce\n- option to exclude featured products from products loop\n- option to add product category to product meta title\n- title, description and keywords meta for WooCommerce product categories\n- show cart sessions list in dashboard\n\n### Development\n\n- simple `dump($variable, $isExit)` function for debug\n- custom style CSS minifier for faster loading\n- separate, modifiable and cache-able files for JavaScript code into head, after body start and footer\n- option to add \"logged-in-user-[ID]\" class to body\n- `phpinfo()` result in dashboard\n- logging plugin updates\n\n---\n\n## Usage\n\nRun this code on server to prevent follow style and script changes:\n\n```shell\ncomposer install\ncomposer dump-autoload -o\ngit update-index --assume-unchanged local/style.css\ngit update-index --assume-unchanged local/style.min.css\n```\n\n### Multisite\n\nThis plugin is multisite compatible, just need to add this line to `wp-config.php` to enable WordPress Multisite (WPMU).\n\n```php\ndefine('WP_ALLOW_MULTISITE', true);\n```\n\n### Debug\n\nChange `define( 'WP_DEBUG', false );` line with below solution for better debugging to be able to set `WP_DEBUG` constants to `true` separately from any user. Change IP list in array with yours (for example with home address' IP and workplace's IP).\n\n```php\nif (in_array($_SERVER['REMOTE_ADDR'], ['127.0.0.1', '1.2.3.4'])) {\n    // tracks PHP Warnings and Notices to make them easier to find\n    define( 'WP_DEBUG', true );\n    // mysql queries are tracked and displayed\n    define( 'SAVEQUERIES', true );\n} else {\n    define( 'WP_DEBUG', false );\n}\n```\n\n### Speed optimization\n\n#### WP Cron\n\nWordPress \"cron job\" is not a real cron-job, it runs on every page load. Official info from documentation: https://developer.wordpress.org/plugins/cron/\n\n\u003e WP-Cron works by checking, on every page load, a list of scheduled tasks to see what needs to be run. Any tasks due to run will be called during that page load.\n\nSo to make faster the loading, disable this function by adding this line into `wp-config.php`:\n\n```php\ndefine('DISABLE_WP_CRON', true);\n```\n\nAnd to make cron-jobs manually, add this line into server's cron by changing `domain.tld` part to yours:\n\n```shell\nwget -q -O - \"https://[domain.tld]/wp-cron.php?doing_wp_cron\" \u003e/dev/null 2\u003e\u00261\n```\n\n### Security\n\nAdd these lines to `wp-config.php` file\n\n```php\ndefine('WP_POST_REVISIONS', 1); // set max post revision to 1\n// SECURITY SETTINGS\ndefine('DISALLOW_FILE_EDIT', true); // disable themes' and plugins' file editor\ndefine('DISABLE_WP_CRON', true); // disable WP cron, use wp-cron-multisite.php instead\ndefine('WP_AUTO_UPDATE_CORE', true); // enable all core updates, including minor and major\ndefine('WP_CONTENT_DIRECTORY', 'content');\ndefine('WP_CONTENT_DIR', ABSPATH . WP_CONTENT_DIRECTORY); // rename wp-content folder and redefine wp-content path\ndefine('WP_CONTENT_URL', 'http' . (isset($_SERVER['HTTPS']) ? 's://' : '://') . $_SERVER['HTTP_HOST'] .'/' . WP_CONTENT_DIRECTORY);\n```\n\nAdd these lines to `.htaccess` file\n\n```\n# protect wp-login.php\n\u003cFiles wp-login.php\u003e\n\tAuthType Basic\n\tAuthName \"admin + admin\"\n\tAuthUserFile [PATH]/.htpasswd\n\tRequire valid-user\n\u003c/Files\u003e\n\u003cFiles admin-ajax.php\u003e\n    Order allow,deny\n    Allow from all\n    Satisfy any\n\u003c/Files\u003e\norder deny,allow\ndeny from all\n\u003cfiles ~ \".(xml|css|jpe?g|png|gif|js)$\"\u003e\n    allow from all\n\u003c/files\u003e\n```\n\nAdd these lines to `.htpasswd` file\n\n```\n# admin + 1234\nadmin:$apr1$upnl829c$E9mKGBbblTEDNeXH9SiBb/';\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharkalygergo%2Fwp-turbo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharkalygergo%2Fwp-turbo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharkalygergo%2Fwp-turbo/lists"}