Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.51ms] Passed 4 tests
An overview of server-side resources used by Role Based Hide Adminbar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.98 ▲4.27 |
Dashboard /wp-admin | 3.33 ▼0.02 | 42.33 ▼16.34 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.79 ▼5.41 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.06 ▼8.54 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.36 ▲4.68 |
Hide Adminbar /wp-admin/options-general.php?page=rbhabar-setting | 3.22 | 28.91 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
rbhabar_options_name |
Browser metrics Passed 4 tests
A check of browser resources used by Role Based Hide Adminbar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.23 ▼0.12 | 1.63 ▲0.03 | 44.38 ▲5.54 |
Dashboard /wp-admin | 2,202 ▲33 | 5.66 ▲0.02 | 83.18 ▼13.50 | 39.24 ▼9.42 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.95 ▼0.06 | 33.27 ▼7.82 | 32.60 ▼1.81 |
Add New Post /wp-admin/post-new.php | 1,529 ▼2 | 23.39 ▲0.40 | 673.75 ▲13.45 | 55.42 ▲0.84 |
Media Library /wp-admin/upload.php | 1,395 ▼5 | 4.15 ▼0.04 | 97.57 ▼7.34 | 45.45 ▼2.55 |
Hide Adminbar /wp-admin/options-general.php?page=rbhabar-setting | 834 | 2.00 | 24.49 | 33.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 90% 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 to be fixed:
- Requires at least: Version not formatted correctly
- Screenshots: Screenshot #1 (Admin page setting and layout) image not found
role-based-hide-adminbar/role-based-hide-adminbar.php 92% from 13 tests
Analyzing the main PHP file in "Role Based Hide Adminbar" version 1.0.6
You should first fix the following items:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin112 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 0 | 11 | 63 |
CSS | 1 | 7 | 5 | 49 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.14 |
▷ 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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin