Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▲5.54ms] Passed 4 tests
Server-side resources used by Hide WP Admin Bar by WP ALL SUPPORT
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 32.93 ▼4.35 |
Dashboard /wp-admin | 3.38 ▲0.08 | 45.58 ▼1.97 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 72.67 ▲24.22 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 122.63 ▲20.51 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 40.38 ▲7.95 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
wpas_admin_bar_settings |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Hide WP Admin Bar by WP ALL SUPPORT
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,641 ▼94 | 13.31 ▼1.05 | 1.15 ▼0.68 | 38.90 ▼8.55 |
Dashboard /wp-admin | 2,224 ▲36 | 4.95 ▼0.93 | 99.21 ▼0.17 | 83.85 ▲30.45 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.02 ▲0.02 | 76.36 ▲35.18 | 84.11 ▲50.01 |
Add New Post /wp-admin/post-new.php | 1,527 ▲7 | 22.97 ▼0.22 | 668.07 ▲54.06 | 54.54 ▼2.13 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.14 ▼0.05 | 106.06 ▲1.59 | 88.47 ▲44.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/hide-admin-bar-by-wp-all-support/uninstall.php+12
Undefined index: uninstall_data
- This plugin did not uninstall successfully, leaving 7 options in the database
- wpas_admin_bar_settings
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
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)
Good news, no errors were detected
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
- 2× 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/hide-admin-bar-by-wp-all-support/admin/class-wpas-hide-admin-bar-admin.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/hide-admin-bar-by-wp-all-support/templates/add-new-rule.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 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
8 plugin tags: disable admin bar, admin bar, wp admin, wp admin bar hide, hide admin bar...
hide-admin-bar-by-wp-all-support/wpas-hide-admin-bar.php 85% from 13 tests
Analyzing the main PHP file in "Hide WP Admin Bar by WP ALL SUPPORT" version 1.0.3
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("hide-admin-bar-by-wp-all-support.php" instead of "wpas-hide-admin-bar.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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 detected626 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 122 | 25 | 485 |
JavaScript | 2 | 22 | 0 | 85 |
PO File | 1 | 13 | 15 | 45 |
CSS | 3 | 0 | 4 | 11 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 6.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 15 | |
▷ Static methods | 2 | 13.33% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/admin-menu.png | 1.99KB | 1.28KB | ▼ 35.90% |