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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.22ms] Passed 4 tests
This is a short check of server-side resources used by Header Bar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 44.48 ▲0.98 |
Dashboard /wp-admin | 3.35 ▲0.05 | 52.44 ▲0.27 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 50.80 ▼1.95 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 97.86 ▼2.01 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.50 ▼5.20 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 14 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
ztb_email |
ztb_source |
ztb_access_key |
ztb_status_disconnect |
widget_recent-comments |
ztb_id |
ztb_domainid |
... |
Browser metrics Passed 4 tests
Header Bar: 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,820 ▲59 | 14.31 ▼0.34 | 1.87 ▲0.07 | 45.46 ▲1.86 |
Dashboard /wp-admin | 2,217 ▲43 | 5.69 ▲0.03 | 85.39 ▼3.14 | 76.19 ▲35.21 |
Posts /wp-admin/edit.php | 2,119 ▲16 | 1.98 ▼0.06 | 34.03 ▼5.37 | 32.34 ▼5.72 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 18.01 ▼5.24 | 712.54 ▲57.15 | 53.17 ▼8.75 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.15 ▲0.03 | 98.42 ▼9.91 | 75.49 ▲28.16 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 14 options in the database
- widget_theysaidso_widget
- ztb_email
- ztb_status_disconnect
- ztb_domainid
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- access_key
- widget_recent-posts
- ztb_access_key
- ...
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-welcome-bar/responsive-welcome-bar.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 24 tag instead of maximum 10
responsive-welcome-bar/responsive-welcome-bar.php Passed 13 tests
The main PHP script in "Header Bar" version 1.3.0 is automatically included on every request by WordPress
133 characters long description:
Responsive and Fully Customizable Bar. Promote Free Shipping, Free Gifts, Coupons, +10 more popular website marketing tools included.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin501 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 3 | 4 | 273 |
PHP | 1 | 19 | 15 | 188 |
JavaScript | 1 | 4 | 0 | 40 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 10 | |
▷ Named functions | 10 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/check.png | 2.96KB | 0.37KB | ▼ 87.47% |
assets/images/bg_body.png | 22.84KB | 9.83KB | ▼ 56.98% |
zotabox.png | 3.19KB | 0.44KB | ▼ 86.31% |
assets/images/logo-zotabox.png | 5.45KB | 2.43KB | ▼ 55.35% |