Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼10.48ms] Passed 4 tests
An overview of server-side resources used by Hide WP Toolbar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 42.93 ▼1.78 |
Dashboard /wp-admin | 3.32 ▼0.03 | 53.83 ▼14.91 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 54.56 ▼0.27 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.50 ▼24.97 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 41.86 ▲5.67 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Hide WP Toolbar: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 13.87 ▼0.39 | 8.90 ▲7.12 | 36.23 ▼6.72 |
Dashboard /wp-admin | 2,192 ▲15 | 5.60 ▼0.05 | 92.87 ▼4.53 | 39.42 ▼0.37 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.03 | 47.15 ▲12.48 | 39.08 ▲3.80 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.11 ▲0.15 | 645.20 ▲27.76 | 52.01 ▲2.93 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.23 ▲0.05 | 101.32 ▲0.80 | 45.26 ▼1.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 1× 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-wp-toolbar/hide-wp-toolbar.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #2 is required in hide-wp-toolbar/assets to your readme.txt
hide-wp-toolbar/hide-wp-toolbar.php Passed 13 tests
This is the main PHP file of "Hide WP Toolbar" version 2.6.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
131 characters long description:
The plugin adds a clickable button to the right side of the WordPress Toolbar that will show or hide the bar with nice transitions.
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 detected152 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 48 | 46 | 67 |
CSS | 1 | 16 | 0 | 57 |
JavaScript | 1 | 12 | 11 | 28 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 7 | |
▷ Named functions | 7 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.20MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 106.66KB | 40.75KB | ▼ 61.80% |
assets/banner-772x250.png | 94.48KB | 19.87KB | ▼ 78.97% |