Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.69ms] Passed 4 tests
This is a short check of server-side resources used by (dp) Toolbar Plus
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 37.14 ▼3.35 |
Dashboard /wp-admin | 3.39 ▲0.09 | 46.78 ▼1.89 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.08 ▲1.35 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 81.00 ▼16.10 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.34 ▼1.42 |
Toolbar /wp-admin/options-general.php?page=dp-toolbar-settings | 3.30 | 33.75 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for (dp) Toolbar Plus
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,758 ▼3 | 14.62 ▲0.22 | 1.98 ▲0.39 | 38.07 ▲0.00 |
Dashboard /wp-admin | 2,151 ▼20 | 5.60 ▲0.06 | 82.05 ▼9.96 | 40.08 ▲0.78 |
Posts /wp-admin/edit.php | 2,053 ▼44 | 2.02 ▼0.00 | 32.47 ▼2.04 | 34.49 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,503 ▼23 | 23.30 ▲0.05 | 673.79 ▼10.22 | 58.50 ▲1.10 |
Media Library /wp-admin/upload.php | 1,359 ▼41 | 4.14 ▼0.06 | 95.85 ▼8.54 | 42.22 ▼5.24 |
Toolbar /wp-admin/options-general.php?page=dp-toolbar-settings | 944 | 8.03 | 198.33 | 28.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function DP\\Toolbar\\plugin_dir_path() in wp-content/plugins/dp-toolbar-plus/dp-toolbar-plus.php:20
- > 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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: toolbar, admin-bar
dp-toolbar-plus/dp-toolbar-plus.php Passed 13 tests
"(dp) Toolbar Plus" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
137 characters long description:
Get more control of WordPress Toolbar (Admin-Bar) - Hide toolbar from front-end based on user roles and capabilities, auto hide/show etc.
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
No dangerous file extensions were detected555 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 151 | 148 | 532 |
JavaScript | 2 | 7 | 3 | 17 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 1 | 1 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 41 | |
▷ Static methods | 32 | 78.05% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin