Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼10.53ms] Passed 4 tests
An overview of server-side resources used by Simple Sticky Add To Cart For WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 32.87 ▼20.78 |
Dashboard /wp-admin | 3.35 ▲0.00 | 51.24 ▼9.33 |
Posts /wp-admin/edit.php | 3.47 ▲0.10 | 47.57 ▲4.84 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.72 ▼16.86 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.35 ▲7.63 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Sticky Add To Cart For WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲53 | 14.67 ▲0.51 | 1.69 ▼0.06 | 37.14 ▼6.75 |
Dashboard /wp-admin | 2,205 ▲25 | 5.51 ▼0.14 | 91.15 ▼2.87 | 40.74 ▼2.70 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.03 ▲0.06 | 40.84 ▼0.07 | 39.79 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,536 ▼8 | 23.17 ▼2.14 | 678.53 ▼2.95 | 53.97 ▼22.32 |
Media Library /wp-admin/upload.php | 1,413 ▲10 | 4.18 ▼0.03 | 98.43 ▼2.30 | 43.35 ▼0.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sticky-add-to-cart-woo/public/partials/wsatc-public-display.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/sticky-add-to-cart-woo/admin/partials/wsatc-admin-analytics-counter.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_product() in wp-content/plugins/sticky-add-to-cart-woo/public/partials/wsatc-custom-css.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sticky-add-to-cart-woo/admin/reports/class-wsatc-analytics.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/sticky-add-to-cart-woo/admin/partials/wsatc-admin-analytics-display.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/sticky-add-to-cart-woo/admin/partials/wsatc-size-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/sticky-add-to-cart-woo/admin/partials/wsatc-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/sticky-add-to-cart-woo/admin/partials/wsatc-setting-tabs.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function solbox_wsatc_feedback\\is_admin() in wp-content/plugins/sticky-add-to-cart-woo/lib/solbox-plugin-deactivation-survey/deactivate-feedback-form.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: sticky add to cart, stick bar for woocommerce, woocommerce sticky bar, woocommerce upsells, woocommerce
sticky-add-to-cart-woo/woo-sticky-add-to-cart.php 77% from 13 tests
The main PHP file in "Simple Sticky Add To Cart For WooCommerce" ver. 1.4.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 281 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sticky-add-to-cart-woo.php" instead of "woo-sticky-add-to-cart.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected3,668 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 280 | 871 | 1,923 |
Sass | 2 | 113 | 0 | 662 |
JavaScript | 8 | 86 | 128 | 549 |
CSS | 7 | 103 | 47 | 453 |
JSON | 1 | 0 | 0 | 48 |
SVG | 2 | 0 | 1 | 17 |
Markdown | 1 | 10 | 0 | 16 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 17.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 3 | 5.45% |
▷ Public methods | 49 | 89.09% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.91% |
Functions | 16 | |
▷ Named functions | 14 | 87.50% |
▷ Anonymous functions | 2 | 12.50% |
Constants | 6 | |
▷ Global constants | 6 | 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
5 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/ctr-icon.png | 3.48KB | 2.39KB | ▼ 31.32% |
assets/img/analytics-image.png | 36.91KB | 15.40KB | ▼ 58.28% |
assets/img/views-icon.png | 2.98KB | 1.93KB | ▼ 35.02% |
assets/img/clicks-icon.png | 2.92KB | 1.80KB | ▼ 38.31% |
assets/img/ui-icons.png | 6.84KB | 4.18KB | ▼ 38.90% |