Title: Debug Bar Query Count Alert
Author: Matthew Boynes
Published: <strong>2 februari 2014</strong>
Last modified: 2 februari 2014

---

Sök tillägg

Det här tillägget **har inte testats med någon av de 3 senaste huvudversionerna 
av WordPress**. Det kanske inte längre underhålls och kan ha kompatibilitetsproblem
när det används tillsammans med nyare versioner av WordPress.

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

# Debug Bar Query Count Alert

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

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

 * [Detaljer](https://sv.wordpress.org/plugins/debug-bar-query-count-alert/#description)
 * [Recensioner](https://sv.wordpress.org/plugins/debug-bar-query-count-alert/#reviews)
 *  [Installation](https://sv.wordpress.org/plugins/debug-bar-query-count-alert/#installation)
 * [Utveckling](https://sv.wordpress.org/plugins/debug-bar-query-count-alert/#developers)

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

## Beskrivning

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.

## Skärmdumpar

[⌊This is the normal state.⌉⌊This is the normal state.⌉[

This is the normal state.

[⌊This is the notice state.⌉⌊This is the notice state.⌉[

This is the notice state.

[⌊This is the warning state.⌉⌊This is the warning 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

## Vanliga frågor

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

## Recensioner

![](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 februari 2017

Excellent plugin, has helped our business in many ways

 [ Läs alla 2 betyg ](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/)

## Bidragsgivare och utvecklare

”Debug Bar Query Count Alert” är programvara med öppen källkod. Följande personer
har bidragit till detta tillägg.

Bidragande personer

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

[Översätt ”Debug Bar Query Count Alert” till ditt språk.](https://translate.wordpress.org/projects/wp-plugins/debug-bar-query-count-alert)

### Intresserad av programutveckling?

[Läs programkoden](https://plugins.trac.wordpress.org/browser/debug-bar-query-count-alert/),
kika på [SVN-filförvaret](https://plugins.svn.wordpress.org/debug-bar-query-count-alert/)
eller prenumerera på [utvecklarloggen](https://plugins.trac.wordpress.org/log/debug-bar-query-count-alert/)
via [RSS](https://plugins.trac.wordpress.org/log/debug-bar-query-count-alert/?limit=100&mode=stop_on_copy&format=rss).

## Ändringslogg

#### 0.1

Brand new.

## Meta

 *  Version **0.1**
 *  Senast uppdaterat **13 år sedan**
 *  Aktiva installationer **10+**
 *  WordPress-version ** 3.1 eller senare **
 *  Testat upp till **3.7.41**
 *  Språk
 * [English (US)](https://wordpress.org/plugins/debug-bar-query-count-alert/)
 * Etiketter
 * [debug](https://sv.wordpress.org/plugins/tags/debug/)[debug bar](https://sv.wordpress.org/plugins/tags/debug-bar/)
   [developer](https://sv.wordpress.org/plugins/tags/developer/)[mysql](https://sv.wordpress.org/plugins/tags/mysql/)
   [performance](https://sv.wordpress.org/plugins/tags/performance/)
 *  [Avancerad vy](https://sv.wordpress.org/plugins/debug-bar-query-count-alert/advanced/)

## Betyg

 5 av 5 stjärnor.

 *  [  2 5-stjärniga recensioner     ](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/?filter=5)
 *  [  0 4-stjärniga recensioner     ](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/?filter=4)
 *  [  0 3-stjärniga recensioner     ](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/?filter=3)
 *  [  0 2-stjärniga recensioner     ](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/?filter=2)
 *  [  0 1-stjärniga recensioner     ](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)

[Visa alla recensioner](https://wordpress.org/support/plugin/debug-bar-query-count-alert/reviews/)

## Bidragande personer

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

## Support

Har du något att säga? Behöver du hjälp?

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