Performance Lab

外掛說明

Performance Lab 是致力於加強網站效能功能的集合,大部分的功能最後會整合至 WordPress 核心程式中。這個外掛能讓網站管理員在這些功能整合至核心程式前,啟用並測試個別功能以了解相關功能,並提供意見反應讓開發人員改進相關解決方案。

目前這些功能性外掛如下所列:

這些外掛可以在安裝 Performance Lab 後個別安裝,但 Performance Lab 在啟用狀態下,便可確保使用者開發中的新外掛開發佈後,可以即時發現這些效能功能。

安裝方式

自動安裝

  1. 前往 [外掛]→[安裝外掛]
  2. 搜尋「Performance Lab」
  3. 安裝並啟用 Performance Lab 外掛。

手動安裝

  1. 將外掛安裝套件解壓縮所得的 performance-lab 資料夾上傳至網站的 /wp-content/plugins/ 目錄。
  2. 前往 [外掛] 頁面。
  3. 啟用 Performance Lab 外掛。

外掛啟用後

  1. 前往 [設定]→[效能] 選單。
  2. 啟用想要使用的個別功能。

常見問題集

開發這個外掛的目的為何?

Performance Lab 的主要目的在於這些效能功能整合至 WordPress 核心程式前,讓使用者可以進行測試。這個外掛的本質是功能性外掛的集合,這讓它與其他提供非 WordPress 核心程式效能功能的外掛不同,因為其他效能外掛可能會需要 WordPress 核心程式不提供的功能。目前 Performance Lab 提供的效能功能會依照相關規則更新,例如功能整合至 WordPress 核心程式後,便會在外掛中移除,並且新版外掛不定期中加入新功能。

這個外掛可以使用於正式網站嗎?

依據前述的外掛主要目的,請將它視為包含各種效能功能的 Beta 測試版外掛。請注意,除非是標示為「實驗性功能」的功能,全部功能均已經過測試及確認,使用在正式網站應該沒有問題。與其他外掛相同,使用者均應自負使用風險。

使用者可以在何處提交外掛意見反應?

這個外掛作為 WordPress 核心程式的功能性外掛,我們非常希望、也非常感謝大家提供意見反應。使用者如果有任何建議或功能要求,可以在外掛的 GitHub 存放庫提出。如果對這個外掛有需要疑難排解協助或提出問題之處,請在外掛的技術支援論壇提出。

在何處可以回報安全性程式碼錯誤?

效能團隊及 WordPress 社群對安全性程式碼錯誤一向嚴陣以待,我們非常感謝使用者披露相關發現所付出的心力,並會盡全力解決使用者提出的問題。

如需回報安全性問題,請參考 WordPress HackerOne 計畫。

如何為這個外掛做出貢獻?

非常感謝各位的各種貢獻!請參考核心程式效能團隊手冊以進一步了解參與的方式。

使用者評論

2026 年 3 月 11 日 4 則留言
been using a few of the plugins and metrics for testing and scaling, been using some of the plugins noted there on some production sites, but I do advise on never installing the plugins that require optimization detective. let's hope they make it to core fast!
2026 年 2 月 15 日
I have tested this plugin on a few sites and it provides some useful performance features that are helpful for optimization and experimentation. The modular approach is nice and makes it easy to enable or disable specific options. However, the interface and documentation could be improved for better clarity, especially for non-technical users. Overall, it’s a solid plugin with potential, but still needs refinement for a smoother production workflow.
2026 年 1 月 6 日
Performance Lab is the gateway to the future of WordPress. These tools are crucial for anyone serious about site speed, Core Web Vitals, and modern image formats. I have personally translated and reviewed 100% of the strings for the entire Performance Lab ecosystem, including all standalone plugins (WebP Uploads, Speculation Rules, View Transitions, etc.) and their respective Readme files. As the PTE (Translation Editor), I’ve ensured that complex technical terms are translated accurately to help the Persian WordPress community implement these performance enhancements with ease. Kudos to the performance team for these high-quality tools! Best regards, @saeidafshari دوستان و توسعه‌دهندگان گرامی، مجموعه افزونه‌های رسمی تیم کارایی وردپرس، شامل ۱۲ ابزار تخصصی برای افزایش سرعت و بهینه‌سازی سایت، به صورت ۱۰۰٪ فارسی‌سازی و بازبینی شد. تمام مفاهیم مدرن مثل قوانین پیش‌بینی مرورگر و بهینه‌سازی تصاویر به دقت معادل‌سازی شده‌اند تا بتوانید بدون ابهام فنی، از آخرین تکنولوژی‌های جهانی در سایت‌های ایرانی استفاده کنید. با احترام، سعید افشاری
閱讀全部 51 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Performance Lab〉的開發相關工作。

參與者

〈Performance Lab〉外掛目前已有 27 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Performance Lab〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

4.2.0

Enhancements

  • Add declare( strict_types = 1 ) to all PHP files. (2424)
  • Bump minimum PHP requirement from 7.2 to 7.4. (2469)
  • Enqueued Assets audit: treat zero-size and no-store responses as errors. (2481)
  • Server Timing – Allow description and make duration optional. (2379)

4.1.0

Bug Fixes

  • Fix invalid Server-Timing logic for database query timing when $wpdb->queries is null due to no query having been done yet. (2346)

Documentation

  • Remove Web Worker Offloading from being featured by Performance Lab. (2404)

4.0.1

Bug Fixes

  • Add notices and improved type checking for $wpdb->queries when attempting to compute server-timing for database queries. (2159)
  • Skip stylesheets with empty href attributes in Site Health audit. (2281, 2328)
  • Use proper escape function. (2246)

4.0.0

Enhancements

  • Add Instant Back/Forward to list of performance feature plugins. (2119)
  • Add admin pointers to promote new Performance Lab features. (2122)
  • Implement opt-in PERFLAB_PLACE_OBJECT_CACHE_DROPIN for Server-Timing object-cache.php placement. (1996)
  • Use wp_is_rest_endpoint() to detect if we are handling a REST API request. (2094)

Bug Fixes

  • Fix TypeError in perflab_aao_query_autoloaded_options() by serializing non-scalar option values. (1934)
  • Omit admin pointer for new plugin if plugin is already active. (2143)
  • Prevent effective asset cache headers audit from running on local/development environments. (2035)
  • Use HTML Tag Processor to audit blocking scripts & styles in Site Health’s enqueued-assets test. (2059)

3.9.0

Enhancements

  • Remove experimental flags from Embed Optimizer and Image Prioritizer. (1846)

3.8.0

Enhancements

  • Add Site Health test for Cache-Control: no-store page response header which disables bfcache. (1807)
  • Add Site Health test to verify that static assets are served with far-future expires. (1727)
  • Enqueue scripts using plugins_url() instead of plugin_dir_url(). (1761)

3.7.0

Enhancements

  • Add guidance for managing Performance feature plugins. (1734)
  • Automatically discover plugin dependencies when obtaining Performance feature plugins from WordPress.org. (1680)
  • Disregard transient cache in perflab_query_plugin_info() when a plugin is absent. (1694)
  • Minify script used for ajax activation of features; warn if absent and serve original file when SCRIPT_DEBUG is enabled. (1658)

Bug Fixes

  • Fix latest plugin version not being downloaded consistently. (1693)

3.6.1

