Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.09MB] [CPU: ▼18.28ms] Passed 4 tests
An overview of server-side resources used by WP Hide Admin Bar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▼0.61 | 18.31 ▼22.16 |
Dashboard /wp-admin | 3.40 ▲0.06 | 42.29 ▼24.82 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 46.79 ▲0.33 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 72.29 ▼26.48 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 33.90 ▲1.39 |
Hide Admin Bar /wp-admin/options-general.php?page=wp-hide-adminbar_options | 3.24 | 28.28 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Hide Admin Bar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.22 ▼1.07 | 1.48 ▼0.36 | 44.61 ▲1.52 |
Dashboard /wp-admin | 2,216 ▲28 | 4.89 ▼0.92 | 101.46 ▼19.96 | 39.75 ▼7.04 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.02 | 40.22 ▲5.36 | 35.88 ▲0.08 |
Add New Post /wp-admin/post-new.php | 1,520 ▲1 | 17.60 ▼5.55 | 654.40 ▲29.49 | 55.44 ▲4.33 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.43 ▲0.23 | 101.26 ▼3.88 | 41.92 ▼1.23 |
Hide Admin Bar /wp-admin/options-general.php?page=wp-hide-adminbar_options | 882 | 2.07 | 23.67 | 28.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp-hide-adminbar_options
- > Notice in wp-content/plugins/wp-hide-adminbar/wp-hide-adminbar.php+177
Undefined property: Wp_Hide_Adminbar::$pluginName
- > GET request to /wp-admin/options-general.php?page=wp-hide-adminbar_options
- > Notice in wp-content/plugins/wp-hide-adminbar/wp-hide-adminbar.php+179
Undefined variable: pluginName
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: hide admin-bar based on user capabilities, wp hide admin bar, admin bar hide, hide admin bar, hide admin-bar based on user roles
wp-hide-adminbar/wp-hide-adminbar.php Passed 13 tests
The primary PHP file in "WP Hide Admin Bar" version 1.0.2 is used by WordPress to initiate all plugin functionality
66 characters long description:
Hide admin bar based on selected user roles and user capabilities.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected173 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 52 | 29 | 173 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin