[WordPress] 外掛分享: Ultimate DebugBar

首頁外掛目錄 › Ultimate DebugBar
10+
安裝啟用
★★★★★
5/5 分(3 則評價)
1598 天前
最後更新
問題解決
WordPress 4.5+ PHP 7.1+ v0.2 上架:2019-06-20

內容簡介

這是一個專為 WordPress 網站設計的萬能偵錯條。當您的網站每頁打開時,您可以看到以下訊息:

PHP 版本
請求執行時間
請求記憶體消耗
已定義在 wp-config.php 檔案中的與 WordPress 相關的 PHP 常數
所有網站選項 (wp_options)
請求資料
時間軸 (瀑布) 顯示哪裡執行時間太長了
列出網頁上所有觸發時間超過 1 毫秒的鈎子並有一些統計數據
列出網頁上執行的所有資料庫查詢,以及它們的來源和執行時間
顯示 debug.log 檔案的最後 100 行 (如果它存在於 wp-content 中)
列出加載的 PHP 檔案 (分類)

此外,它還可以追蹤 AJAX 呼叫中的請求資料、鉤子、資料庫查詢和記憶體消耗 (測試版)。

此外,此外插件只建議在開發和/或偵錯時使用。除非 WP_DEBUG 設為 true,否則僅系統管理員和網路管理員 (在多站點環境中) 可以看到偵錯列。在這種情況下,每個人都將看到偵錯列。

。試試看在 tastewp.com!

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Ultimate DebugBar」→ 直接安裝(推薦)

原文外掛簡介

Ultimate debug bar for your WordPress website. On each page of your website a neat debug bar will be displayed with the following info:

PHP version
Request execution time
Request memory consumption
WordPress-related PHP constants defined in your wp-config.php file
All website options (wp_options)
Request data
Timeline (waterfall) where you can see which portion of execution takes too much time
List of all hooks triggered on the page whose execution time exceeds 1ms, along with some stats
List of all database queries performed on the page, along with their source and execution time
Last 100 lines of your debug.log file (if it exists in wp-content)
List of loaded PHP files (categorized)

Besides that, it will track request data/hooks/db queries/mem. consumption in AJAX calls too (beta).
This plugin is meant to be used during development and/or debugging only. Only administrators and network administrators (in multi-site environment) can see the debugbar, unless the WP_DEBUG is set to true. In that case, everyone will see the debugbar.
Try it instantly on tastewp.com!

延伸相關外掛

文章
Filter
Apply Filters
Mastodon