83% woo-one-click-upsell-funnel

Code Review | One Click Upsell Funnel for WooCommerce - Post-Purchase Upsell & Cross-Sell Offers, Boost Sales & Increase Profits

WordPress plugin One Click Upsell Funnel for WooCommerce - Post-Purchase Upsell & Cross-Sell Offers, Boost Sales & Increase Profits scored83%from 54 tests.

About plugin

  • Plugin page: woo-one-click-ups...
  • Plugin version: 3.4.1
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Dec 26, 2017
  • Latest release: Nov 29, 2023
  • Number of updates: 73
  • Update frequency: every 29.7 days
  • Top authors: makewebbetter (71.23%)wpswings (30.14%)

Code review

54 tests

User reviews

89 reviews

Install metrics

1,000+ active /56,140 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.65 ▼9.12
Dashboard /wp-admin3.31 ▲0.0048.35 ▼3.66
Posts /wp-admin/edit.php3.36 ▲0.0049.67 ▲2.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.21 ▼6.31
Media Library /wp-admin/upload.php3.23 ▲0.0037.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲1814.74 ▲0.061.78 ▼0.3143.68 ▼1.03
Dashboard /wp-admin2,195 ▲205.64 ▼0.0590.41 ▼18.1138.96 ▼4.10
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0740.13 ▲2.1138.07 ▲4.89
Add New Post /wp-admin/post-new.php1,530 ▲423.18 ▲0.20592.89 ▼83.8552.17 ▼11.08
Media Library /wp-admin/upload.php1,403 ▼04.27 ▲0.0695.88 ▼3.0844.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP423,6913,73010,912
CSS62181182,677
PO File14678131,070
JavaScript1018190505
SVG5005
JSON3003

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 code0.42
Average class complexity38.65
▷ Minimum class complexity1.00
▷ Maximum class complexity625.00
Average method complexity4.54
▷ Minimum method complexity1.00
▷ Maximum method complexity102.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes13.85%
Methods274
▷ Static methods72.55%
▷ Public methods22983.58%
▷ Protected methods3412.41%
▷ Private methods114.01%
Functions40
▷ Named functions3792.50%
▷ Anonymous functions37.50%
Constants10
▷ Global constants660.00%
▷ Class constants440.00%
▷ Public constants4100.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
FileSize - originalSize - compressedSavings
admin/resources/offer-previews/offer-template-six.png771.96KB291.36KB▼ 62.26%
admin/resources/offer-previews/divi/offer-template-one.png290.05KB109.42KB▼ 62.28%
admin/resources/icons/video.png0.41KB0.25KB▼ 39.48%
admin/resources/offer-previews/offer-template-three.png328.87KB366.83KB0.00%
admin/resources/offer-thumbnails/divi/offer-template-three.png77.30KB19.90KB▼ 74.26%