Debug Bar Query Count Alert Icon

Debug Bar Query Count Alert

By Matthew Boynes

Active Installs

10+

Last Updated

February 2, 2014

First Released

February 2, 2014

Download History (Last one month)


Replaces the default text in the Debug Bar button (which is “Debug Bar” by default in English) with the page’s query count and total sql time. The button will be red if there were more than 200 queries or they took more than 1 second to run, and orange if the page required more than 100 queries or took more than 0.5 seconds to run.

Requires the Debug Bar plugin and for the constant SAVEQUERIES to be true.

Inspired by the Admin Bar on WordPress.com VIP, which offers similar functionality.

  1. Upload to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Can I alter the color-coded thresholds?

Yes, absolutely. In your theme or plugin, you can set these values as follows:

`

Lower the query count limits to 50 and 100

Debug_Bar_Query_Count_Button()->query_count_limits = array( 50, 100 );

Lower the query time limits to 250ms and 500ms

Debug_Bar_Query_Count_Button()->query_time_limits = array( 0.25, 0.5 );
`

Changelog

0.1

Brand new.

<br />
<b>Warning</b>:  Undefined array key /home/ylinkin/truewp.net/wp-content/plugins/truewp-plugin-info/truewp-plugin-info.php on line 756
" width="120" height="120">

Available Versions

Version Download Type
0.1 Download Stable
Development Download Trunk

Plugin Info

  • Version: 0.1
  • Last Updated: February 2, 2014
  • Active Installs: 10+
  • WordPress Version: 3.1 or higher
  • Tested up to: 3.7.41
  • PHP Version: or higher
  • Tags:    
    debug debug-bar developer mysql performance

Ratings


5.0 out of 5 stars. (2 reviews)

See all reviews
Scroll to Top