| 开发者 | wpaluchmits |
|---|---|
| 更新时间 | 2026年6月16日 20:26 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
?mits_prof=1 to the URL. It captures timing data from the moment PHP starts and presents it in a dark-themed panel at the bottom of the page — visible only to logged-in administrators.
Tabs included:
wp-config.php:
define('SAVEQUERIES', true);
mits-profiler folder to /wp-content/plugins/?mits_prof=1 to any URLNo. The profiler only activates when ?mits_prof=1 is present in the URL, and even then it only renders its output for logged-in administrators. Regular visitors are completely unaffected.
Yes. Unlike profilers that rely on HTTP loopback requests (which Cloudflare blocks), MITS Profiler measures time inline within the same PHP process — no outgoing requests needed.
Add define('SAVEQUERIES', true); to your wp-config.php before the line /* That's all, stop editing! */. Remember to remove it when done, as it adds overhead on every page load.
Make sure you are logged in as an administrator and that the URL contains ?mits_prof=1 (or &mits_prof=1 if the URL already has a query string).