WP Optimizer – PageSpeed, Cache, Minify & Core Web Vitals
WP Optimizer is a free, modular WordPress cache and performance optimization plugin built to make WordPress faster, lighter and easier to diagnose. Improve page speed and Core Web Vitals with page caching, HTML/CSS/JavaScript minification, browser caching, GZIP/Brotli compression, lazy loading, LCP optimization, local image compression, WebP conversion, database cleanup and performance monitoring — from one dashboard. Unlike optimization tools that depend on a mandatory external service, WP Optimizer’s core optimization features run on your own server. No subscription or premium upgrade is required to unlock the performance modules listed below. Already using another cache or optimization plugin? WP Optimizer is modular: enable only the tools you need and leave overlapping modules disabled. Optimize WordPress Performance WP Optimizer combines the most common WordPress performance optimizations in one plugin: Page Cache – Store complete HTML responses on disk and serve eligible cached pages before WordPress loads. Browser Cache – Configure caching policies for CSS, JavaScript, images, fonts and other static resources. GZIP & Brotli Compression – Generate supported server rules to reduce transferred page size. HTML, CSS & JavaScript Minification – Minify page output and local assets, with optional CSS and JavaScript combination. Lazy Loading – Lazy load images and iframes and prevent unnecessary video preloading. LCP Optimization – Preload a detected Largest Contentful Paint image with high fetch priority. Font Optimization – Apply font-display: swap and optionally defer font stylesheets. Navigation Prefetching – Prefetch eligible same-origin links when visitors show navigation intent. Local Image Optimization – Compress images and generated thumbnails using Imagick or GD. WebP Conversion – Convert supported images to WebP directly on your server. Automatic Media Optimization – Process new uploads and larger media-library jobs in background batches. Database Optimization – Clean revisions, transients, orphaned metadata, spam and other unnecessary database data. Object Cache – Optional Redis or Memcached integration when the required service and PHP extension are available. WP_Query & Database Query Cache – Cache selected expensive WordPress and database query results. WP Optimizer can be used as a complete WordPress performance toolkit or alongside an existing setup when overlapping optimization layers are disabled. Measure Before and After – Don’t Guess Optimization is more useful when you can verify what actually changed. Page Test compares a baseline request with WP Optimizer bypassed against your current warmed configuration. It reports metrics including: Response time Time to First Byte (TTFB) Peak memory usage Response size Slow database queries Repeated queries Expensive WordPress hooks and callbacks This makes it easier to determine whether a configuration is actually improving your site instead of enabling performance options blindly. Find Slow Plugins and Database Queries The built-in Performance Monitor helps identify where WordPress is spending time and resources. It can profile: Plugin load time Theme load time WordPress core load time SQL execution time Query count Memory usage Slow database queries Cache hits and misses Slow requests Callback execution time Use configurable sampling and slow-request thresholds to investigate performance problems without permanently profiling every request. If your WordPress site has a high TTFB or slow backend, Performance Monitor can help identify whether the bottleneck comes from a plugin, theme, database query or WordPress itself. Page Cache WP Optimizer includes a configurable static page cache for WordPress. Eligible rendered HTML pages can be stored on disk and served using server-specific rules before a normal WordPress request needs to finish loading. Cache controls include: Cache lifetime rules URL inclusion and exclusion rules Query-string handling User scope Status-code rules Cookie exclusions User-agent exclusions Automatic cache invalidation Content-aware purging Cache hit and miss statistics Disk usage statistics When WordPress content changes, affected cache entries can be invalidated automatically. WooCommerce-sensitive pages and sessions are automatically excluded where required. Object, WP_Query and Database Caching WP Optimizer provides multiple optional caching layers. Object Cache Install a WordPress object-cache.php drop-in and use Redis or Memcached when a compatible PHP extension and service are available. WP_Query Cache Cache selected WordPress query results with configurable lifetimes and invalidation behavior. Database Query Cache Cache eligible database responses and invalidate related entries when WordPress content changes. Each cache layer can be configured independently. Redis or Memcached is not required to use WP Optimizer’s page cache, browser cache, minification, compression, image optimization or database tools. HTML, CSS and JavaScript Optimization WP Optimizer can optimize: Rendered HTML Inline CSS Inline JavaScript Local CSS files Local JavaScript files Generated optimized assets are cached on disk. Already-minified resources are skipped when possible, relative CSS paths are preserved, and compatibility safeguards prevent known page-builder editing and preview requests from being transformed. CSS and JavaScript combination is optional. For best compatibility, enable HTML, CSS and JavaScript optimization separately and test the site after each change. Image Optimization and WebP Optimize WordPress images locally without requiring an external image optimization service. WP Optimizer can: Compress Media Library images Compress generated WordPress thumbnails Convert supported images to WebP Resize oversized images Preserve EXIF metadata when requested Optimize new uploads automatically Process larger libraries in background batches Add missing image width and height attributes when metadata is available Lazy load images Identify potentially unused media files Image processing uses Imagick or GD on your own server. Core Web Vitals Optimization WP Optimizer includes multiple optimizations that can improve the technical factors behind Largest Contentful Paint (LCP), Cumulative Layout Shift (CLS) and Interaction to Next Paint (INP). These include: Page caching Browser caching GZIP/Brotli compression HTML/CSS/JavaScript minification Image compression WebP conversion Image and iframe lazy loading Missing image dimension fixes LCP image preloading Font display optimization Font stylesheet optimization Navigation prefetching Reduced unnecessary WordPress output Actual Core Web Vitals and PageSpeed results depend on your theme, plugins, hosting, content, third-party scripts and configuration. WP Optimizer does not promise a specific PageSpeed score. Use Page Test, Performance Monitor and external testing tools to verify the result on your own site. Database Cleanup and Autoload Health A slow WordPress database can increase backend and frontend response times. WP Optimizer includes tools to inspect and maintain your WordPress database. Clean or manage: Post revisions Auto drafts Trashed posts Spam comments Transients Orphaned metadata Database tables Large wp_options entries Autoloaded options The database module can also: Optimize selected tables Create SQL backups Restore SQL backups Inspect option size Inspect autoload status Disable autoload for selected options Delete selected options Create a database backup before changing or deleting data you are not familiar with. Media Cleaner The Media Cleaner can scan the WordPress Media Library or a selected uploads directory for files that do not appear to be referenced by WordPress content. Detected files can be: Reviewed Ignored Deleted Always review detected files before deleting them. Themes, plugins and custom code can reference media in ways that WordPress cannot automatically discover. WooCommerce Compatibility WP Optimizer includes automatic safeguards for WooCommerce. Sensitive WooCommerce requests such as: Cart Checkout My Account WooCommerce sessions Cart actions Relevant API requests are automatically excluded from incompatible caching and runtime HTML optimization. Content changes can automatically invalidate affected cache entries. Page Builder Compatibility WP Optimizer detects editing and preview requests from supported page builders, including: Elementor Beaver Builder Divi Gutenberg Bricks Oxygen Breakdance Editing and preview requests bypass incompatible caching and output transformations, while sensitive generated builder assets and markup are protected from minification where required. Apache, Nginx, LiteSpeed and OpenLiteSpeed WP Optimizer detects and supports multiple common WordPress server environments. Apache and LiteSpeed Enterprise Managed server rules can be written to the local .htaccess file. Nginx WP Optimizer generates an Nginx configuration file. The generated configuration must be included in the website server block and Nginx must then be reloaded. OpenLiteSpeed WP Optimizer can generate compatible rewrite rules for direct cache delivery, redirects and rewrite-based security controls. Enable Auto Load from .htaccess for the appropriate virtual host. Compression, response headers, MIME types and other non-rewrite server settings should be configured through OpenLiteSpeed WebAdmin where required. Cloudflare Integration WP Optimizer can optionally integrate with Cloudflare using a configured API token and Zone ID. The integration can: Test Cloudflare credentials Purge cached content by host Purge cache tags Purge the complete zone cache Automatically purge the configured Cloudflare cache when the local WP Optimizer page cache is cleared Cloudflare is optional and is not required for WP Optimizer’s local optimization features. Safer Performance Testing and Recovery Performance settings can interact differently with every combination of theme, plugins, server and hosting configuration. WP Optimizer therefore includes configuration backup and recovery tools. Before the main settings are changed, WP Optimizer can create an automatic configuration snapshot. The latest configuration backups can be reviewed, restored or deleted from the Settings module. If a fatal error is caused by WP Optimizer or by a WP Optimizer-managed cache drop-in, the recovery system can attempt to: Restore a previous working configuration Remove plugin-managed cache drop-ins Remove generated server rules Clear generated cache data Remove minified resources Remove direct-cache files Reset scheduled optimization tasks Reset WP Optimizer to factory settings Recovery actions do not reset unrelated themes, plugins or server configuration. More WordPress Maintenance Tools Performance is the main focus, but WP Optimizer also provides optional maintenance and administration modules. These include: Cron & Heartbeat Inspect WordPress cron events Create, edit, run or delete cron events Manage custom schedules Reduce unnecessary frontend cron checks Configure the wp-admin Heartbeat interval Schedule automatic database and media optimization WordPress Cleanup Optionally disable unnecessary WordPress output or functionality such as: Emojis XML-RPC Feeds oEmbed Selected REST access Shortlinks Relational links WordPress sitemap jQuery Migrate Dashicons Global Styles Widgets Comments Selected Block Editor functionality Security Hardening Optional WordPress and server hardening controls include: Directory listing protection HTTP TRACE protection Sensitive configuration-file protection HSTS MIME-sniffing protection Referrer policy Frame protection Reduced WordPress/server version disclosure Basic user-enumeration protection WordPress file-editor disabling Activity Log Record selected: User actions Post actions Term actions Attachment changes Option changes Plugin actions Optional suspicious-request monitoring can detect patterns commonly associated with XSS, SQL injection, path traversal, command injection and sensitive-file probes. SMTP & Mail Logging Configure WordPress SMTP transport and optionally record outgoing email for troubleshooting. WordPress Update Controls Control WordPress core and plugin update checks, automatic updates, update notices and related notification emails. System Information Inspect WordPress, PHP, database, web server, filesystem and storage information from one dashboard. Local-First and Modular WP Optimizer does not require a mandatory optimization SaaS or subscription for its core features. Page caching, minification, image optimization, WebP conversion, database optimization, diagnostics and performance monitoring can run on your own WordPress server. Optional integrations such as Cloudflare only communicate with external services when you configure and use those integrations. Optional error-reporting or telemetry functionality can be controlled separately. Most importantly, you do not have to enable everything. If you already have a preferred cache plugin, CDN or another optimization tool, disable overlapping WP Optimizer modules and use only the features that complement your existing stack. Do not let two plugins manage the same optimization layer at the same time, especially: Page cache Object cache Database/query cache HTML/CSS/JavaScript minification Asset combination Generated server rules Recommended Setup For an existing or production WordPress site: Open WP Optimizer → WP Info and review your server environment. Create a database backup. Start with browser caching and supported compression. Configure image optimization and WebP. Enable the WP Optimizer schedule if you want automatic image or database maintenance. Enable page cache. Clear the cache and test important pages. Enable HTML minification and test again. Enable CSS optimization and test again. Enable JavaScript optimization and test again. Test forms, search, login, WooCommerce cart/account/checkout and other dynamic pages. Run Page Test to compare the result. Use Performance Monitor if you still have slow requests, plugins or database queries. Avoid enabling multiple aggressive optimization options simultaneously on an existing production site. Free Performance Features – No Premium-Locked Modules WP Optimizer is free and the performance modules described on this page are not locked behind a premium upgrade. That includes: Static page cache Browser caching GZIP/Brotli configuration HTML/CSS/JavaScript minification Lazy loading LCP optimization Font optimization Local image compression WebP conversion WP_Query cache Database query cache Redis/Memcached object-cache integration Database cleanup Autoload analysis Cron management Page Test Performance Monitor Cloudflare cache purging Configuration backups and recovery Use one plugin as a complete optimization toolkit, or enable only the individual modules your site needs.
DietPress
DietPress is a free WordPress speed optimization plugin with a built-in page cache. Page caching, browser caching, GZIP and Brotli compression, deferred JavaScript, critical CSS, image loading attributes, preloading, locally hosted Google Fonts and selective asset loading, all in one plugin and all free. And it goes further than a caching plugin: it also puts WordPress itself on a diet, switching off the features your site never uses. It pairs that with a clean, risk-based interface. Everything is configurable, the optimizations are already on by default, and nothing is hidden behind a paid tier. Activate it and your site is faster, or open the settings and tune every detail. By default WordPress loads functions, services and scripts that most sites do not need. They slow down loading times and consume hosting resources. DietPress lets you trim that fat and apply battle-tested performance tweaks, with a clear description of what each option does and what might break, organized by risk level so you always know what is safe. WHY CHOOSE DIETPRESS Page caching, for free. Serve anonymous visitors a copy stored on disk instead of building the page again. The feature people buy WP Rocket or a NitroPack subscription for, with no licence and no monthly fee. No drop-in, no changes to wp-config.php. Unlike WP Super Cache or W3 Total Cache, DietPress installs no advanced-cache.php and never edits wp-config.php. Switching it off leaves your site exactly as it was, with nothing orphaned behind. It tells you why. Most cache plugins leave you guessing when nothing is cached. DietPress reports its own status, tests itself against your home page, and names the exact reason a page was skipped. WooCommerce-safe by design. Carts, checkout, my account and any visitor carrying a cart cookie always get the live site, so nobody ever sees somebody else’s basket. Diet as well as speed. Where Perfmatters focuses on disabling scripts, DietPress covers that ground and adds page caching, critical CSS, local Google Fonts and a dashboard, admin and email cleanup, in one plugin. Light on your server. No account, no external service, no telemetry, no upsell nags. Everything runs on your own hosting. WHAT THE PAGE CACHE DOES TO YOUR RESPONSE TIME Measured on a WordPress 7.0 install with GeneratePress, WooCommerce and a 76 product catalogue, PHP 8.5, taking the median of 15 requests per URL. Your own hosting will give different figures, but the shape of the result will not change. Server response time, the same pages with the page cache off and on: Home page – 52.7 ms without, 15.1 ms with, 71% faster WooCommerce shop – 45.4 ms without, 14.8 ms with, 67% faster A 110 KB article – 43.0 ms without, 15.1 ms with, 65% faster A 98 KB page – 41.0 ms without, 14.9 ms with, 64% faster A product category – 41.3 ms without, 15.1 ms with, 63% faster The interesting part is not the percentage, it is that the cached figure barely moves. Serving a stored file costs the same whether the page was cheap or expensive to build, so the saving grows with the size of your site rather than with the power of your server. The heaviest page in the test is the one that gained most. It also changes how much traffic your hosting can take at once. In the same test the server went from serving about 40 visits a second to more than 210, five times as many, on exactly the same plan. That is what keeps a small site standing up when one of your posts does well. TWO THINGS IN ONE PLUGIN 1. Performance optimizations (on by default) Automatic Critical CSS inlined in the head (optional experimental deferral of non-critical CSS) JavaScript defer parsing with smart dependency handling Image loading attributes safety net: lazy loading, decoding=async and fetchpriority for images that bypass core Automatic image dimensions for better CLS scores (including picture elements) Resource hints: preconnect and DNS prefetch for common third-party origins Theme stylesheet, critical fonts and logo preloading for a faster LCP Google Fonts display=swap Google Fonts local hosting: serve the fonts your theme uses from your own server, GDPR-friendly with a silent fallback to the Google CDN (opt-in) Selective third-party loading: WooCommerce, Contact Form 7, block library, Slider Revolution, TablePress, Smash Balloon, Formidable Forms and Everest Forms assets only load where they are used (opt-in) RSS feed optimization (cache headers and item limit) Server rules in .htaccess: browser caching with a configurable lifetime for media, for styles and scripts and for fonts, GZIP and Brotli compression, immutable cache headers, CORS for fonts and keep-alive (master switch plus per-feature toggles) Database maintenance: daily expired-transient cleanup and safe query optimizations Page cache: store each page on disk and serve it to anonymous visitors without building it again, with automatic purging, gzip precompression and a status panel that says whether it is working (opt-in, in its own tab) 2. Put WordPress on a diet (risk-based, opt-in) Light (safe for any site): emojis, RSD/WLW tags, shortlinks, self-pingbacks, comment pagination, and more Moderate (evaluate first): oEmbed, jQuery Migrate, Dashicons on the frontend, Global Styles and Duotone, remote block patterns, avatars and Gravatar, comment threading, and more Strict (site-specific): granular RSS feed control, Heartbeat API mode, post revisions and autosave, disable comments, XML sitemap, native lazy loading/fetchpriority, content types, selective loading for WooCommerce, Contact Form 7, block assets, Slider Revolution, TablePress, Smash Balloon, Formidable Forms and Everest Forms, and more Widgets: dashboard widgets (including third-party ones from Yoast, WooCommerce, Elementor, Jetpack, Wordfence, Rank Math, Gravity Forms), classic sidebar widgets, block-editor widgets and the Customizer Emails: silence the automatic emails WordPress sends on its own, grouped by area: auto-update results for core, plugins and themes (plus the new-version notice), comment moderation and new-comment notices, and new user, password and email-change notices, plus toggles for the admin email verification prompt and post-by-email. Every option is off by default, and critical notices such as a failed core update are always kept SCALE, PROFILES AND ANALYZER Savings indicator: HTTP requests removed, CSS/JS saved and active optimizations at a glance Quick profiles: Personal Blog, WooCommerce Store, Landing Page and Maximum Cleanup Site analyzer: personalized recommendations based on your active plugins and content, page cache included Import and export your whole configuration as a JSON file COMPATIBILITY AND EXTENSIBILITY The plugin includes filters for developers: dietpress_critical_css – Customize the inline critical CSS dietpress_critical_css_handles – Define which CSS handles are critical dietpress_skip_defer_script_handles – Opt scripts out of the JavaScript defer dietpress_skip_defer_style_handles – Opt stylesheets out of the CSS deferral dietpress_preconnect_hints – Customize preconnect origins dietpress_dns_prefetch_domains – Customize DNS prefetch domains dietpress_critical_fonts – Define critical fonts to preload dietpress_exclude_local_fonts – Exclude Google Fonts stylesheets from local hosting dietpress_selective_{module}_has_content – Mark a page as showing the content of a selective loading module, so its assets are kept. The module is wc, cf7, formidable, everest_forms or revslider dietpress_selective_{module}_styles / dietpress_selective_{module}_scripts – Adjust the handles removed by each module dietpress_selective_page_hides_content – Mark a page as rendering content the content scan cannot reach, so no module removes anything (this is what handles Elementor) dietpress_selective_is_wc_page – Override the WooCommerce page detection of selective loading dietpress_selective_wc_keep_cart_fragments – Keep the cart fragments script when your theme has a hand-coded mini-cart dietpress_selective_cf7_has_form – Mark pages that load a Contact Form 7 form dynamically dietpress_selective_blocks_dequeue – Override the block library dequeue decision dietpress_selective_everest_forms_dequeue_dashicons – Keep Dashicons when another plugin enqueues it directly dietpress_native_sitemap_in_use – Tell DietPress your plugin builds on the native WordPress sitemap, so the option that removes it becomes unavailable dietpress_cache_bypass – Keep the current page out of the page cache dietpress_cache_bypass_cookies – Adjust the cookie name prefixes that make a visitor uncacheable dietpress_cache_ignored_params – Adjust the query parameters that do not change the page dietpress_cache_exclude_urls – Adjust the excluded URL patterns dietpress_cache_post_urls – Adjust the URLs purged along with a post Compatible with: Well-coded themes and page builders (Divi, Elementor, Beaver Builder, Bricks Gutenberg) Cache plugins (WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache, etc.). The one exception is the optional page cache module, which will not run beside another page cache and says so; everything else in DietPress works alongside them as it always has Security plugins (DietPress focuses on performance and deliberately leaves security to them; we recommend our free Vigilant) CDNs (Cloudflare, StackPath, KeyCDN, etc.) thanks to CORS and Vary headers WordPress Multisite (except the optional page cache module, which does not support it yet) HOW TO VERIFY THE OPTIMIZATIONS Cache rules: check your .htaccess for a block marked # BEGIN DietPress with immutable Cache-Control headers Logo preload: view page source and look for pointing to your logo Critical CSS: view source and look for in the head Compression: test at giftofspeed.com/gzip-test Always measure with tools like Google PageSpeed, GTMetrix or WebPageTest, and run each test at least twice to account for caching. Support Need private support or custom development? Do you need one-on-one help, priority troubleshooting, or a custom feature, integration, or tweak built specifically for your site? I offer private support and custom development. Just contact me and tell me what you need. Need help or have suggestions? Official website WordPress support forum YouTube channel Documentation and tutorials Love the plugin? Please leave us a 5-star review and help spread the word! About AyudaWP We are specialists in WordPress security, SEO, AI and performance optimization plugins. We create tools that solve real problems for WordPress site owners while maintaining the highest coding standards and accessibility requirements.