Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/simple-debug/simple-debug-plugin.php+64
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.68MB] [CPU: ▼57.09ms] Passed 4 tests
Analyzing server-side resources used by Simple Debug
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.31 ▼1.15 | 7.30 ▼32.96 |
Dashboard /wp-admin | 2.33 ▼0.97 | 7.79 ▼44.03 |
Posts /wp-admin/edit.php | 2.34 ▼1.03 | 8.68 ▼49.21 |
Add New Post /wp-admin/post-new.php | 2.34 ▼3.56 | 9.33 ▼102.16 |
Media Library /wp-admin/upload.php | 2.34 ▼0.90 | 7.58 ▼31.28 |
Simple Debug /wp-admin/options-general.php?page=simple-debug-settings | 2.34 | 7.57 |
Server storage [IO: ▲3.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Simple Debug: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.45 | 1.62 ▼0.09 | 39.74 ▼0.04 |
Dashboard /wp-admin | 2,199 ▲19 | 5.61 ▼0.00 | 89.85 ▼4.05 | 41.79 ▼3.25 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.97 ▼0.11 | 39.15 ▼0.88 | 39.02 ▲1.18 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 22.22 ▼0.87 | 658.69 ▼3.33 | 55.04 ▼3.20 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.17 ▲0.05 | 97.77 ▼5.95 | 44.46 ▼2.14 |
Simple Debug /wp-admin/options-general.php?page=simple-debug-settings | 1,234 | 4.77 | 120.32 | 42.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/simple-debug/simple-debug-plugin.php+64
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simple-debug-settings
- > Notice in wp-content/plugins/simple-debug/simple-debug-plugin.php+80
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=simple-debug-settings
- > Notice in wp-content/plugins/simple-debug/simple-debug-plugin.php+80
Trying to access array offset on value of type null
- > GET request to /wp-admin/options-general.php?page=simple-debug-settings
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
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 take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/simple-debug/simple-debug-log-table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/simple-debug/simple-debug-log-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-debug/simple-debug-loader.php:15
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-debug/simple-debug-log-table.php on line 4
- > PHP Warning
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 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (This website is badly in need of optimization, one function call takes almost 10 seconds!), #2 (After using the plugin to locate the slow function, our developers have resolved the issue, now the site loads in under one second!), #3 (Plugin settings screen), #4 (Example output for the display error log function), #5 (Example output for the display PHP.ini variables function), #6 (Example output for the optimize DB function), #7 (Example output for the display MySQL DB performance variables function.)
- Tags: There are too many tags (11 tag instead of maximum 10)
simple-debug/simple-debug-loader.php 92% from 13 tests
The principal PHP file in "Simple Debug" v. 1.5 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-debug.php" instead of "simple-debug-loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,157 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 808 | 242 | 1,157 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 23.80 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 54 | 80.60% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 19.40% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG images were found in this plugin