Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.16ms] Passed 4 tests
A check of server-side resources used by Auto Hide Admin Bar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.36 ▼5.70 |
Dashboard /wp-admin | 3.40 ▲0.09 | 53.79 ▲0.07 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 52.59 ▲1.81 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 95.13 ▼24.83 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 42.54 ▲7.18 |
Auto Hide Admin Bar /wp-admin/options-general.php?page=auto-hide-admin-bar | 3.27 | 34.14 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 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
This is an overview of browser requirements for Auto Hide Admin Bar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,989 ▲228 | 13.87 ▼0.72 | 12.17 ▲10.28 | 47.60 ▼1.32 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▼0.09 | 91.02 ▼11.05 | 40.53 ▼5.36 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▲0.03 | 41.67 ▲2.95 | 36.10 ▼0.35 |
Add New Post /wp-admin/post-new.php | 1,534 ▼11 | 22.82 ▼0.47 | 680.31 ▲2.60 | 59.03 ▼0.57 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.20 ▼0.02 | 101.18 ▼5.88 | 41.46 ▼7.68 |
Auto Hide Admin Bar /wp-admin/options-general.php?page=auto-hide-admin-bar | 1,062 | 2.17 | 27.83 | 31.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=auto-hide-admin-bar
- > Notice in wp-content/plugins/auto-hide-admin-bar/ahab_options.php+549
Trying to access array offset on value of type bool
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
- 2× 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/auto-hide-admin-bar/ahab_options.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/auto-hide-admin-bar/auto-hide-admin-bar.php:17
- > 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
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: admin bar, toolbar, adminbar, auto, hide...
auto-hide-admin-bar/auto-hide-admin-bar.php 92% from 13 tests
Analyzing the main PHP file in "Auto Hide Admin Bar" version 1.6.2
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
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
Success! There were no dangerous files found in this plugin807 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 101 | 321 | 483 |
JavaScript | 2 | 46 | 69 | 236 |
CSS | 1 | 15 | 1 | 88 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin