Debug Bar Constants
by Juliette Reinders Folmer 5 (1 reviews)

Debug Bar Constants

Debug Bar Constants adds three new panels to the Debug Bar that display the defined WP and PHP constants for the current request.

Debug Bar Constants ranks #27,086 among WordPress.org plugins with 20+ active installations, is #2,029 of 5,310 in the Utilities & Tools category, a 5/5 rating from 1 reviews, and was last updated Jan 22, 2018. Data from WordPress.org, refreshed twice daily — see methodology.

Tested up to WP 4.9 (Current: 7.1.4)
v2.0.0 Current Version v2.0.0
Updated 8 years ago Last Update on 22 Jan, 2018
Refreshed 1 week ago Last Refreshed on
#2,029 of 5,310 in Utilities & Tools Top 50% by installs No update in over a year
View on WordPress.org
Rank
#27,086
— No change
Active Installs
20+
-20%
KW Avg Position
62.5
0.5 worse
Downloads
53.6K
+1 today
Support Resolved
0%
— No change
Rating
100%
Review 5 out of 5
5 (1 reviews)

Next Milestone 30

Total Progress 80%
20+ 30+
4,341
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 2 more installs to reach 30+

Rank Changes

25,732 26,409 27,086 27,763 28,440 31-10-2026 01-11-2026 02-11-2026 03-11-2026 04-11-2026 05-11-2026 06-11-2026 07-11-2026
26,193 26,502 26,812 27,121 27,430 23-10-2026 24-10-2026 25-10-2026 26-10-2026 27-10-2026 28-10-2026 29-10-2026 30-10-2026 31-10-2026 01-11-2026 02-11-2026 03-11-2026 04-11-2026 05-11-2026 06-11-2026 07-11-2026
Current #27,086
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 10 31-10-2026 01-11-2026 02-11-2026 03-11-2026 04-11-2026 05-11-2026 06-11-2026 07-11-2026
0 10 23-10-2026 24-10-2026 25-10-2026 26-10-2026 27-10-2026 28-10-2026 29-10-2026 30-10-2026 31-10-2026 01-11-2026 02-11-2026 03-11-2026 04-11-2026 05-11-2026 06-11-2026 07-11-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

5.0
1 reviews
Overall 100%
5
1 (100%)
4
0 (0%)
3
0 (0%)
2
0 (0%)
1
0 (0%)

Frequently Asked Questions

Common questions about Debug Bar Constants

PLEASE DON'T! Amongst the defined constants are your database credentials, so you really do not want to do this. This plugin is only meant to be used for development purposes.
From PHP.net: A constant is an identifier (name) for a simple value. As the name suggests, that value cannot change during the execution of the script. A constant is case-sensitive by default. By convention, constant identifiers are always uppercase. Like super globals, the scope of a constant is global. You can access constants anywhere in your script without regard to scope. For more information on scope, read the manual section on variable scope.
Congratulations! Sounds like you're practicing lean programming (or something is going wrong... ;-) ). The constants you see are the ones available in the current request. If you define constants in a conditionally included file - for instance you only include the file when on a certain page -, these constants will not be available if the conditions have not been met.
See the previous question.
From PHP.net: It is possible to define constant values on a per-class basis remaining the same and unchangeable. Constants differ from normal variables in that you don't use the $ symbol to declare or use them. The value must be a constant expression, not (for example) a variable, a property, a result of a mathematical operation, or a function call.
It's good coding practice to avoid littering the global namespace with your own variables and constants. This is a good way to avoid this.
If your plugin/theme interacts with other plugins and/or themes, you may want to use their constants. Example: A plugin might have their version number saved as a class constant (good practice!). On your part, your plugin may have been set up to only work if the related plugin has been upgraded to version x. In that case, you may want to check other plugins version number before your plugin interacts with it.
if( defined( 'class_name::constant_name' ) ) { // Your code here }
Depending on how lean you've programmed your plugin/theme, your class may not be included (and therefore not be declared) for the page you are viewing. The name of your class may be the same as the name of one of the native/extension PHP classes. PHP is normally configured with a limited number of Extensions. A large number of the available extensions declare classes when they are loaded and the WP Class Constants list is filtered for these classes. It's good practice not to use the names of those PHP native/extension classes for your own classes. Try renaming your class. If that doesn't work, please let me know and I'll have a look at it.
Easy: It's bad practise to name your class the same as one of the PHP native/extension classes. In general, when you're developing a plugin/theme, you are developing for an unknown group of other people with unknown server configurations - including which extensions are(n't) installed -, so you should always make sure that your class will not interfere with any of the PHP native/extension classes.

Sign In / Register

You need to sign in or register to use this feature.