Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/debug-bar-localization/debug-bar-localization.php+61
Undefined variable: wp_version
Server metrics [RAM: ▼0.00MB] [CPU: ▼151.87ms] Passed 4 tests
This is a short check of server-side resources used by Debug Bar Localization
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 33.21 ▲10.52 |
Dashboard /wp-admin | 3.06 ▲0.00 | 50.26 ▲1.88 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 49.44 ▼0.98 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 93.96 ▼606.02 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 35.87 ▼2.35 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Debug Bar Localization
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.82 ▲0.24 | 9.25 ▼0.81 | 51.25 ▲2.25 |
Dashboard /wp-admin | 2,967 ▲33 | 6.09 ▲0.13 | 147.84 ▼2.08 | 118.38 ▼3.57 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.00 | 72.24 ▼1.99 | 99.13 ▲3.17 |
Add New Post /wp-admin/post-new.php | 1,498 ▼2 | 18.89 ▲0.16 | 374.43 ▼33.76 | 118.20 ▼8.29 |
Media Library /wp-admin/upload.php | 1,804 ▼3 | 5.00 ▼0.01 | 164.59 ▲6.60 | 123.48 ▼5.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #2, #3 in debug-bar-localization/assets to your readme.txt
debug-bar-localization/debug-bar-localization.php 92% from 13 tests
"Debug Bar Localization" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin816 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 185 | 426 | 571 |
PO File | 1 | 40 | 43 | 130 |
CSS | 2 | 17 | 2 | 115 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 18.75 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 62.16% |
▷ Protected methods | 11 | 29.73% |
▷ Private methods | 3 | 8.11% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/badge-circle-cross-16.png | 0.74KB | 0.83KB | 0.00% |
images/search-16.png | 0.57KB | 0.67KB | 0.00% |