AAA Option Optimizer

外掛說明

這個外掛會追蹤使用於頁面的自動載入選項,並在頁面轉譯結束時儲存相關資料。它會產生一個顯示使用中的選項的陣列,然後在網站管理頁面會比較儲存於選項陣列中的自動載入選項,並顯示使用者瀏覽網站時沒有使用的自動載入選項;如果已瀏覽過網站上的全部頁面,或對應外掛已使用一週左右,就代表這類選項不需要自動載入。

外掛使用方式

安裝這個外掛後,請瀏覽整個網站,最佳方式是正常使用數日,或自行造訪網站前端或管理後台的全部頁面。之後前往外掛設定頁面,查看屬於「未使用」的選項。網站管理員可以判斷是否要移除未使用的選項 (可能是網站不再使用的外掛的執行個體),或將這類選項設定為不要自動載入。後者對網站影響較小,選項仍然存在,只是不會自動載入。

螢幕擷圖

  • 外掛設定頁面的第一個分頁
  • 外掛的 [全部選項] 分頁,這個分頁可供顯示並瀏覽全部選項

安裝方式

  1. 在 [安裝外掛] 頁面搜尋「AAA Option Optimizer」。
  2. 安裝外掛。
  3. 請耐心等待大約一週。如果急於知道結果,請自行點擊網站上的每個頁面,並確定點擊了網站前端及網站管理後台的每個頁面。
  4. 前往這個外掛的管理頁面,並對選項的使用方式進行最佳化。

常見問題集

為什麼這個外掛的名稱會以 AAA 為前置詞?

因為這個外掛需要監測已載入的選項,所以先於其他外掛載入會有所幫助。由於 WordPress 會依據字母順序載入外掛,以 AAA 命名外掛相當合情合理。

是否必須採取預防措施?

是!在進行任何操作前,請先備份網站資料庫。

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

請在這個外掛的 GitHub 存放庫回報程式碼錯誤或程式碼建議,也歡迎在技術支援論壇提出問題。

關於安全性問題,請參照下一個問題。

如何回報安全性問題?

使用者可以透過 Patchstack 的漏洞揭露計畫回報安全性問題。Patchstack 團隊會協助驗證、分類及處理任何安全性漏洞。點擊這裡回報安全性漏洞。

如何在這個外掛中為現有的外掛新增可供辨識的資訊?

請透過 GitHub 為這個外掛的指定檔案進行增補,並提出提取要求。

使用者評論

2025 年 8 月 30 日
Allows you to clean up the options on sites with a long history of themes and plugins installations.Very useful.
2025 年 8 月 29 日
Under “Requested options that do not exist”, I’m not sure to trust setting these to false. Is there a way to revert any actions I take. How do I know if these actions are actually needed or do I just trust this plugin’s assessment that they are basically broken and so can be set to false? SOME EXAMPLES: Option: advancedexcerpt_length | Source: Unknown | # Calls: 904564Option: analyst_accounts_data | Source: Unknown | # Calls: 24907Option: analyst_notices | Source: Unknown | # Calls: 24907Option: code_embed_version | Source: Unknown | # Calls: 904564Option: https_migration_required | Source: Unknown | # Calls: 904564 Thanks for your help
2025 年 7 月 31 日
I wonder how on earth a plugin tha promises to optimize the wp_options tables, stores 25MB of data in the option_value !!!! Maybe the guy who developed it does not understand the fundamentals of the internal database optimizers but such a huge deviation, totally ruins MariaDBs/MySQL internal optimizer. You see optimizers work on the assumption that in a table, the fields have somewhat related sizes. For more details please go to MariaDB Jira and check for cases MDEV-34097 and MDEV 32663If you add records with huge sizes (say > 100k) in wp_options table where each option is usually less than 30Bytes, then you have an issue. In our case the issue was caused by the very plugin that we used to monitor our options (that are by and large incorrect). Avoid it at all costs.
2025 年 7 月 10 日 1 則留言
Easily identified what was bloating my options table and allowed to set it to not autoload. Thank you!
2025 年 6 月 13 日 1 則留言
Installed it some times ago, worked well. Since some days generate a huge log saturating my server space disk (millions of lines …). Had to deactivate it.
2025 年 5 月 8 日 3 則留言
As someone else mentioned before the plugin was working nice, but since WP change the things in the new versions, we cannot use it safely anymore. Can you please update to the latest WP version? Thank You 🙂 *edit: Working well with the latest version. Keep up the good work!
閱讀全部 23 則使用者評論

參與者及開發者

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

參與者

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

將〈AAA Option Optimizer〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.5.1

  • Add “select all” checkbox.
  • Fix table filtering by Source column.

1.5.0

  • Prefix the Datatables script slug to avoid conflict with other plugins.
  • Add MainWP to known-plugins list
  • Add SliceWP to known-plugins list
  • Add more known prefixes for WooCommerce options
  • Fixed a bug in bulk-actions

1.4.0

  • Performance improvements.
  • Added bulk-actions to allow optimizing & deleting options in bulk.
  • Added more known plugins.

1.3.2

  • Performance fix: Do not autoload the plugin option.

1.3.1

  • Fix JS error when deleting an option.

1.3

  • Make plugin work with the latest autoload changes.

1.2.1

  • Fix error in known-plugins.json.
  • Prevent fatal error when there’s an error in known-plugins.json.

1.2

Enhancements:

  • Overhaul of the UX, implementing proper tabs, better buttons and more.
  • Added a new “All options” tab, which, when you hit the button, loads all the options from the database and allows you to manage them.
  • Added a “Reset data” button which resets the tracking data.
  • Added a link to the Optimize Options page from the Plugins page.
  • Much improved recognition of core WordPress options, themes and plugins under “Source”, thanks in part to pull requests from Rogier Lankhorst and system4pc.
  • You can now also filter all tables by Source so you can more easily find the options you’re looking for.
  • Many code and speed improvements under the hood, including adding a class autoloader and some i18n fixes.

1.1.1

Implement the missing functionality to create an option with value false when it’s being loaded but doesn’t exist.

1.1

The plugin now recognizes plugins from which the options came (thanks to a great pull by Rogier Lankhorst). If you’re a plugin developer and want your plugin’s options
properly recognized, please do a pull request on this file.

Small enhancements:

  • Column width is now automatically determined which leads to better spacing.
  • Action buttons are now centered in their columns.

Bugs fixed:

  • If you removed autoload from or deleted an option, it’d be removed from the table but would be back when you paginated, that’s fixed – thanks to Jono Alderson for reporting.
  • Fixed sorting by filesize by moving the KB to the table heading, so that you can now properly sort numbers.
  • Fixed issue where an empty option would result in weird size output.

1.0.2

  • Fixed a bug where the buttons wouldn’t work in a paginated state.
  • Show the value of an option in a popover, as suggested with a great pull request by @rogierlankhorst.

1.0.1

Fixed an error with values that are objects, not strings, which also caused sorting not to work for some people.

1.0

Initial release on GitHub and WordPress.org.