Benchmarks
Plugin footprint 83% from 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.02MB] [CPU: ▼4.97ms] Passed 4 tests
Analyzing server-side resources used by Hide Admin Bar For User Roles
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.01 ▼4.53 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.59 ▲1.73 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 56.90 ▼0.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.20 ▼16.76 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 39.06 ▲2.34 |
Hide Admin Bar /wp-admin/options-general.php?page=habfur_options | 3.25 | 34.80 |
Server storage [IO: ▲1.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Hide Admin Bar For User Roles
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.25 ▼0.02 | 1.89 ▲0.14 | 43.35 ▲2.98 |
Dashboard /wp-admin | 2,199 ▲25 | 5.62 ▲0.08 | 86.94 ▼1.62 | 39.31 ▼2.89 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.11 ▲0.08 | 34.27 ▼9.28 | 34.34 ▼6.25 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.03 ▲0.05 | 664.52 ▲39.30 | 60.02 ▲8.05 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.15 ▼0.15 | 102.26 ▼2.12 | 46.70 ▲1.66 |
Hide Admin Bar /wp-admin/options-general.php?page=habfur_options | 1,029 | 1.99 | 22.66 | 46.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/hide-admin-bar-for-user-roles/admin/pages/options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/hide-admin-bar-for-user-roles/admin/pages/tabs/help.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/hide-admin-bar-for-user-roles/admin/pages/tabs/settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (**Hide Admin Bar** - Select the desired role and hide admin bar.), #2 (**Settings Page** - Here you can manage admin bar settings.), #3 (**Help Page** - List of FAQ and support contact information.)
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
hide-admin-bar-for-user-roles/HABFUR.php 77% from 13 tests
The entry point to "Hide Admin Bar For User Roles" version 1.1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("hide-admin-bar-for-user-roles.php" instead of "HABFUR.php")
- Domain Path: The domain path folder was not found ("/languages")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 220 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin529 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 56 | 121 | 247 |
CSS | 1 | 1 | 1 | 183 |
JavaScript | 1 | 15 | 9 | 99 |
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.25 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 2 | 14.29% |
▷ Public methods | 14 | 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 | 3 | |
▷ Global constants | 3 | 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
There were not PNG files found in your plugin