All Projects → makeitworkpress → wp-optimize

makeitworkpress / wp-optimize

Licence: GPL-3.0 license
The WP Optimize class provides a wrapper to optimize WordPress and remove unnecessary or unwanted functions and scripts.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to wp-optimize

wp-router
Enables developers to easily create custom routes with matching templates accordingly.
Stars: ✭ 22 (-40.54%)
Mutual labels:  wordpress-development, wordpress-php-library, wordpress-library
wp-better-settings
A simplified OOP implementation of the WP Settings API
Stars: ✭ 14 (-62.16%)
Mutual labels:  wordpress-development, wordpress-php-library
wp-admin-notices
A simplified OOP implementation of the WordPress admin notices.
Stars: ✭ 16 (-56.76%)
Mutual labels:  wordpress-development, wordpress-php-library
gin
Foundation of the Tonik WordPress Starter Theme. Provides all custom functionalities which it offers.
Stars: ✭ 29 (-21.62%)
Mutual labels:  wordpress-development, wordpress-php-library
koselig
💌 Seamlessly integrate Wordpress with Laravel.
Stars: ✭ 65 (+75.68%)
Mutual labels:  wordpress-development, wordpress-library
wp-tools
Command line interface to reduce boring tasks when working on WordPress plugin / theme project that will be published to wp.org
Stars: ✭ 33 (-10.81%)
Mutual labels:  wordpress-development
nginx-virtual-host-bash-script
Nginx Virtual Host Bash Script
Stars: ✭ 35 (-5.41%)
Mutual labels:  wordpress-development
wordpress-bundle
Use Wordpress and Symfony together using a Symfony bundle
Stars: ✭ 30 (-18.92%)
Mutual labels:  wordpress-development
humescores
IMPORTANT: Download the Exercise Files from the course page to get the Gulp process files and other important data.
Stars: ✭ 58 (+56.76%)
Mutual labels:  wordpress-development
wordpress
📚 Recursos para aprender WordPress
Stars: ✭ 20 (-45.95%)
Mutual labels:  wordpress-development
wp-skeleton
Setup a new WordPress installation via Composer
Stars: ✭ 36 (-2.7%)
Mutual labels:  wordpress-development
wp-custom-fields
WP Custom Fields is an options, metabox and customizer framework for WordPress aimed at speeding-up plug-in and theme development.
Stars: ✭ 53 (+43.24%)
Mutual labels:  wordpress-development
block-unit-test
Preparing WordPress themes for Gutenberg with the Block Unit Test WordPress Plugin
Stars: ✭ 60 (+62.16%)
Mutual labels:  wordpress-development
UpGulp
A Gulp Starter for your WordPress project
Stars: ✭ 29 (-21.62%)
Mutual labels:  wordpress-development
air
A hyper-minimal WordPress starter theme for developers built with Tailwind CSS.
Stars: ✭ 45 (+21.62%)
Mutual labels:  wordpress-development
docker-wordmove
Docker image to run Wordmove
Stars: ✭ 16 (-56.76%)
Mutual labels:  wordpress-development
fluentform
The fastest and easiest WordPress Contact Form Builder for WordPress.
Stars: ✭ 23 (-37.84%)
Mutual labels:  wordpress-development
WPKirk
A WP Bones skeleton Plugin
Stars: ✭ 28 (-24.32%)
Mutual labels:  wordpress-development
linter-sniffer-pretty-printer
Collection of packages and configs to lint and format code in your WordPress project.
Stars: ✭ 35 (-5.41%)
Mutual labels:  wordpress-development
geodirectory
GeoDirectory is the leading Directory Plugin for WordPress. Compatible with Gutenberg and the most popular page builders such as Elementor, Oxygen, Beaver Builder and Divi. GeoDirectory is the only solution for WordPress that can scale to millions of listings and high traffic.
Stars: ✭ 34 (-8.11%)
Mutual labels:  wordpress-development

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 jQuery script.
    'disable_jquery_migrate'    => true,  // Removes the jQuery Migrate script.
    'disable_rest_api'          => false, // Disables the rest api.
    'disable_RSD'               => true,  // Removes the RDS link in the head section of the site.
    'disable_shortlinks'        => true,  // Removes the shortlinks in the head section of the site. 
    'disable_theme_editor'      => false, // Disables the file editor for themes and plugins                    
    'disable_version_numbers'   => true,  // Removes the version trail in enqueued scripts and styles.           
    'disable_WLW_manifest'      => true,  // Removes the WLW Manifest links in the head section of the site.
    'disable_WP_version'        => true,  // Removes the WP version from the head section of the site.           
    'disable_XMLRPC'            => true,  // Disables the xmlrpc functionality.
    'jquery_to_footer'          => true,  // Moves the default jQuery script to the footer.
    'limit_comments_JS'         => true,  // Limits the JS for comments only to singular entities
    'limit_revisions'           => true,  // Limits the number of revisions to 5
    'remove_comments_style'     => true,  // Removes the .recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;} styling
    'slow_heartbeat'            => true   // Slows the heartbeat down to one per minute
];

Create instance

Create a new instance of the WP_Optimize class with your optimisations array as arguments.

$optimize = new MakeitWorkPress\WP_Optimize\Optimize($optimisations);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].