plugin-icon

Plugin Check (PCP)

作者 WordPress.org·
Plugin Check 是提供協助外掛符合外掛目錄需求及遵守多種最佳做法的 WordPress.org 檢查工具。
評價
4.4
版本
2.0.0
活躍安裝總數
9K
最近更新:
May 29, 2026
Plugin Check (PCP)

Plugin Check 是測試你所開發的外掛是否符合 WordPress.org 外掛目錄需求標準的工具。使用這個外掛,你便能執行大多數用於全新提交外掛的檢查工作,並檢查你所開發的外掛是否符合相關需求。

此外,這個工具會依據開發最佳做法標示違規或發生問題的項目,例如國際化函式的正確使用方式及無障礙工具、效能及安全性最佳做法等基本需求都會進行檢查。

這些項目可使用 WordPress 管理後台使用者介面或 WP-CLI 進行檢查:

  • 如果要在 WordPress 管理後台檢查外掛,請前往 [工具]→[Plugin Check] 選單,必須具備在網站上管理外掛的權限,才能存取這個畫面。
  • 如果要使用 WP-CLI 檢查外掛,請使用 wp plugin check 命令。舉例來說,執行 wp plugin check hello.php 便能檢查 Hello Dolly 外掛。
    • 請注意,在預設的狀況下使用 WP-CLI,僅能執行靜態檢查;為了同時納入執行階段檢查,目前的因應措施必須使用 WP-CLI 的 --require 引數,以便在載入 WordPress 前手動載入外掛檢查目錄中的 cli.php 檔案。命令範例:wp plugin check hello.php --require=./wp-content/plugins/plugin-check/cli.php
    • 你可以使用任意路徑或網址以檢查外掛。舉例來說,使用網址檢查外掛:wp plugin check https://example.com/plugin.zip 或使用路徑檢查外掛:wp plugin check /path/to/plugin

檢查項目區分為幾個類型,使用者可以依據需求為外掛自訂要進行檢查的類型。

請注意,這個外掛不會取代人工審閱流程,但可以協助開發者加快在 WordPress.org 外掛目錄核准上架的流程,並協助開發者避免某些常見錯誤。

即使並沒有要將外掛交由 WordPress.org 外掛目錄代管,一樣推薦開發者使用 Plugin Check,以便讓外掛掛遵循 WordPress 外掛的基本要求及最佳做法。

外掛命名工具

Plugin Check 加入以 AI 人工智慧為導向的外掛命名工具 (請前往 [工具]→[Plugin Check 命名工具]),這個工具可以協助開發者在提交外掛前評估外掛名稱,並檢查以下項目:

  • 名稱是否與 WordPress.org 外掛目錄中現有的外掛相似
  • 與知名品牌的潛在商標衝突
  • 是否遵守 WordPress 外掛的命名規範
  • 過於普通或過度廣泛的命名問題

The Plugin Namer provides instant feedback with actionable suggestions, helping you choose a clear, unique, and policy-compliant name that stands out in the plugin directory. This feature requires WordPress 7.0+ and configured AI connectors.

注意事項:外掛命名工具僅提供參考指引,外掛的建議並不代表審閱最終結果。全部外掛名稱均需經由 WordPress.org 外掛團隊的審閱者做出最後審閱及核准。

Checks reviewed by AI

When AI analysis is enabled, Plugin Check can review selected results to help identify likely false positives. Related issues are grouped and analyzed with prompts tailored to the type of check, using the surrounding code as context. The AI review does not remove or change the original results, but adds an additional summary that highlights which findings may need human review before taking action.

目前已測試版本
WordPress 7.0
此外掛程式已可供下載,並可用於你 系統。