Bug Fixes

  • Fix race condition bug where activating multiple features sequentially could fail to activate some features. (#1675)

3.6.0

Enhancements

  • Use AJAX for activating features / plugins in Performance Lab. (1646)
  • Introduce AVIF header health check. (1612)
  • Install and activate Optimization Detective when the Embed Optimizer feature is activated from the Performance screen. (1644)

Bug Fixes

  • Fix uses of ‘Plugin not found’ string. (1651)

3.5.1

Bug Fixes

  • Account for plugin dependencies when storing relevant plugin info. (1613)

3.5.0

Enhancements

  • Add Web Worker Offloading to list of Performance features. (1577)
  • Only store info for relevant standalone plugins in the transient cache. (1573)
  • Use a single WordPress.org API request to get information for all plugins. (1562)

3.4.1

Bug Fixes

  • Fix Incorrect use of _n(). (1491)

3.4.0

Enhancements

  • Remove Server-Timing metric for the autoloaded options query time. (1456)

Bug Fixes

  • Avoid sending Server-Timing header when buffer is being cleaned. (1443)
  • Fix disabled options from reappearing in Site Health after external update. (1374)
  • Improve Performance screen when external requests to WordPress.org fail. (1474)

3.3.1

Enhancements

  • Add PHPStan strict rules (except for empty.notAllowed). (1241)

Bug Fixes

  • Allow null to be passed into perflab_admin_pointer(). (1393)

3.3.0

Enhancements

  • Bump minimum WP versions and WP version tested up to. (1333)
  • Improve message for WebP site health test. (1249)
  • Remove ‘Requires at least’ and ‘Requires PHP’ from plugin readmes. (1334)
  • Upgrade PHPStan to 1.11.6. (1325)

Bug Fixes

  • Extend core’s Autoloaded Options Site Health test if present (in WP 6.6). (1298)
  • Fix unit tests for multisite. (1327)

3.2.0

Enhancements

  • Add install note after each PerfLab feature plugin in the plugin list table. (1265)
  • Update plugins with new banners and icons. (1272)

Bug Fixes

  • Fix Server-Timing compatibility with other plugins that do output buffering. (1260)
  • Harden autoloaded-options site health test for incorrectly implemented external object cache plugins. (1238)

3.1.0

Enhancements

  • Add progress indicator when activating a feature. (1190)
  • Display plugin settings links in the features screen and fix responsive layout for mobile. (1208)
  • Add plugin dependency support for activating performance features. (1184)
  • Add support for AVIF image format in site health. (1177)
  • Add server timing to REST API response. (1206)
  • Bump minimum PHP requirement to 7.2. (1130)
  • Refine logic in perflab_install_activate_plugin_callback() to rely only on validated slug. (1170)
  • Improve overall code quality with stricter static analysis checks. (775)

Bug Fixes

  • Avoid passing incomplete data to perflab_render_plugin_card() and show error when plugin directory API query fails. (1175)
  • Do not show admin pointer on the Performance screen and dismiss the pointer when visited. (1147)
  • Fix WordPress.DB.DirectDatabaseQuery.DirectQuery warning for Autoloaded Options Health Check. (1179)

3.0.0

Enhancements

  • Add caching to the wordpress.org query to get plugin information. (1022)
  • Add support for autoloading enhancements in WordPress 6.6 trunk to autoloaded options Site Health check. (1112)
  • Bump minimum required WordPress version to 6.4. (1062)
  • Enhance object-cache.php drop-in placement logic to support updating to a newer version of the file. (1047)
  • Implement support for annotating certain plugins as experimental. (1111)
  • Migrate Site Health checks from being modules to becoming part of the plugin core. (1042)
  • Remove modules infrastructure and UI from the plugin. (1060)
  • Support changing autoload value for largest autoloaded options in Site Health check. (1048)
  • Use plugin slug for generator tag. (1103)

Documentation

  • Update tested WordPress version to 6.5. (1027)

2.9.0

Features

  • Infrastructure: Add standalone plugin version constants for auto-sizes and speculation-rules. (958)

Enhancements

  • Infrastructure: Include standalone plugin slugs in generator tag. (949)

Bug Fixes

  • Infrastructure: Sanitize metric name for Server-Timing header. (957)

2.8.0

Features

  • Infrastructure: Introduce UI for managing Performance Lab standalone plugins. (864)

Enhancements

  • Infrastructure: Add support for plugin live preview in the plugin directory. (890)
  • Infrastructure: Allow module can-load.php callbacks to return a WP_Error with more information. (891)
  • Infrastructure: Implement admin pointer to indicate to the user they need to migrate modules to their standalone plugins. (910)
  • Infrastructure: Implement migration logic and UI from Performance Lab modules to their standalone plugins. (899)
  • Infrastructure: Reset admin pointer dismissal for module migration when the user activates a module. (915)

Bug Fixes

  • Infrastructure: Fix construction of translation strings in admin/plugins.php. (925)

2.7.0

Enhancements

  • Images: Remove Fetchpriority module as the functionality is now available in WordPress core. (854)
  • Infrastructure: Bump minimum required PHP version to 7.0 and minimum required WP version to 6.3. (851)

Documentation

  • Infrastructure: Publish Image Placeholders standalone plugin. (842)

2.6.1

Bug Fixes

  • Infrastructure: Remove PHPStan config file from plugin directory. (816)

Documentation

  • Infrastructure: Add standalone plugin assets. (815)

2.6.0

Features

  • Infrastructure: Add output buffering checkbox to Server-Timing screen. (801)
  • Infrastructure: Implement logic to measure specific hook execution time with Server-Timing controlled by a WP Admin screen. (784)

Enhancements

  • Images: Fix incorrect function prefixes in Image Placeholders. (789)
  • Infrastructure: Add early exit clauses to files with procedural code. (790)
  • Infrastructure: Allow disabling Server-Timing entirely using PERFLAB_DISABLE_SERVER_TIMING constant. (795)

Bug Fixes

  • Images: Fix WebP handling when editing images based on WordPress 6.3 change. (796)
  • Infrastructure: Fix errors detected by Plugin Checker. (788)

2.5.0

Enhancements

  • Images: Check for fetchpriority feature being available in WordPress core before loading the module. (769)
  • Database Optimization: Remove SQLite module. (764)
  • Infrastructure: Bump tested up to version to 6.3. (772)

2.4.0

Enhancements

  • Database: Implement migration prompt to migrate from SQLite module to standalone plugin due to removal in the following release. (739)
  • Infrastructure: Enhance code quality by adding PHPStan and fixing level 0 issues. (730)
  • Infrastructure: Use static closures for minor performance improvement whenever instance access is not needed. (729)

Bug Fixes

  • Database: Fix SQLite module deactivation routine to make standalone plugin migration work correctly. (743)
  • Infrastructure: Make Server-Timing header output more robust. (736)

2.3.0

Enhancements

  • Images: Configure Dominant Color and Fetchpriority modules for their standalone plugins. (704)
  • Infrastructure: Temporarily remove Image Placeholders from standalone plugins.json definition. (719)
  • Infrastructure: Use dynamic version from plugins.json for manual workflow. (710)

Bug Fixes

  • Images: Add dominant color styling before any existing inline style attributes. (716)
  • Infrastructure: Resolve low-severity security advisory GHSA-66qq-69rw-6×63.

2.2.0

Enhancements

  • Images: Remove “experimental” flag from Fetchpriority module. (