Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▼7.36ms] Passed 4 tests
This is a short check of server-side resources used by Hide Admin Bar & More - Better Admin Bar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.36 | 44.71 ▲0.03 |
Dashboard /wp-admin | 3.59 ▲0.28 | 55.91 ▲2.83 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 51.84 ▼4.78 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 97.34 ▼27.50 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 38.62 ▲4.78 |
Better Admin Bar /wp-admin/options-general.php?page=better-admin-bar | 3.55 | 39.94 |
Server storage [IO: ▲4.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 71 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
swift_control_compat_migrate_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Hide Admin Bar & More - Better Admin Bar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,046 ▲299 | 13.82 ▼0.52 | 14.46 ▲12.55 | 39.91 ▼7.10 |
Dashboard /wp-admin | 2,237 ▲60 | 5.52 ▼0.11 | 96.96 ▲4.39 | 85.19 ▲37.06 |
Posts /wp-admin/edit.php | 2,164 ▲64 | 2.13 ▲0.12 | 40.96 ▲1.43 | 45.94 ▲6.66 |
Add New Post /wp-admin/post-new.php | 1,577 ▲51 | 23.27 ▲0.12 | 728.65 ▲39.71 | 51.82 ▼0.57 |
Media Library /wp-admin/upload.php | 1,451 ▲51 | 4.20 ▼0.02 | 101.58 ▼3.51 | 80.51 ▲33.99 |
Better Admin Bar /wp-admin/options-general.php?page=better-admin-bar | 2,793 | 3.62 | 104.72 | 115.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- swift_control_compat_migrate_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 19× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/better-admin-bar/templates/setting-boxes/available-widgets.php
- > /wp-content/plugins/better-admin-bar/uninstall.php
- > /wp-content/plugins/better-admin-bar/templates/setting-boxes/active-widgets.php
- > /wp-content/plugins/better-admin-bar/inc/available-widgets.php
- > /wp-content/plugins/better-admin-bar/better-admin-bar.php
- > /wp-content/plugins/better-admin-bar/templates/setting-boxes/misc-settings.php
- > /wp-content/plugins/better-admin-bar/inc/active-widgets.php
- > /wp-content/plugins/better-admin-bar/helpers.php
- > /wp-content/plugins/better-admin-bar/inc/pro-widgets.php
- > /wp-content/plugins/better-admin-bar/templates/setting-boxes/display-settings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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
8 plugin tags: 32px, quick edit, margin, adminbar, replace admin bar...
better-admin-bar/better-admin-bar.php Passed 13 tests
"Hide Admin Bar & More - Better Admin Bar" version 4.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
Hide WordPress admin bar, replace it with a better swift control.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin15,096 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,445 |
PHP | 26 | 552 | 671 | 1,929 |
CSS | 9 | 279 | 158 | 1,351 |
JSON | 2 | 0 | 0 | 1,226 |
JavaScript | 11 | 291 | 305 | 1,138 |
XML | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 18.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 4 | 8.16% |
▷ Public methods | 49 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 16.70KB | 7.43KB | ▼ 55.48% |