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.00MB] [CPU: ▼4.07ms] Passed 4 tests
Server-side resources used by One Click Upsell Funnel for WooCommerce - Post-Purchase Upsell & Cross-Sell Offers, Boost Sales & Increase Profits
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.65 ▼9.12 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.35 ▼3.66 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.67 ▲2.80 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.21 ▼6.31 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.39 ▲4.45 |
Server storage [IO: ▲10.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 110 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for One Click Upsell Funnel for WooCommerce - Post-Purchase Upsell & Cross-Sell Offers, Boost Sales & Increase Profits
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲18 | 14.74 ▲0.06 | 1.78 ▼0.31 | 43.68 ▼1.03 |
Dashboard /wp-admin | 2,195 ▲20 | 5.64 ▼0.05 | 90.41 ▼18.11 | 38.96 ▼4.10 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.07 | 40.13 ▲2.11 | 38.07 ▲4.89 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.18 ▲0.20 | 592.89 ▼83.85 | 52.17 ▼11.08 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.27 ▲0.06 | 95.88 ▼3.08 | 44.06 ▲3.42 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/woo-one-click-upsell-funnel/page-builders/elementor/elementor-widget/assets/widgets/class-upsell-desc.php:32
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/woo-one-click-upsell-funnel/page-builders/elementor/elementor-widget/assets/widgets/class-upsell-short-desc.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/woo-one-click-upsell-funnel/admin/partials/templates/wps-wocuf-pro-template.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/woo-one-click-upsell-funnel/extra-templates/wpswings-onboarding-template-display.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: upsell, post-purchase offers, cross-sell, related products, boost sales...
woo-one-click-upsell-funnel/woocommerce-one-click-upsell-funnel.php 85% from 13 tests
The main file in "One Click Upsell Funnel for WooCommerce - Post-Purchase Upsell & Cross-Sell Offers, Boost Sales & Increase Profits" v. 3.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 380 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-one-click-upsell-funnel.php" instead of "woocommerce-one-click-upsell-funnel.php")
Code Analysis 97% from 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
No dangerous file extensions were detected15,172 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 3,691 | 3,730 | 10,912 |
CSS | 6 | 218 | 118 | 2,677 |
PO File | 1 | 467 | 813 | 1,070 |
JavaScript | 10 | 181 | 90 | 505 |
SVG | 5 | 0 | 0 | 5 |
JSON | 3 | 0 | 0 | 3 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 38.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 625.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 1 | 3.85% |
Methods | 274 | |
▷ Static methods | 7 | 2.55% |
▷ Public methods | 229 | 83.58% |
▷ Protected methods | 34 | 12.41% |
▷ Private methods | 11 | 4.01% |
Functions | 40 | |
▷ Named functions | 37 | 92.50% |
▷ Anonymous functions | 3 | 7.50% |
Constants | 10 | |
▷ Global constants | 6 | 60.00% |
▷ Class constants | 4 | 40.00% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
27 PNG files occupy 8.74MB with 4.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/resources/offer-previews/offer-template-six.png | 771.96KB | 291.36KB | ▼ 62.26% |
admin/resources/offer-previews/divi/offer-template-one.png | 290.05KB | 109.42KB | ▼ 62.28% |
admin/resources/icons/video.png | 0.41KB | 0.25KB | ▼ 39.48% |
admin/resources/offer-previews/offer-template-three.png | 328.87KB | 366.83KB | 0.00% |
admin/resources/offer-thumbnails/divi/offer-template-three.png | 77.30KB | 19.90KB | ▼ 74.26% |