Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼145.26ms] Passed 4 tests
Server-side resources used by Debug Bar Constants
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.00 | 35.73 ▲0.50 |
Dashboard /wp-admin | 3.06 ▲0.00 | 53.27 ▲14.21 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 46.39 ▲3.93 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 94.01 ▼571.14 |
Media Library /wp-admin/upload.php | 3.00 ▼0.01 | 25.66 ▼14.32 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Debug Bar Constants: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲131 | 15.90 ▲0.23 | 12.40 ▲1.02 | 44.60 ▼6.69 |
Dashboard /wp-admin | 2,973 ▲39 | 5.93 ▲0.01 | 170.85 ▲20.23 | 118.83 ▲9.21 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▲0.00 | 71.06 ▲1.77 | 91.76 ▲3.66 |
Add New Post /wp-admin/post-new.php | 3,636 ▲1,953 | 15.01 ▼3.74 | 479.13 ▲72.33 | 110.67 ▼2.08 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.04 ▲0.02 | 156.80 ▲7.86 | 112.13 ▼10.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #2, #3 in debug-bar-constants/assets to your readme.txt
debug-bar-constants/debug-bar-constants.php 92% from 13 tests
The main file in "Debug Bar Constants" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,615 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 362 | 723 | 1,323 |
PO File | 2 | 48 | 80 | 122 |
CSS | 2 | 12 | 8 | 113 |
JavaScript | 2 | 5 | 15 | 52 |
Markdown | 1 | 2 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 16.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 24 | 63.16% |
▷ Public methods | 25 | 65.79% |
▷ Protected methods | 1 | 2.63% |
▷ Private methods | 12 | 31.58% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui.totop.png | 51.59KB | 1.82KB | ▼ 96.47% |