Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.38MB] [CPU: ▲1.28ms] Passed 4 tests
This is a short check of server-side resources used by Admin Bar Tools
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.78 ▲1.32 | 63.22 ▲23.35 |
Dashboard /wp-admin | 4.73 ▲1.43 | 66.05 ▲11.55 |
Posts /wp-admin/edit.php | 4.76 ▲1.41 | 64.42 ▲9.72 |
Add New Post /wp-admin/post-new.php | 7.38 ▲1.49 | 86.55 ▼27.41 |
Media Library /wp-admin/upload.php | 4.61 ▲1.38 | 51.60 ▲11.26 |
All Settings /wp-admin/options.php | 7.56 | 48.89 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 576 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Admin Bar Tools: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,616 ▲855 | 13.56 ▼0.99 | 9.49 ▲7.86 | 46.59 ▲4.08 |
Dashboard /wp-admin | 2,811 ▲631 | 5.72 ▲0.05 | 97.49 ▲8.03 | 39.54 ▼2.78 |
Posts /wp-admin/edit.php | 2,713 ▲613 | 2.04 ▲0.07 | 37.25 ▼0.89 | 33.90 ▼0.03 |
Add New Post /wp-admin/post-new.php | 2,209 ▲683 | 23.52 ▲0.45 | 672.77 ▼28.98 | 65.17 ▲6.33 |
Media Library /wp-admin/upload.php | 2,019 ▲616 | 4.24 ▲0.09 | 99.58 ▼3.63 | 41.73 ▼0.98 |
All Settings /wp-admin/options.php | 3,740 | 1.69 | 33.34 | 38.06 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 327× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Screenfeed\\AdminbarTools\\Dependencies\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/sf-adminbar-tools/src/classes/Dependencies/Composer/Installers/MayaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Screenfeed\\AdminbarTools\\Dependencies\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/sf-adminbar-tools/src/classes/Dependencies/Composer/Installers/OxidInstaller.php:6
- > PHP Fatal error
Uncaught Error: Class 'Screenfeed\\AdminbarTools\\Dependencies\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/sf-adminbar-tools/src/classes/Dependencies/Composer/Installers/KnownInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Screenfeed\\AdminbarTools\\Dependencies\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/sf-adminbar-tools/src/classes/Dependencies/Composer/Installers/PrestashopInstaller.php:4
- > PHP Fatal error
Uncaught Error: Interface 'League\\Container\\Argument\\ArgumentResolverInterface' not found in wp-content/plugins/sf-adminbar-tools/vendor/league/container/src/Definition/AbstractDefinition.php:9
- > PHP Fatal error
Uncaught Error: Class 'Screenfeed\\AdminbarTools\\Dependencies\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/sf-adminbar-tools/src/classes/Dependencies/Composer/Installers/WHMCSInstaller.php:5
- > PHP Fatal error
Uncaught Error: Interface 'ScreenfeedAdminbarTools_Mustache_Loader' not found in wp-content/plugins/sf-adminbar-tools/src/classmap/dependencies/mustache/mustache/src/Mustache/Loader/CascadingLoader.php:16
- > PHP Fatal error
Uncaught Error: Interface 'ScreenfeedAdminbarTools_Mustache_Loader' not found in wp-content/plugins/sf-adminbar-tools/src/classmap/dependencies/mustache/mustache/src/Mustache/Loader/ArrayLoader.php:27
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/sf-adminbar-tools/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/sf-adminbar-tools/vendor/mustache/mustache/src/Mustache/Loader/ArrayLoader.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: testing, query, tests, development, debug
sf-adminbar-tools/sf-adminbar-tools.php 92% from 13 tests
The main PHP file in "Admin Bar Tools" ver. 4.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
It is important to fix the following items
- Do not distribute dangerous files with your plugin
- .ms - Maxwell Script in Maxwell Render
- ☣ wp-content/plugins/sf-adminbar-tools/vendor/mustache/mustache/test/fixtures/templates/alpha.ms
- ☣ wp-content/plugins/sf-adminbar-tools/vendor/mustache/mustache/test/fixtures/templates/beta.ms
- .ms - Maxwell Script in Maxwell Render
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 467 | 3,892 | 10,179 | 16,509 |
Markdown | 8 | 233 | 0 | 566 |
JSON | 1 | 0 | 0 | 402 |
Mustache | 48 | 1 | 0 | 232 |
CSS | 2 | 0 | 5 | 217 |
JavaScript | 2 | 18 | 53 | 107 |
YAML | 2 | 6 | 0 | 38 |
XML | 1 | 2 | 0 | 15 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 3.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 39 | |
Interfaces | 59 | |
Traits | 8 | |
Classes | 405 | |
▷ Abstract classes | 19 | 4.69% |
▷ Concrete classes | 386 | 95.31% |
▷ Final classes | 1 | 0.26% |
Methods | 1,195 | |
▷ Static methods | 28 | 2.34% |
▷ Public methods | 972 | 81.34% |
▷ Protected methods | 114 | 9.54% |
▷ Private methods | 109 | 9.12% |
Functions | 71 | |
▷ Named functions | 12 | 16.90% |
▷ Anonymous functions | 59 | 83.10% |
Constants | 141 | |
▷ Global constants | 1 | 0.71% |
▷ Class constants | 140 | 99.29% |
▷ Public constants | 140 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/container-interop/container-interop/docs/images/priority.png | 15.87KB | 8.86KB | ▼ 44.20% |
vendor/container-interop/container-interop/docs/images/interoperating_containers.png | 25.13KB | 12.83KB | ▼ 48.97% |
vendor/container-interop/container-interop/docs/images/side_by_side_containers.png | 15.88KB | 8.43KB | ▼ 46.90% |