Performance Lab


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


  • WebP 上傳:如果伺服器支援,便會在上傳 JPEG 圖片後建立 WebP 格式圖片。
  • Dominant Color: Adds support to store dominant color for an image and create a placeholder background with that color.
  • Audit Full Page Cache: Adds a check for full page cache in Site Health status.
  • WebP 支援:在 [網站狀態] 中加入 WebP 支援檢查。
  • 稽核自動載入的選項:在 [網站狀態] 中加入自動載入的選項的檢查。
  • 稽核已佇列的資源:在 [網站狀態] 中加入 CSS 及 JS 資源檢查。
  • 持續物件快取狀態檢查:在 [網站狀態] 中為具有大量資料的網站加入持續物件快取檢查。



  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 存放庫提出。




2022 年 6 月 22 日
Loving all the features so far. Dominant color is a game change for my site. Keep pushing. This is what is going to keep WordPress dominating.
2022 年 6 月 7 日
i appreciate that you are finally going to add webp support after 10 years to wordpress core, but why not add "avif" too since its so much better and supported by more browsers?
2022 年 3 月 19 日
Very good initiative and idea It lacks some features and precisions but the plugin will evolve over time according to the authors.
2022 年 3 月 16 日
Finally, performance related feature from wordpress!! Starting from image optimization...looking forward to get more performance related features.
閱讀全部 10 則使用者評論


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


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

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


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




  • Images: Add Dominant Color module to provide color background for loading images. (282)
  • Site Health: Add Site Health check for Full Page Cache usage. (263)


  • Images: Update webp_uploads_pre_generate_additional_image_source filter to allow returning file size. (334)
  • Infrastructure: Introduce plugin uninstaller routine. (345)
  • Infrastructure: Use wp_filesize instead of filesize if available. (376)

Bug Fixes

  • Images: Avoid overwriting existing WebP files when creating WebP images. (359)
  • Images: Back up edited full image sources when restoring the original image. (314)



  • Infrastructure: Add Performance Lab generator meta tag to wp_head output. (322)


  • Images: Introduce filter webp_uploads_pre_generate_additional_image_source to short-circuit generating additional image sources on upload. (318)
  • Images: Introduce filter webp_uploads_pre_replace_additional_image_source to short-circuit replacing additional image sources in frontend content. (319)
  • Images: Refine logic to select smaller image file in the frontend based on webp_uploads_prefer_smaller_image_file filter. (302)
  • Images: Replace the featured image with WebP version when available. (316)
  • Site Health: Update Site Health Autoloaded options documentation link. (313)
  • Infrastructure: Avoid unnecessarily early escape of Site Health check labels. (332)

Bug Fixes

  • Object Cache: Correct label for persistent object cache Site Health check. (329)
  • Images: Only update the specified target images when an image is edited. (301)



  • Images: Generate secondary image MIME types when editing original image. (235)


  • Images: Introduce webp_uploads_prefer_smaller_image_file filter allowing to opt in to preferring the smaller image file. (287)
  • Images: Select MIME type to use in frontend content based on file size. (243)
  • Site Health: Update Site Health reports copy for more clarity and consistency. (272)


  • Infrastructure: Define the plugin’s version support and backward compatibility policy. (240)



  • Images: Change expected order of items in the webp_uploads_content_image_mimes filter. (250)
  • Images: Replace images in frontend content without using an additional regular expression. (262)
  • Images: Restore and backup image sizes alongside the sources properties. (242)

Bug Fixes

  • Images: Select image editor based on WebP support instead of always using the default one. (259)


Bug Fixes

  • Infrastructure: Ensure default modules are loaded regardless of setting registration. (248)



  • Images: Create additional MIME types for the full size image. (194)
  • Site Health: Add module to warn about excessive amount of autoloaded options. (124)


  • Images: Adds sources information to the attachment media details of the REST response. (224)
  • Images: Allow developers to select which image format to use for images in the content. (230)
  • Images: Allow developers to tweak which image formats to generate on upload. (227)
  • Images: Replace the full size image in the_content with additional MIME type if available. (195)
  • Object Cache: Include memcached extension in checks for object cache support. (206)
  • Infrastructure: Add plugin banner and icon assets. (231)
  • Infrastructure: Use .gitattributes instead of .distignore to better support ZIP creation. (223)

Bug Fixes

  • Images: Use original image to generate all additional image format sub-sizes. (207)
  • Infrastructure: Replace unreliable activation hook with default value for enabled modules. (222)


  • Infrastructure: Update release instructions to include proper branching strategy and protect release branches. (221)



  • Images: Add WebP for uploads module. (32)
  • Images: Support retry mechanism for generating sub-sizes in additional MIME types on constrained environments. (188)
  • Images: Update the_content with the appropiate image format. (152)
  • Site Health: Add WebP support in site health. (141)
  • Site Health: Add module to alert about excessive JS and CSS assets. (54)
  • Object Cache: Add Site Health check module for persistent object cache. (111)
  • Infrastructure: Add settings screen to toggle modules. (30)
  • Infrastructure: Added admin pointer. (199)


  • Object Cache: Always recommend object cache on multisite. (200)
  • Images: Create image sub-sizes in additional MIME types using sources for storage. (147)
  • Images: Update module directories to be within their focus directory. (58)
  • Site Health: Enhance detection of enqueued frontend assets. (136)
  • Infrastructure: Add link to Settings screen to the plugin’s entry in plugins list table. (197)
  • Infrastructure: Enable all non-experimental modules on plugin activation. (191)
  • Infrastructure: Include generated module-i18n.php file in repository. (196)
  • Infrastructure: Introduce perflab_active_modules filter to control which modules are active. (87)
  • Infrastructure: Remove unnecessary question marks from checkbox labels. (110)
  • Infrastructure: Rename object-caching to object-cache. (108)

Bug Fixes

  • Images: Ensure the -scaled image remains in the original uploaded format. (143)
  • Images: Fix typo to access to the correct image properties. (203)
  • Infrastructure: Ensure that module header fields can be translated. (60)


  • Site Health: Mark Site Health Audit Enqueued Assets module as experimental for now. (205)
  • Infrastructure: Add readme.txt and related update script. (72)
  • Infrastructure: Add changelog generator script. (51)
  • Infrastructure: Add contribution documentation. (47)
  • Infrastructure: Add release documentation. (138)
  • Infrastructure: Define module specification in documentation. (26)