Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.39ms] Passed 4 tests
Analyzing server-side resources used by debugWP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.77 ▼1.77 |
Dashboard /wp-admin | 3.32 ▼0.03 | 43.11 ▼17.27 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.85 ▼0.88 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 78.98 ▼9.61 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.71 ▼0.92 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for debugWP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,063 ▲302 | 13.42 ▼1.13 | 8.59 ▲6.89 | 42.07 ▲1.84 |
Dashboard /wp-admin | 2,192 ▲18 | 5.62 ▲0.09 | 81.94 ▼1.72 | 38.34 ▼3.83 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.01 | 32.64 ▼3.05 | 32.23 ▼5.15 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.23 ▲4.84 | 672.14 ▲32.14 | 61.70 ▼1.75 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.16 ▼0.08 | 94.04 ▼10.74 | 44.28 ▼0.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function timer_stop() in wp-content/plugins/debugwp/debug_bar/debug_bar.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debugwp/debugWP.php:20
- > PHP Notice
Trying to get property 'num_queries' of non-object in wp-content/plugins/debugwp/debug_bar/debug_bar.php on line 19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== debugwp ===
)
debugwp/debugWP.php 92% from 13 tests
Analyzing the main PHP file in "debugWP" version 0.1.0
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("debugwp.php" instead of "debugWP.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin178 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 48 | 16 | 139 |
CSS | 1 | 5 | 0 | 33 |
JavaScript | 1 | 1 | 3 | 5 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
debug_bar/images/admin-bar-sprite.png | 3.91KB | 2.56KB | ▼ 34.43% |