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.27MB] [CPU: ▼3.75ms] Passed 4 tests
Server-side resources used by Sticky Add To Cart Bar For WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 27.83 ▼13.29 |
Dashboard /wp-admin | 3.62 ▲0.32 | 46.91 ▼2.85 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 46.69 ▲1.23 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.28 | 93.01 ▼0.08 |
Media Library /wp-admin/upload.php | 3.48 ▲0.26 | 36.64 ▲1.92 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
woo_sticky_cart |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Sticky Add To Cart Bar For WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,515 ▼231 | 13.27 ▼1.10 | 0.72 ▼1.13 | 18.23 ▼26.54 |
Dashboard /wp-admin | 2,259 ▲68 | 4.89 ▼0.11 | 109.24 ▲2.91 | 42.90 ▲2.39 |
Posts /wp-admin/edit.php | 2,138 ▲46 | 2.05 ▲0.01 | 41.90 ▲1.11 | 38.84 ▲6.49 |
Add New Post /wp-admin/post-new.php | 1,570 ▲56 | 18.65 ▲1.01 | 624.91 ▼67.60 | 70.30 ▲15.19 |
Media Library /wp-admin/upload.php | 1,441 ▲53 | 4.27 ▲0.06 | 102.06 ▼6.00 | 46.63 ▲1.28 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- woo_sticky_cart
Smoke tests 50% 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 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sticky-add-to-cart-bar-for-wc/addonsplus-wsc.php
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/sticky-add-to-cart-bar-for-wc/templates/dashboard.php:5
- > PHP Fatal error
Uncaught Error: Class 'WscInc\\Base\\BaseController' not found in wp-content/plugins/sticky-add-to-cart-bar-for-wc/inc/Base/SettingsLinks.php:9
- > PHP Fatal error
Uncaught Error: Class 'WscInc\\Base\\BaseController' not found in wp-content/plugins/sticky-add-to-cart-bar-for-wc/inc/Base/Enqueue.php:12
- > PHP Fatal error
Uncaught Error: Class 'WscInc\\Base\\BaseController' not found in wp-content/plugins/sticky-add-to-cart-bar-for-wc/inc/Api/Callbacks/AdminCallbacks.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sticky-add-to-cart-bar-for-wc/templates/cart.php:4
- > PHP Fatal error
Uncaught Error: Class 'WscInc\\Base\\BaseController' not found in wp-content/plugins/sticky-add-to-cart-bar-for-wc/inc/Base/WooCart.php:11
- > PHP Fatal error
Uncaught Error: Class 'WscInc\\Base\\BaseController' not found in wp-content/plugins/sticky-add-to-cart-bar-for-wc/inc/Pages/Dashboard.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: add to cart, boost sales, sticky add to cart, woocommerce, woocommerce sticky bar
sticky-add-to-cart-bar-for-wc/addonsplus-wsc.php 69% from 13 tests
The main PHP script in "Sticky Add To Cart Bar For WooCommerce" version 1.4.6 is automatically included on every request by WordPress
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "4.8")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sticky-add-to-cart-bar-for-wc.php" instead of "addonsplus-wsc.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: The description should be shorter than 140 characters (currently 213 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,354 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 223 | 260 | 1,622 |
Sass | 9 | 69 | 8 | 657 |
JavaScript | 3 | 16 | 7 | 71 |
CSS | 3 | 3 | 7 | 3 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 1 | 7.14% |
Methods | 61 | |
▷ Static methods | 8 | 13.11% |
▷ Public methods | 59 | 96.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.28% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 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 |
assets/scripts/images/ui-icons_2e83ff_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
assets/scripts/images/ui-bg_glass_75_dadada_1x400.png | 0.32KB | 0.16KB | ▼ 50.46% |
assets/scripts/images/ui-bg_glass_65_ffffff_1x400.png | 0.26KB | 0.09KB | ▼ 66.79% |
assets/scripts/images/ui-icons_888888_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |
assets/scripts/images/ui-bg_glass_95_fef1ec_1x400.png | 0.38KB | 0.15KB | ▼ 61.54% |