MITS Profiler

توسط

MITS Profiler adds a diagnostic bar to any page by appending ?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:

  • Timeline — absolute and relative timing between WordPress lifecycle hooks (plugins_loaded init wp_head wp_footer)
  • Hooks — top 50 slowest action/filter hooks with total time and call count
  • Options — most-queried WordPress options + full autoload audit with sizes
  • Plugins — loaded PHP file sizes per plugin (proxy for load time)
  • Assets — all enqueued scripts and styles, external ones highlighted
  • HTTP — outgoing wp_remote_* requests with response time and status
  • SQL — all database queries with slow-query highlighting (requires SAVEQUERIES)
  • PHP — PHP version, OPcache status and hit rate, memory and execution limits

Key features:

  • Zero HTTP loopback — works behind Cloudflare, reverse proxies and strict firewall rules
  • No external dependencies or requests
  • Admin-only: the panel and all data are never shown to guests
  • Export to JSON or CSV for offline analysis
  • Works on front-end pages, WooCommerce pages, and WP Admin

SQL query logging requires adding the following to wp-config.php:

define('SAVEQUERIES', true);
  1. Upload the mits-profiler folder to /wp-content/plugins/
  2. Activate the plugin in Plugins Installed Plugins
  3. Go to MITS Profiler in the admin menu to open the control panel
  4. Click Profiluj w nowej karcie or manually append ?mits_prof=1 to any URL

سوالات متداول

Does this plugin slow down my site for visitors?

No. 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.

Does it work behind Cloudflare?

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.

How do I see database queries?

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.

The panel does not appear

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).

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
بازخورد (Feedback) های اینلاین
مشاهده همه دیدگاه ها
هیچ نسخه‌ای برای این آیتم موجود نیست.
بدون امتیاز

قیمت:

رایگان

نگارش

آخرین انتشار

21 خرداد 1405

آخرین بروزرسانی

1 هفته پیش

نصب های فعال

-

نگارش وردپرس

وردپرس 6.0+

تست شده از نسخه

وردپرس 7.0

نگارش PHP

PHP 8.0+

نسخه ها

0 نسخه