Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼1.25ms] Passed 4 tests
A check of server-side resources used by DoDebug
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 39.37 ▼0.73 |
Dashboard /wp-admin | 3.55 ▲0.25 | 54.37 ▲5.66 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 46.61 ▲2.95 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 83.67 ▼11.34 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 38.52 ▲4.11 |
DoDebug /wp-admin/options-general.php?page=dodebug | 3.49 | 36.21 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please try to fix the following items
- The plugin illegally modified 1 file (9.47KB) outside of "wp-content/plugins/dodebug/" and "wp-content/uploads/"
- (new file) wp-content/debug.log
Filesystem: 19 new files
Database: no new tables, 17 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
dodebug.log_size |
dodebug.filter_exc |
dodebug.debug |
dodebug.admin_ip |
dodebug.adv |
dodebug.log_filter |
theysaidso_admin_options |
db_upgraded |
... |
Browser metrics Passed 4 tests
DoDebug: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.34 ▲0.06 | 2.05 ▲0.48 | 44.03 ▲2.61 |
Dashboard /wp-admin | 2,202 ▲24 | 5.63 ▼0.02 | 85.20 ▼18.94 | 39.24 ▼2.69 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.07 | 35.26 ▼2.31 | 34.51 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,531 ▼6 | 23.05 ▲4.66 | 668.57 ▲10.74 | 58.37 ▼15.00 |
Media Library /wp-admin/upload.php | 1,407 ▲13 | 4.17 ▲0.01 | 95.52 ▼4.66 | 43.32 ▲2.75 |
DoDebug /wp-admin/options-general.php?page=dodebug | 1,048 | 1.99 | 23.71 | 36.88 |
Uninstaller [IO: ▲0.20MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attentionZombie WordPress options were found after uninstall: 18 options
- This plugin cannot be uninstalled
- > Error in wp-content/plugins/dodebug/src/util.cls.php+243
Uncaught Error: Call to undefined method dodebug\Util::version_check() in wp-content/plugins/dodebug/src/util.cls.php:243
Stack trace:
#0 wp-includes/class-wp-hook.php(310): dodebug\Util::uninstall()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(1269): do_action()
#4 wp-admin/includes/plugin.php(960): uninstall_plugin() - The plugin did not uninstall correctly, leaving 19 files (0.20MB) in the plugin directory
- (new file) dodebug.php
- (new file) src/f.cls.php
- (new file) src/admin.cls.php
- (new file) src/data.cls.php
- (new file) lib/php-compatibility.func.php
- (new file) readme.txt
- (new file) src/conf.cls.php
- (new file) src/core.cls.php
- (new file) lang/dodebug.pot
- (new file) autoload.php
- ...
- db_upgraded
- dodebug.log_cookie
- dodebug._ver
- dodebug.filter_partial_exc
- dodebug.adv
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- dodebug.admin_ip
- dodebug.filter_exc
- ...
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
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Screenshot #1 (Plugin Settings) image not found
dodebug/dodebug.php Passed 13 tests
"DoDebug" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
46 characters long description:
Just a debug tool for theme/plugin developers.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,723 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 324 | 522 | 1,723 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 22.17 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 4.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 50 | 65.79% |
▷ Public methods | 61 | 80.26% |
▷ Protected methods | 4 | 5.26% |
▷ Private methods | 11 | 14.47% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 28 | |
▷ Global constants | 21 | 75.00% |
▷ Class constants | 7 | 25.00% |
▷ Public constants | 7 | 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.14MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wp_assets/screenshot-1.png | 139.11KB | 40.10KB | ▼ 71.17% |