Title: DietPress
Author: Fernando Tellado
Published: <strong>October 17, 2017</strong>
Last modified: July 27, 2026

---

Search plugins

![](https://ps.w.org/wpo-tweaks/assets/banner-772x250.jpg?rev=3568326)

![](https://ps.w.org/wpo-tweaks/assets/icon-256x256.jpg?rev=3567304)

# DietPress

 By [Fernando Tellado](https://profiles.wordpress.org/fernandot/)

[Download](https://downloads.wordpress.org/plugin/wpo-tweaks.3.3.1.zip)

[Live Preview](https://wordpress.org/plugins/wpo-tweaks/?preview=1)

 * [Details](https://wordpress.org/plugins/wpo-tweaks/#description)
 * [Reviews](https://wordpress.org/plugins/wpo-tweaks/#reviews)
 *  [Installation](https://wordpress.org/plugins/wpo-tweaks/#installation)
 * [Development](https://wordpress.org/plugins/wpo-tweaks/#developers)

 [Support](https://wordpress.org/support/plugin/wpo-tweaks/)

## Description

DietPress puts your WordPress on a diet and speeds it up. It pairs a complete set
of performance optimizations (the ones that used to ship in “Zero Config Performance
Optimization”) with a clean, risk-based interface to disable the WordPress features
you do not use. Everything is configurable, and the performance optimizations are
already on by default, so you can simply activate and enjoy a faster site, or fine-
tune every detail.

> **Coming from “Zero Config Performance Optimization”?** This is the same plugin,
> now called DietPress and fully configurable. All your previous optimizations stay
> active by default; you just gained a settings page and a whole new set of WordPress-
> diet options.

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.

### 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 and block library 
   assets only load where they are used (opt-in)
 * RSS feed optimization (cache headers and item limit)
 * Server rules in .htaccess: browser caching, 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

**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 of WooCommerce, Contact Form 7 and block assets,
   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
 * 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_is_wc_page` – Override the WooCommerce page detection of
   selective loading
 * `dietpress_selective_wc_styles` / `dietpress_selective_wc_scripts` – Adjust the
   WooCommerce handles removed on non-store pages
 * `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

**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.)
 * 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

### 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 `<link rel="preload" ... fetchpriority
   ="high">` pointing to your logo
 * **Critical CSS:** view source and look for `<style id="core-diet-critical-css"
   >` in the head
 * **Compression:** test at [giftofspeed.com/gzip-test](https://www.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](https://wordpress.org/plugins/wpo-tweaks/wpo-tweaks@ayudawp.com?output_format=md)
and tell me what you need.

Need help or have suggestions?

 * [Official website](https://servicios.ayudawp.com/)
 * [WordPress support forum](https://wordpress.org/support/plugin/wpo-tweaks/)
 * [YouTube channel](https://www.youtube.com/AyudaWordPressES)
 * [Documentation and tutorials](https://ayudawp.com/)

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.

## Screenshots

[⌊Scale tab: savings indicator, quick profiles and site analyzer.⌉⌊Scale tab: savings
indicator, quick profiles and site analyzer.⌉[

Scale tab: savings indicator, quick profiles and site analyzer.

[⌊Light tab: safe optimizations and cleanup, organized by section.⌉⌊Light tab: safe
optimizations and cleanup, organized by section.⌉[

Light tab: safe optimizations and cleanup, organized by section.

[⌊Moderate tab: image, database and editor options to evaluate.⌉⌊Moderate tab: image,
database and editor options to evaluate.⌉[

Moderate tab: image, database and editor options to evaluate.

[⌊Strict tab: frontend performance, server .htaccess rules and site-specific settings.⌉⌊
Strict tab: frontend performance, server .htaccess rules and site-specific settings
.⌉[

Strict tab: frontend performance, server .htaccess rules and site-specific settings.

[⌊Widgets tab: dashboard, block editor, Customizer and classic sidebar widgets.⌉⌊
Widgets tab: dashboard, block editor, Customizer and classic sidebar widgets.⌉[

Widgets tab: dashboard, block editor, Customizer and classic sidebar widgets.

[⌊Emails tab: silence the automatic emails WordPress sends on its own, grouped by
updates, comments, users and passwords.⌉⌊Emails tab: silence the automatic emails
WordPress sends on its own, grouped by updates, comments, users and passwords.⌉[

Emails tab: silence the automatic emails WordPress sends on its own, grouped by 
updates, comments, users and passwords.

## Installation

 1. Go to your WP Dashboard > Plugins > Add New and search for ‘DietPress’, or upload
    the `wpo-tweaks` folder to `/wp-content/plugins/`.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Open the **DietPress** menu to review the settings. Performance optimizations are
    already on; the diet options are off until you enable them.

## FAQ

### I was using “Zero Config Performance Optimization”. What changed?

It is the same plugin, now called DietPress. All the performance optimizations you
had are still active by default, so nothing breaks on update. On top of that you
now get a settings page, individual control over every optimization, and a complete
set of options to disable unused WordPress features.

### Is it still zero-config?

Yes, if you want it to be. The performance optimizations are on by default, so you
can just activate and go. The difference is that now you can fine-tune everything
and, optionally, put WordPress on a diet by disabling features you do not use.

### I also have the standalone “DietPress” (core-diet) plugin installed. What do I do?

Nothing needs to be done by hand. When this plugin is active it detects the old “
core-diet” plugin and deactivates it automatically (and core-diet 1.0.4 also steps
aside on its own). Your settings are preserved because both plugins store them in
the same place. The only thing left for you to do is delete the “core-diet” plugin
whenever you like.

### Where are the security options the standalone DietPress had?

They were intentionally left out. The standalone DietPress (core-diet) included 
a few security toggles (disable XML-RPC, hide login errors, disable Application 
Passwords, hide the WordPress version, close pingbacks). Security belongs in a security
plugin, where those protections are implemented properly and maintained as such;
we recommend our free [Vigilant](https://wordpress.org/plugins/vigilante/). If you
migrate with any of those toggles enabled, DietPress shows you a one-time notice
listing them, and those features simply return to the default WordPress behavior.

### Will it break my site?

The performance optimizations are designed to be safe and are tested across many
sites. The diet options only change something when you explicitly enable each toggle,
and every option has a description of what might break. If something fails, turn
the toggle off; deactivating the plugin restores default WordPress behavior.

### How does Google Fonts local hosting work?

When you enable it (Light tab, Performance section), DietPress detects the Google
Fonts stylesheets your theme enqueues, downloads the stylesheet and its font files
once, stores them in your uploads folder, and serves everything from your own server.
Visitors no longer connect to Google (faster fonts and GDPR-friendly, since no visitor
data is sent to a third party). If any download fails, the fonts silently keep loading
from the Google CDN. The local copies are refreshed when you switch themes and removed
when you disable the option or deactivate the plugin. Fonts hardcoded by a theme
outside the standard WordPress enqueue system are left untouched.

### Selective loading removed something my site needs

Each selective loading module only removes assets where its target content is not
detected, but unusual setups exist: a hand-coded header mini-cart, a form injected
via AJAX, or a classic theme that reuses block styles everywhere. Turn the specific
toggle off, or use the escape filters (`dietpress_selective_wc_keep_cart_fragments`,`
dietpress_selective_cf7_has_form`, `dietpress_selective_blocks_dequeue`) to keep
exactly what your site needs.

### Is it compatible with caching plugins and CDNs?

Yes. DietPress works alongside caching plugins and includes CORS and Vary headers
for full CDN compatibility.

### Something went wrong after activation

If a plugin or theme does not enqueue scripts correctly, the JavaScript defer may
affect it; you can turn that option off or use the `dietpress_skip_defer_script_handles`
filter. If you get a 500 error, edit your `.htaccess` and remove the block that 
starts with `# BEGIN DietPress` (or `# BEGIN Zero Config Performance` if you updated
from 2.x and the rules have not been rewritten yet), or disable the “.htaccess server
rules” option.

### Can I customize the optimizations as a developer?

Yes. See the filters listed in the description (the `dietpress_*` hooks).

## Reviews

![](https://secure.gravatar.com/avatar/e532f107ce09aff23a0b9483276a3e847b4dd73728b383331e1364428a001040?
s=60&d=retro&r=g)

### 󠀁[Espectacular](https://wordpress.org/support/topic/espectacular-60/)󠁿

 [MIndart](https://profiles.wordpress.org/dattamaster2016/) July 31, 2026 1 reply

Realmente espectacular, sumamente fácil de usar y de configurar. Muchas gracias,
Fernando por todo el trabajo, realmente lo aprecio. Saludos

![](https://secure.gravatar.com/avatar/964ed4b6bb1e5bd6b73ab521eaf63076d2bc1b34fd63f19f602e66411d6f22a7?
s=60&d=retro&r=g)

### 󠀁[Works like a charm!!](https://wordpress.org/support/topic/works-like-a-charm-2465/)󠁿

 [jburg3333](https://profiles.wordpress.org/jburg3333/) June 12, 2026 1 reply

Looks like I’m the next one going on a diet (lol)But seriously, I really missed 
having a WPO plugin with proper settings. Fantastic!!

![](https://secure.gravatar.com/avatar/baa244b92e9350da57a84916e049301d39bf59973cf0c72efcd0a2f42bc3389a?
s=60&d=retro&r=g)

### 󠀁[¡El plugin es excelente y el soporte aún mejor!](https://wordpress.org/support/topic/el-plugin-es-excelente-y-el-soporte-aun-mejor/)󠁿

 [peludikus38](https://profiles.wordpress.org/peludikus38/) February 13, 2026 1 
reply

Llevo varios años utilizando este súper efectivo plugin (ahora mejorado y actualizado)
y otros productos más de este excelente desarrollador, siendo mi experiencia siempre
altamente satisfactoria. Lo más importante no es solo que el producto funcione y
haga lo que tenga que hacer, sino que atrás de ello exista una persona comprometida
con la satisfacción del usuario. En varias oportunidades se me ha “trancado el serrucho”
y después de acudir a Fernando en busca de apoyo, siempre he conseguido la solución
a mis dificultades. Desde mi profundo agradecimiento por esas veces y recién ahora
por una última ayudita, solo me resta recomendar este y sus otros funcionales desarrollos
de uso libre (no dejen de revisar el resto de sus productos).

![](https://secure.gravatar.com/avatar/8439c0b8e69dba402a16468e80e8f09ee3113b50c71fecbe41426ef070b3d1cd?
s=60&d=retro&r=g)

### 󠀁[Light and useful](https://wordpress.org/support/topic/light-and-useful-6/)󠁿

 [Alvaro Torres](https://profiles.wordpress.org/algato333/) January 16, 2026 1 reply

Just what you need

![](https://secure.gravatar.com/avatar/5b0a1b43796cabd58557441ad319e078e81a1cf7020562e73b1c377da0d5bd37?
s=60&d=retro&r=g)

### 󠀁[Clean](https://wordpress.org/support/topic/clean-45/)󠁿

 [Héctor Tellado](https://profiles.wordpress.org/hectortellado/) January 12, 2026

Clean and simple optimizations, really light and great

![](https://secure.gravatar.com/avatar/79ef47dd88ccaf5dc8e433c72adf41078f9e6b5b4d2ca5073023962af9a26cf8?
s=60&d=retro&r=g)

### 󠀁[Amazing](https://wordpress.org/support/topic/amazing-4189/)󠁿

 [stablehostcoupon](https://profiles.wordpress.org/stablehostcoupon/) November 5,
2025 1 reply

My Performance point increase from 75 to 94 on mobile device test. Amazing result
Keep up the great work!

 [ Read all 37 reviews ](https://wordpress.org/support/plugin/wpo-tweaks/reviews/)

## Contributors & Developers

“DietPress” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ Fernando Tellado ](https://profiles.wordpress.org/fernandot/)
 *   [ Ayuda WordPress ](https://profiles.wordpress.org/ayudawp/)

“DietPress” has been translated into 9 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/wpo-tweaks/contributors)
for their contributions.

[Translate “DietPress” into your language.](https://translate.wordpress.org/projects/wp-plugins/wpo-tweaks)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wpo-tweaks/), check
out the [SVN repository](https://plugins.svn.wordpress.org/wpo-tweaks/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/wpo-tweaks/) by 
[RSS](https://plugins.trac.wordpress.org/log/wpo-tweaks/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 3.3.1

 * Fix: “Disable media library image editor” no longer removes the Imagick and GD
   image editors site-wide. Doing so also stopped WordPress from creating thumbnails
   on upload and from regenerating them with WP-CLI or a regeneration plugin. The
   option now disables only the editor itself: its entry points, its AJAX endpoints
   and its script.
 * Fix: “Enhance image loading attributes” no longer produces an invalid image tag
   when the original tag is self-closing. The closing slash was left in the middle
   of the tag, before the attributes added by the plugin.
 * Fix: Featured images no longer come out with fetchpriority=”high” and loading
   =”lazy” at the same time. They travel through two filters, and the second one
   no longer treats an image already marked as high priority as a candidate for 
   lazy loading, which worked against the very LCP the option aims to improve.
 * Fix: Deferred scripts no longer get a second defer attribute. WordPress 6.3 and
   later defers some scripts on its own, and adding another one made the tag invalid.
   WooCommerce was the most visible case.
 * Fix: Removed a dead loop in the daily transient cleanup. It looked up three names
   as transients when they are an object cache key and a prefix, so it never matched
   anything. The cleanup itself is unchanged.

#### 3.3.0

 * New: Google Fonts local hosting. DietPress can now download the Google Fonts 
   your theme enqueues and serve them from your own server: no more visitor connections
   to Google (faster font delivery and GDPR-friendly), with a silent fallback to
   the Google CDN if any download fails, and automatic cleanup on theme switch or
   when turned off. Off by default; find it in Light > Performance next to the display
   =swap option, which keeps working as fallback.
 * New: Selective third-party loading, a new section in the Strict tab with three
   opt-in modules that stop loading assets where they are not used: WooCommerce 
   styles and scripts outside the store (the cart fragments script is kept when 
   a mini-cart widget is detected), Contact Form 7 assets on pages without a form,
   and the block library stylesheets on pages whose content uses no blocks (skipped
   on block themes, and Global Styles are never touched). Each module only acts 
   when its target plugin is present, the site analyzer suggests them when they 
   apply, the Maximum cleanup profile enables them, and escape filters cover custom
   setups.

For older changelog entries, please check the [changelog.txt](https://plugins.svn.wordpress.org/wpo-tweaks/trunk/changelog.txt)
file.

## Meta

 *  Version **3.3.1**
 *  Last updated **5 days ago**
 *  Active installations **2,000+**
 *  WordPress version ** 6.3 or higher **
 *  Tested up to **7.0.2**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [English (Canada)](https://en-ca.wordpress.org/plugins/wpo-tweaks/), [English (UK)](https://en-gb.wordpress.org/plugins/wpo-tweaks/),
   [English (US)](https://wordpress.org/plugins/wpo-tweaks/), [Galician](https://gl.wordpress.org/plugins/wpo-tweaks/),
   [Portuguese (Portugal)](https://pt.wordpress.org/plugins/wpo-tweaks/), [Spanish (Chile)](https://cl.wordpress.org/plugins/wpo-tweaks/),
   [Spanish (Colombia)](https://es-co.wordpress.org/plugins/wpo-tweaks/), [Spanish (Ecuador)](https://es-ec.wordpress.org/plugins/wpo-tweaks/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/wpo-tweaks/), and [Spanish (Venezuela)](https://ve.wordpress.org/plugins/wpo-tweaks/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/wpo-tweaks)
 * Tags
 * [bloat](https://wordpress.org/plugins/tags/bloat/)[cleanup](https://wordpress.org/plugins/tags/cleanup/)
   [optimization](https://wordpress.org/plugins/tags/optimization/)[performance](https://wordpress.org/plugins/tags/performance/)
   [speed](https://wordpress.org/plugins/tags/speed/)
 *  [Advanced View](https://wordpress.org/plugins/wpo-tweaks/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  36 5-star reviews     ](https://wordpress.org/support/plugin/wpo-tweaks/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/wpo-tweaks/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/wpo-tweaks/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/wpo-tweaks/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/wpo-tweaks/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wpo-tweaks/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wpo-tweaks/reviews/)

## Contributors

 *   [ Fernando Tellado ](https://profiles.wordpress.org/fernandot/)
 *   [ Ayuda WordPress ](https://profiles.wordpress.org/ayudawp/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wpo-tweaks/)