80% checkout-upsell-funnel-for-woo

Code Review | Checkout Upsell Funnel for WooCommerce

WordPress plugin Checkout Upsell Funnel for WooCommerce scored80%from 54 tests.

About plugin

  • Plugin page: checkout-upsell-f...
  • Plugin version: 1.0.10
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 27, 2021
  • Latest release: Sep 13, 2023
  • Number of updates: 23
  • Update frequency: every 38.0 days
  • Top authors: mytrinh (78.26%)villatheme (26.09%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /6,006 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.32ms] Passed 4 tests

Server-side resources used by Checkout Upsell Funnel for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.90 ▼4.12
Dashboard /wp-admin3.31 ▼0.0345.98 ▼11.12
Posts /wp-admin/edit.php3.43 ▲0.0748.31 ▲1.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.90 ▲6.05
Media Library /wp-admin/upload.php3.24 ▲0.0135.60 ▲0.06

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 122 new files
Database: 1 new table, 6 new options
New tables
wp_vi_wcuf_order_info
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checkout Upsell Funnel for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5114.69 ▲0.331.67 ▼0.1941.30 ▲0.10
Dashboard /wp-admin2,206 ▲265.61 ▼0.0683.14 ▼4.6340.60 ▼0.45
Posts /wp-admin/edit.php2,109 ▲91.98 ▼0.0340.50 ▲4.2238.47 ▼4.02
Add New Post /wp-admin/post-new.php1,536 ▲523.40 ▲0.23591.88 ▼111.4163.10 ▲9.64
Media Library /wp-admin/upload.php1,405 ▲84.19 ▼0.0099.68 ▲3.6741.62 ▼4.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_vi_wcuf_order_info
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: order bump, woocommerce, upsell funnel, checkout upsell funnel for woo

checkout-upsell-funnel-for-woo/checkout-upsell-funnel-for-woo.php Passed 13 tests

This is the main PHP file of "Checkout Upsell Funnel for WooCommerce" version 1.0.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
126 characters long description:
Checkout Upsell Funnel For Woo displays product suggestion and smart order bump on checkout page with the attractive discounts

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin21,773 lines of code in 86 files:
LanguageFilesBlank linesComment linesLines of code
PHP253681959,001
JavaScript211,2163907,414
SVG83243,368
CSS322961621,990

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 115)
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity66.84
▷ Minimum class complexity2.00
▷ Maximum class complexity279.00
Average method complexity8.10
▷ Minimum method complexity1.00
▷ Maximum method complexity115.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods175
▷ Static methods4123.43%
▷ Public methods16292.57%
▷ Protected methods21.14%
▷ Private methods116.29%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/minicolors.png67.02KB34.31KB▼ 48.80%