Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.58ms] Passed 4 tests
This is a short check of server-side resources used by Front Tool Bar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.16 ▲1.96 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.28 ▼3.09 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.20 ▼2.85 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.01 ▼14.32 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.10 ▲2.00 |
Front Tool Bar /wp-admin/options-general.php?page=front-tool-bar-settings | 3.20 | 29.13 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Front Tool Bar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.59 ▼1.18 | 1.66 ▼0.12 | 43.58 ▼3.30 |
Dashboard /wp-admin | 2,207 ▲16 | 5.77 ▲0.90 | 94.36 ▼13.29 | 37.61 ▼2.94 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.17 ▲0.16 | 36.38 ▼4.76 | 30.94 ▼2.73 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.60 ▼0.14 | 643.95 ▼47.82 | 60.62 ▼0.75 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.18 ▲0.01 | 101.05 ▼7.41 | 41.68 ▼6.58 |
Front Tool Bar /wp-admin/options-general.php?page=front-tool-bar-settings | 795 | 2.03 | 23.90 | 28.30 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 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/front-tool-bar/includes/admin-settings.php:2
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Requires php: Version not formatted correctly
- Screenshots: Please add an image for screenshot #1 (Front_Tool_Bar_Admin_End_Without_Check)
front-tool-bar/front-tool-bar.php Passed 13 tests
Analyzing the main PHP file in "Front Tool Bar" version 1.0
98 characters long description:
Custom plugin to enable or disable WordPress Admin Tool bar on frontend for all users at one time.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected94 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 5 | 24 | 94 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
4 PNG files occupy 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Front_Tool_Bar_Front_End_With_Check.png | 51.81KB | 15.00KB | ▼ 71.04% |
Front_Tool_Bar_Admin_End_With_Check.png | 9.18KB | 3.75KB | ▼ 59.19% |
Front_Tool_Bar_Admin_End_Without_Check.png | 42.81KB | 12.41KB | ▼ 71.01% |
Front_Tool_Bar_Front_End_Without_Check.png | 58.88KB | 17.95KB | ▼ 69.51% |