Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-dbug/class-dbug.php+51
Methods with the same name as their class will not be constructors in a future version of PHP; dBug has a deprecated constructor
Server metrics [RAM: ▼1.82MB] [CPU: ▼59.57ms] Passed 4 tests
A check of server-side resources used by wp-dBug
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 5.65 ▼37.65 |
Dashboard /wp-admin | 2.20 ▼1.15 | 7.42 ▼66.99 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 6.02 ▼48.87 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.69 | 6.43 ▼84.77 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 6.24 ▼31.52 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
wp-dBug: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.35 ▲0.17 | 1.65 ▼0.03 | 43.46 ▼0.46 |
Dashboard /wp-admin | 2,195 ▲18 | 5.48 ▼0.19 | 82.83 ▼9.20 | 41.30 ▲1.77 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.01 | 40.45 ▲3.34 | 35.48 ▼1.92 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.29 ▲0.02 | 636.59 ▲9.24 | 50.84 ▲1.07 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.18 ▼0.06 | 101.36 ▼3.33 | 44.38 ▲0.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-dbug/class-dbug.php+51
Methods with the same name as their class will not be constructors in a future version of PHP; dBug has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Debug_Bar_Panel' not found in wp-content/plugins/wp-dbug/class-wp-dbug-debug-bar-panel.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-dbug/class-wp-dbug.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: debug, debugger, dbug, var_dump
wp-dbug/wp-dbug.php Passed 13 tests
"wp-dBug" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
103 characters long description:
Plugin implements the awesome dBug class created by Kwaku Otchere for use in WordPress plugin debugging
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
Good job! No executable or dangerous file extensions detected490 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 96 | 131 | 468 |
Markdown | 1 | 10 | 0 | 22 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
PNG images were not found in this plugin