Title: Debug Bar Query Count Alert
Author: Matthew Boynes
Published: <strong>Февраль 2, 2014</strong>
Last modified: Февраль 2, 2014

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/debug-bar-query-count-alert.svg)

# Debug Bar Query Count Alert

 By [Matthew Boynes](https://profiles.wordpress.org/mboynes/)

[Download](https://downloads.wordpress.org/plugin/debug-bar-query-count-alert.0.1.zip)

 * [Details](https://os.wordpress.org/plugins/debug-bar-query-count-alert/#description)
 * [Reviews](https://os.wordpress.org/plugins/debug-bar-query-count-alert/#reviews)
 *  [Installation](https://os.wordpress.org/plugins/debug-bar-query-count-alert/#installation)
 * [Development](https://os.wordpress.org/plugins/debug-bar-query-count-alert/#developers)

 [Support](https://wordpress.org/support/plugin/debug-bar-query-count-alert/)

## Description

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](https://wordpress.org/plugins/debug-bar-console/)
and for the constant `SAVEQUERIES` to be true.

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

## Screenshots

 * [[
 * This is the normal state.
 * [[
 * This is the notice state.
 * [[
 * This is the warning state.

## Installation

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

## FAQ

  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 );
 `

## Reviews

![](https://secure.gravatar.com/avatar/d5b5a5df8b4349f5099d481e4dc9d2f09fb038135614b022d58e4d1535e81479?
s=60&d=retro&r=g)

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-4426/)󠁿

 [shaeirving1](https://profiles.wordpress.org/shaeirving1/) Февраль 8, 2017

Excellent plugin, has helped our business in many ways

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/)

## Contributors & Developers

“Debug Bar Query Count Alert” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ Matthew Boynes ](https://profiles.wordpress.org/mboynes/)
 *   [ Alley ](https://profiles.wordpress.org/alleyinteractive/)

[Translate “Debug Bar Query Count Alert” into your language.](https://translate.wordpress.org/projects/wp-plugins/debug-bar-query-count-alert)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/debug-bar-query-count-alert/),
check out the [SVN repository](https://plugins.svn.wordpress.org/debug-bar-query-count-alert/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/debug-bar-query-count-alert/)
by [RSS](https://plugins.trac.wordpress.org/log/debug-bar-query-count-alert/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.1

Brand new.

## Meta

 *  Version **0.1**
 *  Last updated **12 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.1 or higher **
 *  Tested up to **3.7.41**
 *  Language
 * [English (US)](https://wordpress.org/plugins/debug-bar-query-count-alert/)
 * Tags
 * [debug](https://os.wordpress.org/plugins/tags/debug/)[debug bar](https://os.wordpress.org/plugins/tags/debug-bar/)
   [developer](https://os.wordpress.org/plugins/tags/developer/)[mysql](https://os.wordpress.org/plugins/tags/mysql/)
   [performance](https://os.wordpress.org/plugins/tags/performance/)
 *  [Advanced View](https://os.wordpress.org/plugins/debug-bar-query-count-alert/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/)

## Contributors

 *   [ Matthew Boynes ](https://profiles.wordpress.org/mboynes/)
 *   [ Alley ](https://profiles.wordpress.org/alleyinteractive/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/debug-bar-query-count-alert/)