WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance source code
By David Anderson / Team Updraft, on WordPress.org since 2009. 1,000,000+ active installs.
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. Below is its source code for every one of its 112 releases, what changed in the latest one, and how often it ships.
What changed in 4.7.2
Released Dec 3, 2026, 2 weeks after 4.7.1- FIX: Cache – Fixed an issue where saving widgets on the block-based Widgets screen or reordering sidebars did not purge the page cache
- FIX: Cache – Fixed an issue where the page cache was purged on every Customizer widget preview keystroke instead of only on publish
- TWEAK: Cache – Purge WPML language homepage cache when the site homepage cache is cleared
- SECURITY: Fixed several vulnerabilities. An unauthenticated attacker could inject JavaScript into cached pages when page caching, HTML minification, and CSS processing are enabled, Font Awesome handling is set to “Exclude”, and a locally-hosted Font Awesome stylesheet is enqueued. When the opt-in 404 Detector is enabled, an unauthenticated attacker could inject JavaScript that executes in an administrator’s session if the administrator clicks “View all” on the 404 Detector report. When page caching is enabled, along with “Exclude stylesheets from page speed tests” or “Exclude scripts from page speed tests”, an unauthenticated attacker could have their User-Agent stored in a cached page, stopping the stylesheets or scripts that Minify loads asynchronously from loading for all later visitors to that page. When HTML minification is enabled, an unauthenticated attacker could forge the internal cache-preload request header to make WP-Optimize minify the HTML of the page they request. Thanks to Wordfence for the responsible disclosure
- SECURITY: Fixed several vulnerabilities found by our internal AI security audit. Any logged-in user could purge the entire page cache by sending a crafted AJAX request to the widget save actions. An unauthenticated visitor could see password-protected post content served from the page cache without entering the post password. When the Minify feature is enabled, a user with the Editor role could read server files outside the web root by publishing a post with a crafted script module URL, and could make the minifier include the contents of server files, including PHP files such as wp-config.php, in page output through inline style or script blocks
71 files changed since 4.7.1: 22 modified, 26 added, 23 removed.
- cache/class-wp-optimize-page-cache-preloader.php modified, -499 bytes
- cache/class-wpo-cache-rules.php modified, +1,111 bytes
- cache/class-wpo-page-cache.php modified, +100 bytes
- cache/file-based-page-cache-functions.php modified, +1,402 bytes
- changelog.txt modified, +2,285 bytes
- css/select2/select2.css modified, +27 bytes
- css/select2/select2.min.css modified, +2 bytes
- google-fonts.json modified, +22 bytes
- includes/class-wp-optimize-404-detector.php modified, +727 bytes
- includes/class-wp-optimize-updates.php modified, +754 bytes
And 61 more.
Compare 4.7.1 with 4.7.2Release history
112 releases since November 2009- 4.7.2 Dec 3, 2026 FIX: Cache – Fixed an issue where saving widgets on the block-based Widgets screen or reordering sidebars did not purge the page cache
- 4.7.1 Nov 18, 2026 FEATURE: Minify – Added Burst Statistics as an analytics option next to Google Analytics, installed from WordPress.org with one click
- 4.7.0 Sep 21, 2026 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
- 4.6.1 Aug 13, 2026 FIX: CSS exclusions added via Minify -> Advanced -> Exclude are now saved on separate lines, preventing invalid exclusion entries
- 4.6.0 Jul 7, 2026 FEATURE: Premium – Automatically preloads the page’s Largest Contentful Paint (LCP) element to improve initial load speed and perceived performance