Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼4.56ms] Passed 4 tests
A check of server-side resources used by Debug Bar for Sophi
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 42.89 ▲4.51 |
Dashboard /wp-admin | 3.41 ▲0.11 | 48.01 ▼2.77 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 46.24 ▼5.35 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 89.56 ▼14.62 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 41.74 ▲7.84 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Debug Bar for Sophi
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.36 ▲0.00 | 1.64 ▲0.03 | 44.02 ▲4.61 |
Dashboard /wp-admin | 2,209 ▲35 | 5.62 ▲0.11 | 94.73 ▲10.02 | 42.49 ▼0.78 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.01 ▼0.00 | 36.11 ▼2.38 | 32.32 ▼4.67 |
Add New Post /wp-admin/post-new.php | 1,536 ▲11 | 23.59 ▼0.05 | 669.98 ▲12.99 | 52.30 ▼1.65 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.17 ▼0.01 | 93.93 ▼13.98 | 45.76 ▼8.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
- 4× 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/debug-bar-for-sophi/includes/class-sophi-debug-bar-panel.php:15
- > PHP Fatal error
Uncaught Error: Class 'SophiDebugBar\\Item' not found in wp-content/plugins/debug-bar-for-sophi/includes/classes/Event.php:13
- > PHP Fatal error
Uncaught Error: Class 'SophiDebugBar\\Item' not found in wp-content/plugins/debug-bar-for-sophi/includes/classes/Request.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/debug-bar-for-sophi/sophi-debug-bar.php:20
- > 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 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: debug bar, sophi
debug-bar-for-sophi/sophi-debug-bar.php 92% from 13 tests
The main file in "Debug Bar for Sophi" v. 0.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("debug-bar-for-sophi.php" instead of "sophi-debug-bar.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
There were no executable files found in this plugin1,260 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 347 | 905 | 1,253 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 15.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 20 | 24.69% |
▷ Public methods | 79 | 97.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.47% |
Functions | 25 | |
▷ Named functions | 23 | 92.00% |
▷ Anonymous functions | 2 | 8.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin