该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Debug Bar Slow Actions

描述

This plugin lists the top 100 slowest actions and filters during a page request in WordPress. It helps you figure out performance bottlenecks in themes and plugins.

Requires Debug Bar.

Current limitations:

  • Does not time nested actions and filters due to a core bug
  • Does not time actions and filters before plugins_loaded or muplugins_loaded if placed in mu-plugins
  • Does not time actions and callbacks after wp_footer at priority 1000

屏幕截图

  • Screenshot

评价

2022年2月22日
This plugin is essential for plugin development! It also works with the Query Monitor plugin.
2021年8月14日
It was THE tool that finally helped me to spot the function (action) that made the pageload slow. I failed to do the same with Query Monitor, Debug This, F12, P3..and other plugins. I don't know many other plugins that can do exactly this. Probably New Relic? But that has a complicated and deeper-level install process. Plus not open source.. So, thank you.. and please keep taking care of this and maintain sometimes. A useful treasure for humankind! 😉 Best wishes, Wiktor
2016年9月3日
This is the perfect add-on for the "Debug Bar" plugin. It helped me to discover why my admin pages were taking 10.5 seconds to load. The plugin showed me that the action "admin_menu" was taking 10.5 seconds to be executed. Investigating all occurences of the string "admin_menu" in my theme code, I found an external request to a web site which is not on-line anymore and, cancelling it, my pages now load in 1.5 seconds.
阅读所有14条评价

贡献者及开发者

“Debug Bar Slow Actions” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Debug Bar Slow Actions”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.8.4

  • Fix typo in count() usage, props @josephscott

0.8.3

  • Fix undefined variable notice

0.8.2

  • Fix a couple warnings/notices

0.8.1

  • Add support for closure/anonymous functions
  • Show all callbacks hooked to each priority
  • Fix minor styles

0.8

  • Code cleanup
  • Use wp_footer for output instead of output buffering
  • Show callbacks hooked to each action

0.7

  • First version