Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼6.96ms] Passed 4 tests
This is a short check of server-side resources used by Debug Bar - Enable WP_DEBUG from admin dashboard
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.43 | 44.75 ▲3.40 |
Dashboard /wp-admin | 3.71 ▲0.36 | 53.50 ▼12.86 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 49.35 ▼5.34 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.47 | 90.50 ▼10.86 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 39.62 ▲1.21 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- Illegal file modification found: 1 file (4.66KB) outside of "wp-content/plugins/enable-wp-debug-from-admin-dashboard/" and "wp-content/uploads/"
- (modified) wp-config.php
Filesystem: 6 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_enable_wp_debug_from_admin_dashboard__errors_log |
New WordPress options |
---|
widget_recent-posts |
enable-wp-debug-from-admin-dashboard |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
EWDFD_1_8_update_issue |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Debug Bar - Enable WP_DEBUG from admin dashboard
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲33 | 14.41 ▲0.04 | 1.76 ▼0.37 | 44.31 ▲0.23 |
Dashboard /wp-admin | 2,213 ▲33 | 5.54 ▼0.00 | 85.40 ▼5.79 | 43.38 ▼1.77 |
Posts /wp-admin/edit.php | 2,115 ▲12 | 2.00 ▼0.15 | 35.83 ▼0.27 | 34.29 ▼1.44 |
Add New Post /wp-admin/post-new.php | 1,562 ▲21 | 23.12 ▲4.96 | 587.43 ▼103.56 | 62.02 ▲6.89 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.17 ▼0.04 | 97.19 ▼25.51 | 42.04 ▼7.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/enable-wp-debug-from-admin-dashboard/index.php+82
unlink(wp-content/plugins/enable-wp-debug-from-admin-dashboard/_wp_debug_ip_permission.php): No such file or directory
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_enable_wp_debug_from_admin_dashboard__errors_log
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- EWDFD_1_8_update_issue
- can_compress_scripts
- enable-wp-debug-from-admin-dashboard
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Puvox\\library' not found in wp-content/plugins/enable-wp-debug-from-admin-dashboard/library_wp.php:25
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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 your attention:
- Contributors: Plugin contributors field is missing
enable-wp-debug-from-admin-dashboard/index.php 85% from 13 tests
The main PHP file in "Debug Bar - Enable WP_DEBUG from admin dashboard" ver. 1.86 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("enable-wp-debug-from-admin-dashboard.php" instead of "index.php")
- Description: The description should be shorter than 140 characters (currently 203 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected3,650 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 1,265 | 5,120 | 3,650 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,076)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 349.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 1,076.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 854 | |
▷ Static methods | 102 | 11.94% |
▷ Public methods | 847 | 99.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 0.82% |
Functions | 94 | |
▷ Named functions | 4 | 4.26% |
▷ Anonymous functions | 90 | 95.74% |
Constants | 7 | |
▷ Global constants | 7 | 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 files were detected