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
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼10.67ms] Passed 4 tests
Analyzing server-side resources used by Hide Admin Bar From Front End
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.26 ▼6.13 |
Dashboard /wp-admin | 3.32 ▼0.03 | 44.05 ▼17.24 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.59 ▼0.20 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.53 ▼19.12 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.57 ▲1.35 |
Hide/Show Admin Bar /wp-admin/options-general.php?page=hide_admin_bar_from_front_end | 3.21 | 30.92 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Hide Admin Bar From Front End
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.23 ▼0.06 | 1.61 ▼0.12 | 40.31 ▼1.53 |
Dashboard /wp-admin | 2,196 ▲19 | 5.63 ▼0.04 | 79.40 ▼8.42 | 40.69 ▲2.48 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▲0.00 | 32.98 ▼7.68 | 37.88 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,529 ▼13 | 23.22 ▲4.93 | 650.55 ▲29.55 | 64.19 ▼7.55 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▲0.04 | 94.35 ▼4.27 | 40.38 ▼1.86 |
Hide/Show Admin Bar /wp-admin/options-general.php?page=hide_admin_bar_from_front_end | 829 | 2.03 | 27.08 | 27.95 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=hide_admin_bar_from_front_end
- > Notice in wp-content/plugins/hide-admin-bar-from-front-end/includes/hide_admin_bar_from_front_end.php+8
Undefined index: add_opt_submit
- > GET request to /wp-admin/options-general.php?page=hide_admin_bar_from_front_end
- > Notice in wp-content/plugins/hide-admin-bar-from-front-end/includes/hide_admin_bar_from_front_end.php+27
Undefined variable: message
SRP 50% from 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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hide-admin-bar-from-front-end/includes/hide_admin_bar_from_front_end.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/hide-admin-bar-from-front-end/hide-admin-bar-from-front-end.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Screenshot #1 (Back End Hide/Show Admin Bar setting) image required
hide-admin-bar-from-front-end/hide-admin-bar-from-front-end.php Passed 13 tests
The main PHP script in "Hide Admin Bar From Front End" version 1.0.0 is automatically included on every request by WordPress
68 characters long description:
This plugin provides feature to hide/show admin bar from front end.
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
Everything looks great! No dangerous files found in this plugin64 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 24 | 15 | 64 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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 | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 26.76KB | 14.17KB | ▼ 47.04% |