Optimazz – Website Optimization and Speedup
Website optimization and speedup — page caching, JavaScript delay/defer, CSS optimization, lazy-load, WebP, font and database optimization.
Install in
Optimazz is an all-in-one performance suite that applies the optimizations with the biggest impact on Core Web Vitals — automatically and safely. Every module is opt-in and reversible, and Optimazz never overwrites another caching plugin’s files. New here? Click Optimize in one click on the Dashboard to turn on everything we recommend for your site, and undo it with one click if you change your mind.
Modules included:
- Page Cache — serve static HTML instead of running PHP on every request, with smart exclusions (logged-in users, carts, query strings), automatic purging on content changes (visitors keep getting the old page while the new one is built), pre-compressed (gzip) cached pages, a separate cached copy per currency or language (cookie-based switchers), and a cron-based cache preloader so visitors never hit a cold page.
- JavaScript — defer scripts and delay them until the first user interaction to cut Total Blocking Time, with an exclusion list.
- CSS — minify, combine, and load CSS asynchronously to remove render-blocking stylesheets.
- HTML — minify the page HTML (extra whitespace and comments), without changing how it looks.
- Image Optimization — lazy-load images, iframes and videos, add missing dimensions to prevent layout shift, generate and serve WebP/AVIF, bulk-compress your existing library, convert opaque PNGs to JPEG, and replace YouTube embeds with a click-to-load preview.
- Fonts — add
font-display: swap, preconnect to font hosts, and preload font files. - Database — clean revisions, auto-drafts, trashed posts, spam/trashed comments and expired transients, optimize tables, schedule automatic cleanups, and find the large autoloaded options that slow down every page (switch them off in one click, undo anytime).
- Heartbeat — reduce or disable the WordPress Heartbeat API per context to lower server load.
- Tweaks — disable emojis, embeds, dashicons, query strings, XML-RPC and pingbacks, and add DNS-prefetch / preconnect hints.
- CDN — rewrite static asset URLs to your CDN hostname.
A live performance score on the dashboard shows which optimizations are active and your biggest remaining win.
No limits
Every feature works on every page, for every visitor, at no cost: no page-view cap, no “powered by” banner on your site, no account to create, and no cloud service. All optimization runs on your own server.
Compatibility
- Page builders — Elementor (and Elementor Pro, ElementsKit), Divi, Bricks, Beaver Builder, Oxygen and WPBakery. Their generated CSS is never minified or combined and their layout scripts are never delayed, so CSS and JavaScript optimization stay safe on builder sites. Swiper carousels and the Instagram Widget by WPZOOM are protected too.
- WooCommerce — cart, checkout and account pages are never cached, a visitor with items in the cart never gets a cached page, and checkout and payment scripts (Stripe, PayPal, Braintree, Square, Klarna, Razorpay) are never delayed. WooCommerce and Easy Digital Downloads styles can be loaded only on their own pages.
- Third-party scripts — Google Analytics, Tag Manager and AdSense, the Meta pixel, TikTok, X, LinkedIn, Snapchat and Pinterest pixels, Hotjar, Microsoft Clarity, Mixpanel, Matomo, HubSpot, OneSignal and chat widgets (Tawk.to, Crisp, Intercom, Tidio, LiveChat, Zendesk, Drift, Freshchat, JivoChat, Smartsupp, OpenWidget, Small Chat) are delayed until the visitor interacts, when JavaScript delay is on.
- Jetpack — WordPress core styles served by Jetpack’s Site Accelerator are minified and combined like local files.
- Multisite — subdirectory and subdomain networks, with a separate cache per site and network settings in Network Admin Optimazz.
- Multilingual and multi-currency sites — languages in the address (
/de/,de.example.com, WPML, Polylang, TranslatePress) are cached separately. If your language or currency switcher remembers the choice in a cookie instead, each value gets its own cached copy: the common WooCommerce currency switchers are set up already, and you can add other cookies under Advanced Rules “Cache a separate copy for each value of these cookies”. - Servers — the page cache works on Apache, LiteSpeed, OpenLiteSpeed and Nginx. Browser-cache rules are written to
.htaccess(Apache and LiteSpeed); on Nginx add them to your server configuration. Works behind Cloudflare and other proxies or load balancers. - Firewalls and security plugins — the cache preloader uses the user agent
Optimazz-CacheWarmer, which passes 6G/7G firewall rules (All-In-One Security, many hosts). If preloading reports 403 errors, allow-list that user agent in your firewall or Wordfence. - Other caching plugins — Optimazz detects WP Rocket, W3 Total Cache, WP Super Cache, LiteSpeed Cache, WP Fastest Cache, Breeze, Cache Enabler, Comet Cache, Surge, SiteGround Optimizer, Hummingbird, Swift Performance, Seraphinite Accelerator, FlyingPress, WP-Optimize and NitroPack, never overwrites their files, and warns you when one of them is blocking the Optimazz page cache. Use one page cache at a time.
- WP-CLI —
wp optimazzcommands (see the FAQ). - AI assistants (MCP) — on WordPress 6.9 or newer, AI tools such as Claude, Cursor or VS Code can check, configure and fix Optimazz through the free MCP Adapter plugin, including finding what broke a page and undoing it (see the FAQ). Off by default.
Build process and source code
The admin interface is a React application. The human-readable source lives in the src/ directory shipped inside the plugin (src/index.js and src/index.scss), and the compiled, minified output lives in build/.
To regenerate the compiled files from source:
- Install dependencies:
npm install - Build:
npm run build
This uses the official @wordpress/scripts (webpack) toolchain — no custom or hidden build configuration. All source and build tooling are included in the plugin; nothing is obfuscated.
External services
Optimazz does not require any external service to function, and it works entirely on your own server by default. Two optional, admin-controlled features can reference third-party hosts:
-
Google Fonts optimization (Fonts module). If — and only if — your theme or another plugin already loads Google Fonts, and you enable the Fonts module, Optimazz adds
preconnectresource hints tofonts.googleapis.comandfonts.gstatic.comand can adddisplay=swapto the existing font URL. Optimazz does not add Google Fonts to a site that isn’t already using them, and it does not send any personal or site data — apreconnectis only a browser hint to open a connection earlier. The fonts themselves are requested by the visitor’s browser from Google, exactly as they were before the plugin, under Google’s terms: https://policies.google.com/terms and privacy policy: https://policies.google.com/privacy -
CDN rewriting (CDN module). If you enable the CDN module and enter a CDN hostname, Optimazz rewrites the URLs of your own static assets (CSS, JS, images) to that hostname so visitors’ browsers load them from your CDN. The CDN is a service you choose and configure; Optimazz sends no data to it itself and is not affiliated with any CDN provider. Consult your chosen CDN’s own terms and privacy policy.
Both features are off by default and take effect only after you explicitly enable them.
Written by Joobi from the project's own listing. See the source page
1.1.7
- Fix: pages built with Elementor (or another page builder) could show unstyled after the builder cleared its CSS files — for example after an Elementor update or “Regenerate Files & Data”. The builder only writes a page’s CSS file again when the page renders, which a cached page never does, so the cached page kept linking a missing stylesheet until the cache was turned off and on. Optimazz now clears the page cache when Elementor or Beaver Builder clear their CSS and after a theme or page-builder update, and its automatic safety check clears the cache by itself when the home page links a stylesheet that no longer exists.
1.1.6
- New: AI assistants (MCP). With WordPress 6.9 or newer, AI tools such as Claude, Cursor or VS Code can check and manage Optimazz for you through the free MCP Adapter plugin: see the status and speed recommendations, optimize in one click, read and change any setting, clear or preload the page cache, switch modules or Safe Mode on and off, and clean the database. When something breaks, the assistant can check a page (errors, cache, the CSS and scripts it loads, a CDN that does not deliver files) and fix it: exclude the script or stylesheet that causes it, turn single options off, turn on Safe Mode, undo the last change or reset all settings. Off by default: turn it on under Tools AI Assistants (MCP), where Optimazz also installs the MCP Adapter for you, creates a connection key and gives you a ready-to-paste setup for Claude Desktop, Claude Code, Cursor and VS Code. Only administrators can use it, and every change can be undone with “Undo last change”. (ChatGPT needs OAuth sign-in, which the MCP Adapter does not offer yet.)
- New: search every setting. Type in the search box at the top of the Optimazz menu (or press “/”) to find any setting, screen or action, such as “webp”, “currency” or “undo”; pick a result to jump straight to it, highlighted.
- Fix: after an update the page cache now resets itself exactly as if you had turned it off and on again: the cache drop-in is rewritten from the new version, the old engine is dropped from PHP’s opcode cache, and old cached pages are cleared. If that clean-up is interrupted (a slow or killed request, a timeout on a large cache), the next visit finishes it instead of leaving the old setup in place.
1.1.5
- New: Optimize in one click. A button at the top of the Dashboard’s Recommendations turns on every recommended optimization at once (including the follow-up ones, such as WebP after image optimization), in a single change you can undo with one click. A minute later Optimazz checks the site still loads its styles and turns Safe Mode on if it does not.
- New: cache a separate copy per currency or language. Sites whose currency or language switcher remembers the choice in a cookie no longer show one visitor’s currency to everyone: each value gets its own cached copy (Advanced Rules “Cache a separate copy for each value of these cookies”). The cookies of the common WooCommerce currency switchers (WooCommerce Multi Currency / CURCY, Aelia Currency Switcher, WOOCS) are listed by default. At most 20 copies per page, and odd cookie values are never cached.
- New: autoloaded options audit (Database screen). Shows how much data WordPress loads on every page and the largest options behind it, often left by plugins you deleted. Stop autoloading the ones you pick with one click: their data stays and is read only when needed. Core options are never offered, and “Restore all” undoes it. A recommendation appears when the total is over the 800 KB WordPress recommends.
1.1.4
- New: show the old page while rebuilding. When you update a post or a comment is added, visitors keep getting the cached page while the new one is built in the background (usually within seconds), instead of the next visitor waiting for a slow uncached load. Only one request rebuilds a page at a time, so a busy page no longer sends many visitors to PHP at once. Pages past their cache lifetime work the same way. Deleted, trashed, unpublished or password-protected posts are still removed at once. On by default; switch it off under Page Cache “Show the old page while rebuilding” (on multisite: Network Admin Optimazz).
- New: pre-compressed cache. Every cached page is also stored gzip-compressed and sent as-is to browsers that accept it, so the server no longer compresses the same page on every visit. Skipped automatically when PHP is already compressing output;
define( 'OPTIMAZZ_NO_GZIP', true );in wp-config.php turns it off. - Fixed: trashing or unpublishing a post, or changing its address (slug), did not clear its cached page, so the old page kept being served at the old address until the cache was purged by hand. The old address is now cleared immediately.
1.1.3
- Fixed: Minify CSS could remove part of a stylesheet (often the header or menu styles) when a CSS comment contained an apostrophe, such as
/* don't remove */. It also broke stylesheets that start with a/*! … */license comment. Minified files are rebuilt automatically after updating. - Fixed:
wp optimazz preload --backgroundandwp optimazz network preload --backgroundonly queued the warm-up, so it waited for the site’s next visitor (on a quiet site or subsite that could take hours). They now start it on the server right away and return at once. - Improved:
wp optimazz network set,settings setandsettings gettyped without a setting or value now show the settings, their current values, what they accept and an example, instead of a bare usage line. - Improved: on multisite,
wp optimazz settings setfor a network-wide cache setting (for examplecache.enabled) now points straight towp optimazz network set.
1.1.2
- New: WP-CLI commands.
wp optimazz status,purge,preload,settings list|get|set|reset|undoandsafe-mode on|off, pluswp optimazz network …on multisite.preload --backgroundqueues the warm-up on the server instead of waiting, for hosting panels that stop long commands. Every command runs the same code as the admin screen, so a setting changed from the command line clears and rebuilds the cache exactly like a save in WordPress. Handy for deploy scripts and hosting tools. - New: HTML minify (File Optimization HTML, off by default). Collapses extra whitespace and removes HTML comments, while leaving
<pre>,<textarea>,<code>, scripts and styles untouched and keeping one space between words, so pages render exactly the same. Conditional comments and comments other scripts rely on are kept. Paused by Safe Mode. - New: lazy-load videos (Media, on by default). A video that doesn’t autoplay downloads nothing until it is played when it has a poster image, or only its first frame without one. Autoplaying background videos further down the page start loading when scrolled near; the first video on the page (usually the hero) is left alone. Add the class
no-lazyto skip a video. - Fixed: with “Delay all scripts” on, the small loader for lazy background images and YouTube previews was itself delayed, so those images and previews waited for the first click or scroll. It now always runs straight away.
- Improved: the plugin page now lists what Optimazz is compatible with (page builders, WooCommerce, third-party scripts, multisite, multilingual sites, servers, firewalls, other caching plugins) and states plainly that there are no limits: no page-view cap, no banner, no account.
- Fixed: Tools Server Requirements Re-check emptied the list while it checked, so the page jumped up and back down. The results now stay on screen, the button shows it is working, and a short “Server checked again” message confirms it finished. The Reset panel also no longer says a reset cannot be undone (Undo last change restores it).
- Fixed: on multisite, Preload and Clear & Preload in Network Admin Optimazz Sites tried to warm wrong addresses for category, tag and custom post type pages of subsites (they got the main site’s “/blog/” prefix and returned 404), so those pages were never pre-cached. Each site now uses its own link format.
1.1.1
- Security: CSS optimization no longer reads a stylesheet that a PHP script generates (dynamic CSS) as a file — that could copy the script’s source code into the public optimized CSS. Only real static files (.css, .js, images, fonts) are read.
- Security: hardened cache folder names and the Critical CSS field against crafted input.
- Improved: one database query less on every page load that isn’t served from the cache.
- Improved: right-to-left languages (Arabic, Hebrew, Persian, Urdu and others) now get a mirrored Optimazz admin screen, and file sizes read correctly in them. Two error messages that were English-only are now translatable, and the translation template includes every string.
1.1.0
- Fixed: Google Fonts never loaded on sites whose theme or plugin requests them in the old weight format through the new Google Fonts address (for example “Open Sans:400,700” or “w400,700”). Google rejects those requests, so the font was missing while the broken stylesheet still held back the first paint on mobile by most of a second. Optimazz now repairs them into a valid request.
- New: Google Fonts load without blocking the page (on by default, Fonts settings). With font display Swap or Fallback the page appears right away in a fallback font and switches when the web font arrives, instead of waiting for Google first. With Optional (zero layout shift) the stylesheet still loads first, so text never shifts.
- Improved: sites using Jetpack’s Site Accelerator load WordPress core stylesheets from c0.wp.com, which Optimazz used to skip as external, so they stayed render-blocking. When the version matches your WordPress, they are now minified, combined and loaded like local files.
- Improved: more chat widgets are delayed until the visitor interacts — OpenWidget, Zendesk, Drift, Freshchat / Freshworks, JivoChat, Smartsupp and Small Chat — cutting mobile Total Blocking Time.
- New: full multisite support. Network-activate Optimazz and manage page caching for the whole network in Network Admin Optimazz: switch it on once, choose mobile and logged-in caching, cache lifetime, browser-cache rules and automatic preload, and see every site with its cached pages and its own Purge and Preload buttons. Each site gets its own cache — on subdirectory and subdomain networks — keeps its own exclusions (Advanced Rules) and all its other Optimazz settings, and can purge and preload its own pages.
- Improved: on multisite only the network administrator controls the files every site shares (wp-config.php, advanced-cache.php, .htaccess); a site’s own settings never change them, so one site can’t switch caching on or off for the others.
- Fixed: before this version, on multisite one site’s settings controlled caching for every site, only one site of a subdomain network was actually cached, any site administrator could rewrite wp-config.php and .htaccess, and deactivating Optimazz on one site removed the cache for the whole network.
- Fixed: deleting Optimazz from a multisite network only cleaned up the main site; settings, scheduled tasks, image data and generated CSS of the other sites were left behind. Uninstall now cleans every site.
- Fixed: on sites using plain permalinks (addresses like ?page_id=5) the “Cached pages” count showed 1 no matter how many pages were cached.
- Improved: the preload summary now names the home page and counts each address once, so its parts add up to the total.
- Improved: changing a cache rule (for example a new exclusion) now also clears pages that were cached under the old rules.
- Improved: the Changelog section of this readme now lists recent versions only; the complete history is in changelog.txt.
1.0.24
- Fixed: the automatic preload (after saving settings, and the scheduled one) only warmed the first 50 addresses, so on bigger sites it covered far fewer pages than a manual preload. It now warms the whole site in short background chunks — each continues where the last stopped, and only one runs at a time — so it never overloads the server or hits the PHP time limit.
- Improved: preloading is much faster — desktop and mobile copies are warmed at the same time, a manual preload warms several pages per step, and the page list is built once per run instead of on every step.
- Improved: the preload explains what it is warming, e.g. “Found 74 pages to warm: 10 pages, 11 posts, 18 products, 12 category and tag pages” — the total includes posts, products and archive pages, not only Pages. Page-builder template libraries (Elementor, Beaver Builder, Divi, Bricks …), WooCommerce cart / checkout / account pages and anything in “Never cache these URLs” are no longer in the list, since visitors never get them from the cache.
- Fixed: the preloader reported pages as “warmed” even when none were saved to the cache (e.g. “Warmed 114 / 121” while Cached pages stayed at 0), with no hint why. It now counts only pages that really reached the cache (“· 98 cached · 16 not cached”) — counted per page (desktop and mobile copies of one page count once), so it matches the “Cached pages” card, and when pages are not being cached it stops after a few and explains the exact reason and fix: another caching plugin owns advanced-cache.php, the drop-in or WP_CACHE is missing, a server or CDN cache (LiteSpeed, Cloudflare, Varnish …) answers before WordPress, a plugin sets DONOTCACHEPAGE, pages return an error status, the cache folder is not writable, or your exclusion rules match.
- Fixed: on sites behind a proxy, load balancer or Cloudflare (HTTPS ends at the proxy), cached pages were saved under an http address and never found again for https visitors. The real scheme is now read from X-Forwarded-Proto / CF-Visitor.
- New: if another caching plugin (WP Rocket, Seraphinite Accelerator, LiteSpeed Cache …) controls the cache drop-in while Optimazz page cache is on, a notice now appears on every admin screen — naming the plugin, with one-click “Deactivate it and use Optimazz” and “Use Optimazz for caching” buttons, or “Keep the other plugin” to hide it. Before, the Optimazz page cache silently stayed inactive unless you opened its Cache health panel.
- Improved: conflict detection now also recognises Seraphinite Accelerator, FlyingPress, WP-Optimize and NitroPack, and cache plugins installed under a renamed folder (e.g. a GitHub download).
- Improved: “Cache lifespan” and “Auto-preload” can now be changed right from the Dashboard (a dropdown on each row), and the preload row shows when the next run is due.
- Fixed: scheduled auto-preload often never ran on well-cached sites. WordPress only runs scheduled tasks when it loads, but cached pages are served without loading WordPress, so the preload quietly went overdue. When a preload is due, a cached page view now wakes WordPress’s scheduler in the background (after the page has been sent, at most once a minute).
- Fixed: the dashboard showed an overdue preload as “in 3 hours”; it now says “due now”, and a new “Last auto-preload” line shows when it last ran and how many pages it warmed (or that a firewall blocked it).
- New: choose how often the automatic preload runs — every hour, twice a day or once a day (Preload settings). Turning page caching off now also clears the preload schedule, and a notice explains when WP-Cron is disabled on the site.
- Fixed: switching a module on or off (or using Undo, Reset, or the post-update refresh) cleared the whole page cache and then left it empty, so the site ran uncached — and slow — until each page happened to get a visitor or the twice-daily preload ran. The cache is now rebuilt automatically straight after (when page cache and preloading are on).
- Fixed: switching Optimazz page caching off, or deactivating Optimazz, turned off WP_CACHE even when another caching plugin (e.g. WP Rocket) owned the cache drop-in, which silently disabled that plugin’s page cache. WP_CACHE is now only turned off when the drop-in was Optimazz’s own.
- Fixed: cache preloading stopped with a 403 error when a firewall such as the 6G/7G rules in All-In-One Security was enabled. The preloader identified itself as “Optimazz-Preloader”, and these firewalls block any visitor whose user-agent contains the word “loader”. It now identifies as “Optimazz-CacheWarmer” in the standard crawler format, which those rules allow. The user-agent can be changed with the new
optimazz_preload_user_agentfilter.
1.0.23
- Fixed: with WebP/AVIF serving on, some images (often the site logo) showed as broken on HTTPS sites whose content still used old http:// image addresses. Browsers upgrade a plain http:// image to https:// automatically, but block an http:// image inside a source — and never fall back. Next-gen image sources now always use https:// on HTTPS pages.
- Fixed: in responsive images, a size without a WebP/AVIF copy could be offered to the browser and show as broken; only sizes whose next-gen file exists are now listed.
- Fixed: tidier image markup — no attributes added after a self-closing slash, and no duplicate decoding/fetchpriority attributes.
- New: Google Fonts optimization (Fonts module). Page builders such as Elementor load every Google Font family as a separate request, each with every weight from 100 to 900 plus italics. Optimazz now merges them into a single request and loads only the weights and styles your pages actually use (weights 400 and 700 are always kept). On a typical Elementor site this turns three render-blocking requests into one and cuts the font CSS by more than half (measured: 170 KB down to 64 KB). Both options are on by default and can be switched off in the Fonts settings; requests that subset by text are never changed.
- Improved: the build tooling (
package.json) ships with the plugin again, so the admin interface can be rebuilt from the included source as described under “Build process and source code”. - Fixed: with the CDN mod
Follow this listing's changes (Atom feed)