Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/hidden-by-roles-the-admin-bar/HBRAB.php+124
Undefined index: action
Server metrics [RAM: ▼1.86MB] [CPU: ▼54.31ms] Passed 4 tests
A check of server-side resources used by Hidden By Roles the Admin Bar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 8.76 ▼31.20 |
Dashboard /wp-admin | 2.16 ▼1.19 | 5.63 ▼57.63 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 6.92 ▼38.98 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 6.02 ▼89.42 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 6.01 ▼27.90 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 21 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_hbrab_roles_list |
New WordPress options |
---|
widget_recent-comments |
hbrab_db_version |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Hidden By Roles the Admin Bar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲78 | 13.32 ▼1.08 | 6.02 ▲4.37 | 42.85 ▲0.14 |
Dashboard /wp-admin | 2,233 ▲45 | 5.88 ▲0.01 | 100.35 ▼23.96 | 39.62 ▼5.54 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.04 ▲0.01 | 34.20 ▼4.64 | 32.83 ▼1.93 |
Add New Post /wp-admin/post-new.php | 1,535 ▲16 | 17.90 ▼5.21 | 715.25 ▲39.52 | 64.88 ▲6.63 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.27 ▲0.07 | 98.33 ▼5.19 | 42.05 ▼1.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/hidden-by-roles-the-admin-bar/HBRAB.php+124
Undefined index: action
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hidden-by-roles-the-admin-bar/inc/HBRABAdmin.php:76
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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
6 plugin tags: managing roles, admin bar, managing roles custom, custom, hide...
hidden-by-roles-the-admin-bar/HBRAB.php 85% from 13 tests
"Hidden By Roles the Admin Bar" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 415 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hidden-by-roles-the-admin-bar.php" instead of "HBRAB.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,003 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 6 | 111 | 114 | 668 |
PHP | 4 | 46 | 45 | 220 |
JavaScript | 1 | 5 | 4 | 60 |
CSS | 1 | 15 | 1 | 55 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
1 PNG file occupies 0.31MB with 0.15MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/LogoKheloShopFlat.png | 318.19KB | 162.61KB | ▼ 48.90% |