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 gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▲4.86ms] Passed 4 tests
This is a short check of server-side resources used by Fixed HTML Toolbar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 41.93 ▲5.38 |
Dashboard /wp-admin | 3.70 ▲0.39 | 54.98 ▲10.47 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 49.87 ▲5.22 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 94.45 ▲14.58 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 37.22 ▼1.63 |
Fixed HTML Toolbar /wp-admin/options-general.php?page=fixed-html-toolbar | 3.57 | 38.61 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Fixed HTML Toolbar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,971 ▲210 | 16.78 ▲2.58 | 1.65 ▲0.15 | 45.18 ▼1.82 |
Dashboard /wp-admin | 2,377 ▲210 | 7.71 ▲2.13 | 132.52 ▲37.18 | 37.88 ▼0.71 |
Posts /wp-admin/edit.php | 2,304 ▲207 | 5.08 ▲3.10 | 59.94 ▲24.19 | 29.86 ▼6.72 |
Add New Post /wp-admin/post-new.php | 1,565 ▲39 | 24.94 ▲1.24 | 612.56 ▼123.79 | 34.24 ▼28.94 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 5.43 ▲1.23 | 92.45 ▼18.41 | 40.47 ▼10.81 |
Fixed HTML Toolbar /wp-admin/options-general.php?page=fixed-html-toolbar | 3,184 | 8.84 | 179.22 | 77.42 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/fixed-html-toolbar/uninstall.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/fixed-html-toolbar/admin/partials/about-plugin-view.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/fixed-html-toolbar/admin/partials/settings-view.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/fixed-html-toolbar/admin/partials/about-web357-view.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/fixed-html-toolbar/admin/partials/admin-view.php:18
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: web357, toolbar, fixed, sticky
fixed-html-toolbar/fixed-html-toolbar.php 92% from 13 tests
This is the main PHP file of "Fixed HTML Toolbar" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 245 characters long)
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
There were no executable files found in this plugin1,186 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 207 | 566 | 1,011 |
CSS | 4 | 21 | 30 | 123 |
JavaScript | 4 | 9 | 29 | 51 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 15.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 38 | 88.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.63% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/web357-logo.png | 18.33KB | 5.40KB | ▼ 70.53% |
admin/img/social-icons/newsletter.png | 0.56KB | 0.67KB | 0.00% |
admin/img/social-icons/rss.png | 1.20KB | 0.97KB | ▼ 19.00% |
admin/img/social-icons/facebook.png | 0.66KB | 0.52KB | ▼ 20.91% |
admin/img/social-icons/googleplus.png | 1.07KB | 0.82KB | ▼ 23.36% |