Linux 软件免费装
Banner图

DietPress

开发者 fernandot
ayudawp
更新时间 2026年6月25日 03:06
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2+
版权网址: 版权信息

标签

speed performance optimization cleanup bloat

下载

1.0.4 0.9.26 0.9.27 0.9.28 0.9.8 0.9.18 0.9.21 0.9.24 0.9.29 0.9.30 0.9.15 0.9.9 0.9.12 0.9.16 0.9.17 0.9.19 0.9.23 0.9.25 0.9.31 1.0 1.0.1 1.0.2 0.9.11 2.1.2 2.1.0 1.0.6 1.0.5 2.0.1 2.0.3 2.1.1 0.9.10 2.0 2.2.0 0.9.14 0.9.20 0.9.22 1.0.3 2.2.1 2.3.0 3.1.0 3.2.0 0.9.13 2.0.2 2.1.3 2.2.2 2.3.1 3.0.0 1.0.7 2.3.2 3.0.1

详情介绍:

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) 2. Put WordPress on a diet (risk-based, opt-in) SCALE, PROFILES AND ANALYZER COMPATIBILITY AND EXTENSIBILITY The plugin includes filters for developers: Compatible with: HOW TO VERIFY THE OPTIMIZATIONS Always measure with tools like Google PageSpeed, GTMetrix or WebPageTest, and run each test at least twice to account for caching.

安装:

  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.

屏幕截图:

  • Light tab: safe optimizations and cleanup, organized by section.
  • Moderate tab: image, database and editor options to evaluate.
  • Strict tab: frontend performance, server .htaccess rules and site-specific settings.
  • 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.

升级注意事项:

3.2.0 New Emails tab to silence the automatic emails WordPress sends on its own (update results, comment notices, new user and password emails). All new options are off by default. The admin email verification and post-by-email options moved there from the Light tab.

常见问题:

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

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

更新日志:

3.2.0