Title: Performance Tweaks
Author: Rick Hoekman
Published: <strong>2022 年 7 月 9 日</strong>
Last modified: 2025 年 9 月 19 日

---

搜索插件

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

![](https://ps.w.org/performance-tweaks/assets/icon.svg?rev=2754112)

# Performance Tweaks

 作者：[Rick Hoekman](https://profiles.wordpress.org/rhoekman/)

[下载](https://downloads.wordpress.org/plugin/performance-tweaks.0.7.3.zip)

 * [详情](https://cn.wordpress.org/plugins/performance-tweaks/#description)
 * [评价](https://cn.wordpress.org/plugins/performance-tweaks/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/performance-tweaks/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/performance-tweaks/#developers)

 [支持](https://wordpress.org/support/plugin/performance-tweaks/)

## 描述

Simple but effective performance tweaks for WordPress—now with a polished, tabbed
settings UI.

Features are grouped like your workflow: Scripts & Assets, Network, Security, Performance&
Admin, and Database.

#### Scripts & Assets

 * Contact Form 7 Smart Loader — Only loads CF7 assets on pages with a form.
 * CF7 reCAPTCHA Smart Loader — Dequeues reCAPTCHA when no CF7 form is present.
 * Disable Advanced Custom Fields on Frontend — Stops ACF assets from loading on
   the frontend.
 * Emoji Unloader — Removes Emoji CSS and JavaScript.
 * Defer JavaScript — Adds defer attribute to eligible scripts.
 * Async JavaScript — Adds async attribute to eligible scripts.
 * Async/Defer Exclude Handles — A textarea to exclude script handles from async/
   defer.
 * Remove Query Strings — Strips ?ver= from CSS/JS URLs to improve CDN caching.
 * Block CSS Smart Loader (classic themes) — Dequeues block CSS on singular pages
   without blocks.
 * Separate Core Block CSS (WP 5.8+) — Opt-in to load only the CSS for blocks used
   on the page.
 * Disable Dashicons for Visitors — Removes dashicons for non-logged-in users.
 * Disable jQuery Migrate (frontend) — Drops jquery-migrate from frontend dependencies.
 * Boost Hero Image (fetchpriority) — Adds fetchpriority=”high” to the first content
   image on singular pages.
 * Lazy‑load iframes in Content — Ensures iframes in post content use loading=”lazy”.
 * WooCommerce Smart Loader — Loads WC CSS/JS only on WooCommerce pages (shop, product,
   cart, checkout, account).

#### Network

 * DNS Single Post Prefetch — Prefetch homepage on singular pages to speed return
   navigation (HTTP/2).
 * Resource Hints Hosts — Add domains for dns-prefetch and preconnect (one per line).
 * Google Fonts Preconnect — Adds preconnect hints for fonts.googleapis.com and 
   fonts.gstatic.com.

#### Security

 * Disable XML-RPC — Blocks the XML-RPC endpoint unless you need it.
 * Disable WP Embeds / oEmbed — Removes discovery links and wp-embed script.
 * Head Cleanup — Removes RSD, WLW, generator, shortlink, and extra feed links.

#### Performance & Admin

 * Disable WordPress Heartbeat (Frontend) — Keep editor autosave, reduce frontend
   pings.
 * Heartbeat Interval — Set between 15–120 seconds.
 * WP‑Cron Guidance — Advisory copy to move cron to a real system cron.

#### Database

 * Limit Post Revisions — Define WP_POST_REVISIONS to 5.
 * Autosave Interval (advisory) — Suggest a wp-config constant.
 * Empty Trash Days (advisory) — Suggest a wp-config constant.

#### UI/UX

 * Tabbed settings with keyboard navigation and ARIA roles.
 * Card layout, helpful tooltips, and consistent spacing.
 * Sticky save bar with “unsaved changes” hint.
 * “Reset all settings” link (with nonce) to clear options without uninstalling.

## 安装

#### Installation from within WordPress

 1. Visit **Plugins > Add New**.
 2. Search for **Performance Tweaks**.
 3. Install and activate the Performance Tweaks plugin.

#### Manual installation

 1. Upload the entire `rh-performance` folder to the `/wp-content/plugins/` directory.
 2. Visit **Plugins**.
 3. Activate the Performance Tweaks plugin.

#### After activation

 1. Visit the new **Settings > Performance Tweaks** menu.
 2. Use the tabs to navigate categories and enable only what you need.
 3. Optional: Click “Reset all settings” to clear options (no uninstall required).

## 评价

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

### 󠀁[Very useful plugin](https://wordpress.org/support/topic/very-useful-plugin-1661/)󠁿

 [ferda2](https://profiles.wordpress.org/ferda2/) 2025 年 12 月 10 日

Simple, clear, functional!

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

### 󠀁[Very clean and does the job](https://wordpress.org/support/topic/very-clean-and-does-the-job/)󠁿

 [creeertnet](https://profiles.wordpress.org/creeertnet/) 2022 年 9 月 2 日

This is an extremely simple plugin when it comes to setting up! It really did improve
the sites I installed it on in terms of speed. The developer is very responsive 
to any support questions and feature requests. Best of all it’s free, and there’s
no marketing upsell for a pro version anywhere. Highly recommended!

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

### 󠀁[Excellent plugin](https://wordpress.org/support/topic/excellent-plugin-8004/)󠁿

 [jippiejoo](https://profiles.wordpress.org/jippiejoo/) 2022 年 7 月 11 日

This plugin is excellent! It made my site faster and saver! Its very easy to use
and great support! THNX!

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/performance-tweaks/reviews/)

## 贡献者及开发者

「Performance Tweaks」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Rick Hoekman ](https://profiles.wordpress.org/rhoekman/)

「Performance Tweaks」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/performance-tweaks/contributors)
为本插件所做的贡献。

[帮助将「Performance Tweaks」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/performance-tweaks)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/performance-tweaks/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/performance-tweaks/)，或通过[RSS](https://plugins.trac.wordpress.org/log/performance-tweaks/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/performance-tweaks/)。

## 更新日志

#### 0.7.3

Major update with new features and a refined UI.

**Features**

 * WooCommerce Smart Loader (only load WC assets on Woo pages)
 * Separate Core Block CSS (WP 5.8+)
 * Block CSS Smart Loader for classic themes
 * Disable Dashicons for visitors
 * Disable jQuery Migrate on the frontend
 * Resource Hints hosts + Google Fonts preconnect
 * Heartbeat interval + frontend-only disable
 * Hero image fetchpriority and iframe lazy‑loading
 * CF7 reCAPTCHA smart loader
 * Async/Defer exclude handles

**Security/Head**

 * Disable WP Embeds / oEmbed discovery
 * Head cleanup (RSD, WLW, generator, shortlink, extra feeds)

**UI/UX**

 * Tabbed settings with accessible ARIA roles and keyboard nav
 * Card layout and spacing improvements
 * Sticky “unsaved changes” save bar
 * “Reset all settings” helper (nonce-protected)

#### 0.6.6

Tested with WordPress 6.7

#### 0.6.5

Tested with latest WordPress and PHP 8.1

#### 0.6.4

**Features**

Added an option to limit Post Revisions to a maximum of 5

#### 0.6.3

**Bug Fixes**

 * The ‘defer’ tag for JavaScript is now only inserted on the frontend.

## 额外信息

 *  版本 **0.7.3**
 *  最后更新：**8 月前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 8.0 或更高版本 **
 *  语言
 * [Dutch](https://nl.wordpress.org/plugins/performance-tweaks/) 、 [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/performance-tweaks/)
   和 [English (US)](https://wordpress.org/plugins/performance-tweaks/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/performance-tweaks)
 * 标签
 * [Optimize](https://cn.wordpress.org/plugins/tags/optimize/)[pagespeed](https://cn.wordpress.org/plugins/tags/pagespeed/)
   [performance](https://cn.wordpress.org/plugins/tags/performance/)[speed](https://cn.wordpress.org/plugins/tags/speed/)
 *  [高级视图](https://cn.wordpress.org/plugins/performance-tweaks/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  3 条 5 星评价     ](https://wordpress.org/support/plugin/performance-tweaks/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/performance-tweaks/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/performance-tweaks/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/performance-tweaks/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/performance-tweaks/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/performance-tweaks/reviews/)

## 贡献者

 *   [ Rick Hoekman ](https://profiles.wordpress.org/rhoekman/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/performance-tweaks/)