Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼296.87ms] Passed 4 tests
This is a short check of server-side resources used by Admin Bar Disabler
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 57.21 ▲8.33 |
Dashboard /wp-admin | 3.47 ▲0.06 | 36.99 ▲3.33 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 39.15 ▲0.43 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.03 | 96.03 ▼1,189.69 |
Media Library /wp-admin/upload.php | 3.35 ▲0.06 | 24.10 ▼1.54 |
Admin Bar Disabler /wp-admin/options-general.php?page=admin_bar_disabler | 3.32 | 24.51 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Admin Bar Disabler
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,769 ▲47 | 16.19 ▲0.51 | 6.00 ▼0.13 | 2.02 ▼0.26 |
Dashboard /wp-admin | 2,897 ▲36 | 6.08 ▼0.00 | 120.14 ▼16.58 | 161.39 ▼7.65 |
Posts /wp-admin/edit.php | 2,690 ▲33 | 3.23 ▼0.00 | 62.41 ▼4.90 | 139.99 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,671 ▼48 | 18.21 ▼4.31 | 396.14 ▼40.87 | 156.51 ▼13.64 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.54 ▼0.02 | 139.30 ▼4.29 | 186.09 ▼4.92 |
Admin Bar Disabler /wp-admin/options-general.php?page=admin_bar_disabler | 1,228 | 2.36 | 55.04 | 160.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
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
The following issues need your attention
- 1× 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/admin-bar-disabler/admin-bar-disabler.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: toolbar, admin bar, admin menu
admin-bar-disabler/admin-bar-disabler.php Passed 13 tests
"Admin Bar Disabler" version 1.4.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
138 characters long description:
Disable the WP Admin Bar / Toolbar on the frontend of sites for specific roles and capabilities based on inclusion and exclusion settings.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected289 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 66 | 62 | 289 |
PHP code Passed 2 tests
A brief analysis 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.35 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin