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.03MB] [CPU: ▼4.77ms] Passed 4 tests
Analyzing server-side resources used by Admin bar AutoHider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.76 ▲0.16 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.24 ▼4.56 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.58 ▲0.93 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.69 ▼15.39 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.86 ▲0.73 |
Admin bar AutoHider /wp-admin/options-general.php?page=admin-bar-autohider/admin_bar_autohider.php | 3.22 | 32.18 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Admin bar AutoHider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲76 | 13.17 ▼1.23 | 1.81 ▼0.36 | 41.65 ▼9.26 |
Dashboard /wp-admin | 2,213 ▲25 | 5.86 ▲0.96 | 97.02 ▼16.68 | 38.01 ▼12.67 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.16 ▲0.15 | 40.11 ▲5.08 | 36.23 ▼1.18 |
Add New Post /wp-admin/post-new.php | 1,517 ▼8 | 17.87 ▼5.28 | 682.32 ▲3.79 | 53.49 ▼3.45 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.20 ▼0.00 | 97.62 ▼3.87 | 41.91 ▼2.63 |
Admin bar AutoHider /wp-admin/options-general.php?page=admin-bar-autohider/admin_bar_autohider.php | 849 | 2.04 | 23.65 | 29.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-bar-autohider/admin_bar_autohider.php:39
- > 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 errors were detected
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
5 plugin tags: position, auto, admin, bar, hide
admin-bar-autohider/admin_bar_autohider.php 92% from 13 tests
This is the main PHP file of "Admin bar AutoHider" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("admin-bar-autohider.php" instead of "admin_bar_autohider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin259 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 15 | 28 | 129 |
JavaScript | 1 | 3 | 8 | 97 |
CSS | 1 | 1 | 0 | 33 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 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 | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin