外觀
WP-CLI 診斷
來源:WP-CLI 診斷
摘要結論
- wp doctor 偵測到 2 項錯誤條目(status=error)
共 1 項 / 1 中
WP Doctor 錯誤項
- 問題:wp doctor 偵測到 2 項錯誤條目(status=error)
- 原因:WordPress 核心、外掛、cron 或檔案系統存在 doctor 已標記的異常
- 建議:diagnostics 頁逐項檢視 doctor 結果,依 name + message 提示處理(核心更新、外掛清理、cron 整理等)
- 影響:此項影響等級:中
- 驗收:wp doctor 全部條目 status=success
待處理項目
error 2 項
| 檢查 | 說明 |
|---|---|
core-update | Updating to WordPress' newest minor version is strongly recommended. |
cron-count | Total number of cron jobs exceeds expected threshold. |
warning 2 項
| 檢查 | 說明 |
|---|---|
plugin-update | 26 plugins have updates available. |
php-in-upload | PHP files detected in the Uploads folder. |
載入瓶頸
主要慢的是 bootstrap 階段(3022ms / 253 queries)。
bootstrap慢 → 多為 plugin/theme 過多或重型外掛 init 連鎖main_query慢 → DB 索引或查詢條件問題template慢 → 主題 PHP 邏輯或 sub-query 過多
詳見WP-CLI 診斷頁的「最慢的 Callback」表格定位具體 hook。
