[WordPress] 外掛分享: What’s running

首頁外掛目錄 › What's running
全新外掛
安裝啟用
★★★★★
5/5 分(2 則評價)
3884 天前
最後更新
問題解決
WordPress 3.5+ v1.9.1 上架:2014-03-19

內容簡介

僅用於開發!
現在支援OPcache內存消耗

這個外掛會在正常的WordPress HTML輸出後,HTML標籤關閉後,輸出帶有彩色標記的文件名稱、記憶體消耗或檔案大小。這樣會產生無效的HTML,但卻讓你能夠瞭解哪些外掛和目前使用的佈景主題已被載入。

正在運行的內容列出PHP引擎解析和執行的所有檔案。這可以用於外掛或佈景主題重構。

現在您可以突顯自己的外掛和佈景主題

在wp-config.php中提供路徑的一部分:

define('WHATS_RUNNING_HIGHLIGHT', 'wp-content/plugins/my-plugin');
顏色代碼

您的程式碼會以黃色背景顯示
外掛檔案顯示為藍色
佈景主題檔案顯示為橘色
wp-includes目錄中的檔案顯示為綠色
wp-admin目錄中的檔案顯示為灰色
所有其他檔案顯示為紅色
文件名稱後的紫色條代表檔案尺寸(0.5 kB/像素)
文件名稱後的深紫色條代表OPcache使用內存(1 kB/像素)

連結

您可以點擊WP core bug#28364 ,以獲得有關WordPress入口點的更多信息。

您可以在這裡找到有關何謂高效的WordPress外掛程式碼的一些文件:https://github.com/szepeviktor/WPHW。

本外掛的開發在GitHub上繼續進行。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.9.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「What's running」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Only for development!
Now with OPcache memory consumption support
This plugin dumps the colorized filenames and memory consumptions or file sizes after the normal WordPress HTML output, after the closing html tag. This generates invalid HTML but gives you an overview of loaded plugins and the current theme.
What’s running lists all files parsed and executed by the PHP engine. It can be used for plugin or theme refactoring.
Now you can highlight your own plugin and theme
Provide a part of its path in wp-config.php:
define( 'WHATS_RUNNING_HIGHLIGHT', 'wp-content/plugins/my-plugin' );
Color codes

your code is highlighted with YELLOW background
plugin files are in BLUE
themes files are in ORANGE
files in the wp-includes directory are in GREEN
files in the wp-admin directory are in GREY
all other files are in RED
VIOLET bar after the filename represents the file size ( 0.5 kB/px )
DARK MAGENTA bar after the filename represents the OPcache memory consumption ( 1 kB/px )

Links
You can watch WP core bug #28364 to get more information about WordPress entry points.
You can find some documentaion here what makes a WordPress plugin efficient: https://github.com/szepeviktor/WPHW
Development of this plugin goes on on GitHub.

延伸相關外掛

文章
Filter
Mastodon