

Scale tab: savings indicator, quick profiles and site analyzer.
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.
advanced-cache.php and never edits wp-config.php. Switching it off leaves your site exactly as it was, with nothing orphaned behind.Measured on a WordPress 7.1 install with Astra, WooCommerce and 29 active plugins, PHP 8.5 and Apache, 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 for the same pages without the page cache, with the page cache served by PHP, and with the accelerator:
The interesting part is not the percentage, it is that the cached figures barely move. 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 accelerator also takes away the start of WordPress itself, which is most of what a page served from the cache by PHP still costs.
It also changes how much traffic your hosting can take at once. In the same test the home page went from about 17 visits a second without the page cache to 159 with it and 732 with the accelerator, more than forty times as many, on exactly the same machine. That is what keeps a small site standing up when one of your posts does well.
1. Performance optimizations (on by default)
2. Put WordPress on a diet (risk-based, opt-in)
The plugin includes filters for developers:
dietpress_critical_css – Customize the inline critical CSSdietpress_critical_css_handles – Define which CSS handles are criticaldietpress_skip_defer_script_handles – Opt scripts out of the JavaScript deferdietpress_skip_defer_style_handles – Opt stylesheets out of the CSS deferraldietpress_preconnect_hints – Customize preconnect originsdietpress_dns_prefetch_domains – Customize DNS prefetch domainsdietpress_critical_fonts – Define critical fonts to preloaddietpress_exclude_local_fonts – Exclude Google Fonts stylesheets from local hostingdietpress_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 revsliderdietpress_selective_{module}_styles / dietpress_selective_{module}_scripts – Adjust the handles removed by each moduledietpress_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 loadingdietpress_selective_wc_keep_cart_fragments – Keep the cart fragments script when your theme has a hand-coded mini-cartdietpress_selective_cf7_has_form – Mark pages that load a Contact Form 7 form dynamicallydietpress_selective_blocks_dequeue – Override the block library dequeue decisiondietpress_selective_everest_forms_dequeue_dashicons – Keep Dashicons when another plugin enqueues it directlydietpress_native_sitemap_in_use – Tell DietPress your plugin builds on the native WordPress sitemap, so the option that removes it becomes unavailabledietpress_cache_bypass – Keep the current page out of the page cachedietpress_cache_bypass_request – Keep a request away from the page cache altogether, before anything is read from diskdietpress_cache_bypass_accept – Adjust the media types that keep a request out of the page cachedietpress_cache_bypass_cookies – Adjust the cookie name prefixes that make a visitor uncacheabledietpress_cache_ignored_params – Adjust the query parameters that do not change the pagedietpress_cache_exclude_urls – Adjust the excluded URL patternsdietpress_cache_post_urls – Adjust the URLs purged along with a postCompatible with:
.htaccess for a block marked # BEGIN DietPress with immutable Cache-Control headersX-DietPress-Cache response header: HIT-STATIC when the server served it without PHP, HIT when PHP served it from the cache, MISS when it was built.htaccess has a block marked # BEGIN Page Cache by DietPress right before the WordPress block<link rel="preload" ... fetchpriority="high"> pointing to your logo<style id="core-diet-critical-css"> in the headAlways measure with tools like Google PageSpeed, GTMetrix or WebPageTest, and run each test at least twice to account for caching.
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?
Love the plugin? Please leave us a 5-star review and help spread the word!
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.