{"repo":"makeitworkpress/wp-optimize","free":true,"listed":false,"github":"https://github.com/makeitworkpress/wp-optimize","clone":"git clone https://github.com/makeitworkpress/wp-optimize.git","description":"The WP Optimize class provides a wrapper to optimize WordPress and remove unnecessary or unwanted functions and scripts.","language":"PHP","stars":51,"topics":["wordpress","wordpress-library","wordpress-development","wordpress-optimization","wordpress-php-library"],"license":"GPL-3.0","category":"self-hosted-apps","readme_excerpt":"wp-optimize The WP Optimize class provides a wrapper to optimize WordPress and remove unnecessary or unwanted functions and scripts. WP Optimize is maintained by Make it WorkPress. Usage Include the WP Optimize class in your plugin, theme or child theme file by requiring or autoloading the given file. You can read more about autoloading in the readme of wp-autoload. Choose your optimisations Determine which optimizations to run by setting an array of optimisations. A true value will execute the given optimisation. Currently, the class defaults to the following optimisations: $optimisations = [ 'block external HTTP' = false, // Block requests to external http. Thus, blocks all request that are done by plugins to external addresses. 'defer CSS' = false, // Adds defer=\"defer\" to all enqueued JavaScript files. 'defer JS' = true, // Defers all registered scripts using the loadCSS function from the Filament Group. 'disable comments' = false, // Disables the comments functionality and removes it from the admin menu. 'disable block styling' = false, // Removes default Gutenberg block styling 'disable embed' = false, // Removes the script files that are enqueued by the WordPress media embed system. 'disable emoji' = true, // Removes the scripts that are enqueued for displaying emojis. 'disable feeds' = false, // Removes the post feeds. 'disable heartbeat' = false, // Unregisters the heartbeat scripts, which is usually responsible for autosaves. 'disable jquery' = false, // Removes the","default_branch":null,"files":null,"tree":[],"storefront":"/r/makeitworkpress","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/makeitworkpress/wp-optimize/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}