Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼292.16ms] 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.53 ▲0.01 | 91.14 ▲40.41 |
Dashboard /wp-admin | 3.42 ▲0.01 | 33.15 ▼1.55 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 38.10 ▼1.02 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 91.95 ▼1,164.96 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 24.18 ▼1.09 |
Admin bar AutoHider /wp-admin/options-general.php?page=admin-bar-autohider/admin_bar_autohider.php | 3.27 | 24.07 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Admin bar AutoHider: 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,779 ▲33 | 16.25 ▲0.50 | 5.83 ▼0.18 | 2.10 ▼0.33 |
Dashboard /wp-admin | 2,891 ▲33 | 6.12 ▼0.05 | 125.79 ▼12.43 | 162.47 ▼81.41 |
Posts /wp-admin/edit.php | 2,693 ▲5 | 3.23 ▼0.00 | 65.40 ▲2.01 | 143.67 ▼2.38 |
Add New Post /wp-admin/post-new.php | 1,664 ▼42 | 15.81 ▼4.84 | 428.96 ▼9.39 | 148.90 ▼7.18 |
Media Library /wp-admin/upload.php | 1,700 ▲2 | 5.44 ▼0.07 | 148.77 ▲8.76 | 205.11 ▼50.67 |
Admin bar AutoHider /wp-admin/options-general.php?page=admin-bar-autohider/admin_bar_autohider.php | 1,099 | 2.42 | 54.04 | 138.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
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 everything seems fine, this is not an exhaustive test
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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > 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 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: bar, admin, position, auto, hide
admin-bar-autohider/admin_bar_autohider.php 92% from 13 tests
The main PHP script in "Admin bar AutoHider" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal 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 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected259 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
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin