# WP-Optimize Premium - Clean, Compress, Cache

`meteorgpl-plugin/wp-optimize-premium` — a WordPress plugin as a Composer package.

WP-Optimize makes your site fast and efficient. It cleans the database, compresses images and caches pages. Fast sites attract more traffic and users.

- Author: TeamUpdraft, DavidAnderson — https://teamupdraft.com/wp-optimize?utm_source=wpo-wp-dir&utm_medium=referral&utm_campaign=plugin-dir&utm_content=teamupdraft&utm_creative_format=author
- Homepage: https://teamupdraft.com/wp-optimize
- License: not declared
- Buy a license from the vendor: https://teamupdraft.com/wp-optimize
- Page: https://meteorgpl.com/packages/meteorgpl-plugin/wp-optimize-premium
- Requires WordPress: 4.9
- Tested up to WordPress: 7.1
- Requires PHP: 7.2
- Translations: ca, cs_CZ, da_DK, de_DE, el, es_AR, es_CL, es_CO, es_CR, es_DO, es_ES, es_GT, es_HN, es_MX, es_PE, es_PR, es_UY, es_VE, fa_IR, fr_CA, fr_FR, hu_HU, it_IT, ja, nl_BE, nl_NL, pt_BR, ru_RU, sl_SI, sr_RS, sv_SE, tr_TR, uk_UA, zh_CN
- Vendor: TeamUpdraft, DavidAnderson — https://meteorgpl.com/vendors/teamupdraft.com

## About

MORE THAN A CACHING PLUGIN

WP-Optimize is trusted by more than 1 million WordPress website owners to boost performance and reduce page load times to improve your site's user experiences and SERP rankings in Google.

It does this in four clever ways:

1. It caches your site

Caching is the process of storing a temporary HTML version of your site on the server so it can be retrieved more quickly for the user.

It's a sure-fire way to ensure web pages load at lightning-fast speed. Turn it on in just one click.

2. It compresses images

Large images can really impact page speed load times. WP-Optimize makes it easy to identify and compress images to your preferred lossy / lossless settings in a couple of clicks.

3. It cleans the database

Your WordPress database stores everything that you need, plus some things that you don't. WP-Optimize cleans and optimizes the database to speed up your site and save server resources.

4. It minifies

On top of its three main features, WP-Optimize Cache also has the more advanced minification feature.

Together with caching, minification dramatically improves performance and page speed load time.

## Changelog

### 4.7.0

* FEATURE: Dashboard overview showing a summary of all WP-Optimize modules (cache, images, minification, and database), including active status, savings, and quick links to manage each area
* FEATURE: Load tables in batches when there are too many tables to load in a single request
* FIX: Added missing optimizations for auto optimizations cron
* FIX: Fix removal of cache settings and related cron events on plugin deactivation and reactivation
* FIX: Fixed inconsistent UI in the Minify status tab, and removed duplicate tooltips
* FIX: Fixed the association of the wp_e_submissions_actions_log table with its plugin
* FIX: LCP - Preserve original cached HTML when removing the LCP observer script fails instead of returning an empty string
* FIX: PHPStan issues WPO_WP_Kses_Compatibility class
* FIX: Permissions issues for adminbar menu items
* FIX: Registered image sizes not showing on multisite
* FIX: Removed extra spacing in the Wipe settings section
* FIX: WP_CACHE constant warning in debug.log
* FIX: WP_Optimize_Utils::get_file_path() does not handle URLs with query parameters
* REFACTOR: WPO_Page_Builder_Compatibility class
* REFACTOR: WPO_Webp_Convert_Image_Task class
* TWEAK: Added data- attributes support for older wordpress versions
* TWEAK: Cache - Browser cache settings updated for better compatibility
* TWEAK: Cache - Improved browser cache detection
* TWEAK: Disabling Show avatars no longer leaves gravatars hosted locally in the background
* TWEAK: Improved GZIP detection
* TWEAK: Improved the Purge Page Cache and Purge Minify Cache admin bar functionality
* TWEAK: Premium - Improved UX for Unused CSS Removal
* TWEAK: Premium - Index Post Meta Table power tweak now correctly indexes all subsites postmeta tables in a Multisite network and tracks last-run status per site
* TWEAK: Premium Auto LCP writes the gzip cache variant atomically via a temporary file and rename, matching how the HTML cache file is patched
* TWEAK: Rename `as_type` to `asset_type` in the LCP beacon request for clarity

### 4.6.1

* FIX: CSS exclusions added via Minify -> Advanced -> Exclude are now saved on separate lines, preventing invalid exclusion entries
* FIX: Fixed compatibility issue with the WooCommerce multi-currency plugin
* FIX: Incorrect WebP browser detection for Firefox users
* FIX: Misaligned UI issue in minify admin pages
* FIX: Mobile UI issues
* FIX: Prevent caching pages when a WooCommerce cart has content
* FIX: UI freezes when restoring a compressed image
* REFACTOR: Use WP_Optimize_Utils::get_url_without_cache_purge_params() for admin bar links
* REFACTOR: WPO_KD_Submissions_Compatibility class
* REFACTOR: WP_Optimize_Server_Compatibility class
* REFACTOR: WPO_Polylang_Compatibility class
* TWEAK: Clear cached local Google Fonts statistics when the CSS font file is downloaded
* TWEAK: Create a new class named WP_Optimize_UpdraftCentral_Commands to group UpdraftCentral specific commands, currently including methods for retrieving and updating WP-Optimize settings
* TWEAK: Removed deprecated UpdraftCentral commands from WP_Optimize_Commands class
* TWEAK: Removed unused phpseclib dependency from composer
* TWEAK: Smush post meta keys are prefixed with `_` and now is multisite compatible

### 4.6.0

* FEATURE: Premium - Automatically preloads the page’s Largest Contentful Paint (LCP) element to improve initial load speed and perceived performance
* FIX: Cache - Fixed an issue related to cache setting saving
* FIX: Fixed a UI issue in WooCommerce variation products when Automatically preload content after it is purged is enabled
* FIX: Fixed browser caching issue where admin pages were cached
* FIX: Mobile UI issue
* FIX: Notice Dismissal issue
* FIX: Usage of htmlspecialchars()
* REFACTOR: Code from can_purge_cache() method moved to WP_Optimize_Utils::current_user_can_purge_cache()
* REFACTOR: Fix WordPress Security check errors and warnings on admin page
* REFACTOR: Make `is_edit_mode` a static method and avoid duplication
* REFACTOR: Optimized WP_Optimize_Database_Information::get_table_plugin() method
* TWEAK: Added method to check current user has the capability
* TWEAK: Added methods to retrieve and save essential WP-Optimize toggleable settings for UpdraftCentral
* TWEAK: Disable and hide the "Speed up WooCommerce 'Get total spent' query" Power Tweak when it's no longer relevant
* TWEAK: Handle race conditions in font downloading and optimize cache stats storage 
* TWEAK: Improved image grid action button visibility to accommodate WordPress 7.0 button styling changes
* TWEAK: Matched response styles when purging via the admin bar
* TWEAK: Premium - Handle empty orders in WooCommerce Total Spent Power Tweak feature
* TWEAK: Premium - Improved hash logic for the Unused CSS Removal feature
* TWEAK: Prevent unwanted cache growth caused by crawlers or preload bots
* TWEAK: UI changes to match WordPress 7.0 
* TWEAK: Unschedule all WP-Optimize cron jobs on deactivation in multisite
* TWEAK: WP_Optimize_Power_Tweaks class method deactivate bug fixed related to the array_diff function

### 4.5.5

* TWEAK: Update the bundled common-libs version

### 4.5.4

* FIX: WebP image compression breaking in some cases
* REFACTOR: Avoid instantiating PHPSQLParser on each call in WPO_DB_Table_Analysis
* REFACTOR: Class WPO_WebP_Convert
* REFACTOR: Make markup readable in `tables-body.php` template
* REFACTOR: Refactored duplicated cache_admin_bar logic by centralizing it in the admin class and removing redundant implementations.
* REFACTOR: Removed unused `WPO_Htaccess_Capabilities` class
* REFACTOR: WPO_Activation class
* REFACTOR: WPO_Uninstall class
* REFACTOR: WPO_WebP_Alter_HTML class
* REFACTOR: WPO_WebP_Self_Test class
* REFACTOR: WPO_WebP_Test_Run class
* REFACTOR: WPO_WebP_Utils class
* REFACTOR: WPO_Webp_Task_Manager class
* REFACTOR: WP_Optimize_WebP class
* REFACTOR: WP_Optimize_WebP_Images class
* TWEAK: Added an additional check to prevent SplFileInfo::getSize() RuntimeException in WP_Optimize_Utils::get_folder_stats()
* TWEAK: All in One SEO plugin compatibility issue
* TWEAK: Cache - Inconsistent REST cache filenames due to query parameter order 
* TWEAK: Cache - Set the purge old cache cron schedule based on the Cache lifespan setting
* TWEAK: Ensure parsed result is an array in WPO_DB_Table_Analysis::get_query_table()
* TWEAK: Exclude GIF from being converted to WebP with `wpo_webp_convert_compressed_images` cron job
* TWEAK: Optimized `wpo_username_from_cookies()` to avoid repeated database queries per request
* TWEAK: Precheck for existing WebP format of file before running WebP conversion
* TWEAK: Remove redundant code that is not reachable.
* TWEAK: Resolved edge cases in CapoJS

Full changelog: https://meteorgpl.com/packages/meteorgpl-plugin/wp-optimize-premium/changelog

## Install

```sh
composer config repositories.meteorgpl composer https://composer.meteorgpl.com
composer require meteorgpl-plugin/wp-optimize-premium
```

The repository needs a token (see https://meteorgpl.com/docs). The vendor's license checks are intact: activate the plugin in WordPress with a key bought from the vendor.

## Versions

No version has been published yet.

