84% upsell-order-bump-offer-for-woocommerce

Code Review | Upsell Order Bump Offer for WooCommerce – Increase Sales and AOV, Upsell & Cross-sell Offers on Checkout Page

WordPress plugin Upsell Order Bump Offer for WooCommerce – Increase Sales and AOV, Upsell & Cross-sell Offers on Checkout Page scored84%from 54 tests.

About plugin

  • Plugin page: upsell-order-bump...
  • Plugin version: 2.2.8
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Sep 27, 2019
  • Latest release: Nov 8, 2023
  • Number of updates: 48
  • Update frequency: every 31.3 days
  • Top authors: makewebbetter (52.08%)wpswings (50%)

Code review

54 tests

User reviews

96 reviews

Install metrics

5,000+ active /96,687 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 gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.98ms] Passed 4 tests

A check of server-side resources used by Upsell Order Bump Offer for WooCommerce – Increase Sales and AOV, Upsell & Cross-sell Offers on Checkout Page
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.15 ▼1.70
Dashboard /wp-admin3.31 ▼0.0444.01 ▼18.94
Posts /wp-admin/edit.php3.36 ▲0.0046.99 ▲0.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.46 ▼16.51
Media Library /wp-admin/upload.php3.23 ▲0.0030.69 ▼2.75

Server storage [IO: ▲3.24MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Upsell Order Bump Offer for WooCommerce – Increase Sales and AOV, Upsell & Cross-sell Offers on Checkout Page
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.34 ▼0.011.92 ▲0.2044.19 ▲0.56
Dashboard /wp-admin2,198 ▲215.62 ▼0.0586.96 ▼16.0638.44 ▼4.07
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0238.89 ▲2.5437.15 ▲2.13
Add New Post /wp-admin/post-new.php1,526 ▼023.38 ▲0.39593.77 ▼31.0950.59 ▲4.69
Media Library /wp-admin/upload.php1,403 ▲64.16 ▼0.0795.45 ▲1.5041.60 ▼0.49

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% 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 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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/upsell-order-bump-offer-for-woocommerce/extra-templates/wpswings-onboarding-template-display.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/upsell-order-bump-offer-for-woocommerce/public/partials/upsell-order-bump-offer-for-woocommerce-public-display.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/upsell-order-bump-offer-for-woocommerce/uninstall.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: order bump, sales funnels, upsell offers, cross-sell, upsell...

upsell-order-bump-offer-for-woocommerce/upsell-order-bump-offer-for-woocommerce.php 92% from 13 tests

The main PHP script in "Upsell Order Bump Offer for WooCommerce – Increase Sales and AOV, Upsell & Cross-sell Offers on Checkout Page" version 2.2.8 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 413 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin18,356 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
PHP263,0362,69510,162
CSS78651304,617
JavaScript126513382,684
PO File1368557867
SVG90019
XML1007

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity57.50
▷ Minimum class complexity1.00
▷ Maximum class complexity403.00
Average method complexity5.91
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods134
▷ Static methods75.22%
▷ Public methods12190.30%
▷ Protected methods53.73%
▷ Private methods85.97%
Functions60
▷ Named functions5795.00%
▷ Anonymous functions35.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.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
24 PNG files occupy 1.79MB with 1.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/resources/offer-templates/template-7.png86.04KB26.53KB▼ 69.16%
admin/resources/offer-templates/template-8.png92.77KB27.25KB▼ 70.62%
admin/resources/icons/multiple-order-bumps.png87.49KB24.33KB▼ 72.19%
public/partials/resources/icons/close.png11.40KB6.48KB▼ 43.21%
admin/resources/icons/customer-support.png54.02KB18.40KB▼ 65.93%