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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.65ms] Passed 4 tests
A check of server-side resources used by WP Hide Admin Bar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 38.14 ▼3.06 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.73 ▲1.24 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.75 ▲1.37 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.71 ▼20.06 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.89 ▼4.70 |
WP Hide Admin Bar /wp-admin/options-general.php?page=WPHideAdminBar | 3.22 | 33.60 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
whab_display_admin_settings |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP Hide Admin Bar: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,630 ▼116 | 14.72 ▲0.14 | 1.49 ▼0.32 | 43.11 ▲1.29 |
Dashboard /wp-admin | 2,210 ▲21 | 5.79 ▲0.85 | 113.65 ▲2.00 | 43.07 ▼3.08 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.04 ▲0.00 | 34.43 ▼3.27 | 33.67 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,517 ▼7 | 17.72 ▼5.54 | 665.70 ▼19.54 | 56.98 ▲5.21 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▲0.01 | 96.46 ▼17.19 | 42.62 ▼6.03 |
WP Hide Admin Bar /wp-admin/options-general.php?page=WPHideAdminBar | 901 | 1.67 | 26.20 | 26.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- whab_display_admin_settings
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-hide-admin-bar/class.admin.php
- > /wp-content/plugins/wp-hide-admin-bar/admin.bar.php
- > /wp-content/plugins/wp-hide-admin-bar/functions.load.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-hide-admin-bar/wp-hide-admin-bar.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-hide-admin-bar/wp-hide-admin-bar.php:16
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues 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
Attributes that need to be fixed:
- Screenshots: Add a description for screenshot #0 in wp-hide-admin-bar/assets to your readme.txt
wp-hide-admin-bar/wp-hide-admin-bar.php Passed 13 tests
The principal PHP file in "WP Hide Admin Bar" v. 2.0 is loaded by WordPress automatically on each request
107 characters long description:
Plugin to hide admin toolbar from front end when login. For change settings (Settings -> WP Hide Admin Bar)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin131 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 34 | 11 | 131 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin