Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/sticky-add-to-cart-for-woo/satcwoo.php+58
Use of undefined constant woocommerce - assumed 'woocommerce' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲4.36MB] [CPU: ▼288.36ms] Passed 4 tests
A check of server-side resources used by Sticky add to cart for Woo
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.99 ▲5.27 | 25.42 ▲4.31 |
Dashboard /wp-admin | 8.01 ▲4.96 | 29.27 ▼7.85 |
Posts /wp-admin/edit.php | 8.01 ▲4.90 | 24.76 ▼21.15 |
Add New Post /wp-admin/post-new.php | 8.01 ▲2.58 | 25.74 ▼1,112.00 |
Media Library /wp-admin/upload.php | 8.01 ▲5.00 | 24.22 ▼12.45 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 8.01 | 24.42 |
Sticky add to cart for woo /wp-admin/admin.php?page=sticky_add_to_cart_for_woo | 8.01 | 24.88 |
Server storage [IO: ▲3.56MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 223 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_accounts |
fs_gdpr |
fs_active_plugins |
fs_api_cache |
fs_debug_mode |
Browser metrics Passed 4 tests
An overview of browser requirements for Sticky add to cart for Woo
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,388 ▼218 | 16.07 ▲0.54 | 9.41 ▲2.52 | 10.64 ▼36.23 |
Dashboard /wp-admin | 2,961 ▲111 | 6.18 ▲0.38 | 139.83 ▲14.36 | 119.23 ▲15.32 |
Posts /wp-admin/edit.php | 2,737 ▲34 | 2.69 ▼0.01 | 68.32 ▲5.41 | 101.87 ▲19.08 |
Add New Post /wp-admin/post-new.php | 1,585 ▼68 | 18.47 ▼0.33 | 366.79 ▼4.85 | 105.19 ▼3.56 |
Media Library /wp-admin/upload.php | 1,803 ▲31 | 5.00 ▼0.01 | 145.42 ▼3.60 | 125.94 ▲6.51 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 1,465 | 2.09 | 57.46 | 81.05 |
Sticky add to cart for woo /wp-admin/admin.php?page=sticky_add_to_cart_for_woo | 1,271 | 2.17 | 54.73 | 96.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/sticky-add-to-cart-for-woo/satcwoo.php+58
Use of undefined constant woocommerce - assumed 'woocommerce' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 5 options in the database
- fs_active_plugins
- fs_api_cache
- fs_accounts
- fs_debug_mode
- fs_gdpr
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sticky_add_to_cart_for_woo
- > Warning in wp-content/plugins/sticky-add-to-cart-for-woo/satcwoo.php+58
Use of undefined constant woocommerce - assumed 'woocommerce' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sticky_add_to_cart_for_woo
- > Warning in wp-content/plugins/sticky-add-to-cart-for-woo/public/class-satcwoo-public.php+108
include(class-redirection.php): failed to open stream: No such file or directory
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sticky_add_to_cart_for_woo
- > Warning in wp-content/plugins/sticky-add-to-cart-for-woo/public/class-satcwoo-public.php+108
include(): Failed opening 'class-redirection.php' for inclusion (include_path='.:/usr/share/php')
SRP 0% 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
Please take a closer look at the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sticky-add-to-cart-for-woo/freemius/templates/ajax-loader.php
- > /wp-content/plugins/sticky-add-to-cart-for-woo/public/partials/satcwoo-public-display.php
- > /wp-content/plugins/sticky-add-to-cart-for-woo/admin/partials/satcwoo-admin-display.php
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sticky-add-to-cart-for-woo/public/class-general-display.php:2
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/sticky-add-to-cart-for-woo/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sticky-add-to-cart-for-woo/admin/class-satcwoo-admin.php:114
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sticky-add-to-cart-for-woo/public/class-style-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sticky-add-to-cart-for-woo/public/class-mobile-display.php:7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/sticky-add-to-cart-for-woo/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/sticky-add-to-cart-for-woo/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/sticky-add-to-cart-for-woo/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sticky-add-to-cart-for-woo/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sticky-add-to-cart-for-woo/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== sticky-add-to-cart-for-woo ===
) - Screenshots: These screenshots lack descriptions #3, #4 in sticky-add-to-cart-for-woo/assets to your readme.txt
- Donate link: Invalid URI found ("")
sticky-add-to-cart-for-woo/satcwoo.php 85% from 13 tests
The entry point to "Sticky add to cart for Woo" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("sticky-add-to-cart-for-woo.php" instead of "satcwoo.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin46,001 lines of code in 175 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 120 | 6,946 | 15,932 | 30,484 |
PO File | 10 | 5,710 | 6,913 | 12,558 |
Sass | 28 | 399 | 77 | 2,515 |
JavaScript | 5 | 48 | 124 | 224 |
CSS | 12 | 44 | 98 | 220 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,609)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 72.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,609.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,103 | |
▷ Static methods | 172 | 15.59% |
▷ Public methods | 767 | 69.54% |
▷ Protected methods | 15 | 1.36% |
▷ Private methods | 321 | 29.10% |
Functions | 123 | |
▷ Named functions | 123 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 120 | |
▷ Global constants | 97 | 80.83% |
▷ Class constants | 23 | 19.17% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/sticky-add-to-cart-for-woo.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |