78% checkoutwc-lite

Code Review | WooCommerce Checkout by CheckoutWC - Custom Checkout Templates, Reduce Cart Abandonment and Increase Conversions

WordPress plugin WooCommerce Checkout by CheckoutWC - Custom Checkout Templates, Reduce Cart Abandonment and Increase Conversions scored78%from 54 tests.

About plugin

  • Plugin page: checkoutwc-lite
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 16, 2022
  • Latest release: Aug 14, 2023
  • Number of updates: 31
  • Update frequency: every 8.8 days
  • Top authors: clifgriffin (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

800+ active /5,477 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by WooCommerce Checkout by CheckoutWC - Custom Checkout Templates, Reduce Cart Abandonment and Increase Conversions
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0234.64 ▼2.78
Dashboard /wp-admin3.33 ▼0.0247.57 ▼19.05
Posts /wp-admin/edit.php3.38 ▲0.0248.05 ▲4.28
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.31 ▼8.41
Media Library /wp-admin/upload.php3.25 ▲0.0236.08 ▲1.00

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Checkout by CheckoutWC - Custom Checkout Templates, Reduce Cart Abandonment and Increase Conversions
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.30 ▼0.061.59 ▲0.1040.08 ▼1.20
Dashboard /wp-admin2,198 ▲215.55 ▲0.0181.26 ▼4.0541.85 ▼2.54
Posts /wp-admin/edit.php2,107 ▲72.01 ▲0.0139.71 ▲6.0336.12 ▲3.33
Add New Post /wp-admin/post-new.php1,539 ▲223.29 ▲5.03664.26 ▲62.4352.70 ▼9.79
Media Library /wp-admin/upload.php1,406 ▲34.21 ▲0.00112.17 ▲12.9948.69 ▲1.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/checkoutwc-lite/vendor/smartystreets/phpsdk/examples/UsStreetMultipleAddressesExample.php
    • > /wp-content/plugins/checkoutwc-lite/vendor/smartystreets/phpsdk/examples/UsZIPCodeMultipleLookupsExample.php
    • > /wp-content/plugins/checkoutwc-lite/vendor/smartystreets/phpsdk/examples/USStreetLookupsWithMatchStrategyExamples.php
    • > /wp-content/plugins/checkoutwc-lite/vendor/smartystreets/phpsdk/examples/UsZIPCodeSingleLookupExample.php
    • > /wp-content/plugins/checkoutwc-lite/vendor/smartystreets/phpsdk/examples/UsStreetSingleAddressExample.php
  • 260× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/checkoutwc-lite/vendor/smartystreets/phpsdk/tests/US_ZIPCode/ClientTest.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Objectiv\\Plugins\\Checkout\\Admin\\Pages\\PageAbstract' not found in wp-content/plugins/checkoutwc-lite/includes/Admin/Pages/Appearance.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Objectiv\\Plugins\\Checkout\\Compatibility\\CompatibilityAbstract' not found in wp-content/plugins/checkoutwc-lite/includes/Compatibility/Plugins/WooCommerceAdvancedMessages.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Objectiv\\Plugins\\Checkout\\Compatibility\\CompatibilityAbstract' not found in wp-content/plugins/checkoutwc-lite/includes/Compatibility/Plugins/CartFlows.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/checkoutwc-lite/vendor/smartystreets/phpsdk/tests/International_Street/LookupTest.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/checkoutwc-lite/vendor/smartystreets/phpsdk/tests/US_Extract/ResultTest.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Objectiv\\Plugins\\Checkout\\SingletonAbstract' not found in wp-content/plugins/checkoutwc-lite/includes/FormFieldAugmenter.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Objectiv\\Plugins\\Checkout\\Compatibility\\CompatibilityAbstract' not found in wp-content/plugins/checkoutwc-lite/includes/Compatibility/Themes/Genesis.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Objectiv\\Plugins\\Checkout\\Compatibility\\CompatibilityAbstract' not found in wp-content/plugins/checkoutwc-lite/includes/Compatibility/Themes/BeTheme.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Objectiv\\Plugins\\Checkout\\Compatibility\\CompatibilityAbstract' not found in wp-content/plugins/checkoutwc-lite/includes/Compatibility/Themes/JupiterX.php:7

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 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
8 plugin tags: shopify, woo checkout, multi step checkout, woocommerce checkout template, woocommerce checkout theme...

checkoutwc-lite/checkout-for-woocommerce.php 85% from 13 tests

"WooCommerce Checkout by CheckoutWC - Custom Checkout Templates, Reduce Cart Abandonment and Increase Conversions" version 1.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("checkoutwc-lite.php" instead of "checkout-for-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin59,302 lines of code in 680 files:
LanguageFilesBlank linesComment linesLines of code
JSON120020,799
PHP3644,8954,86718,969
PO File3910,55726,7188,024
TypeScript1141,1968284,785
Sass112780604,469
CSS64401711,670
JavaScript141315286
Markdown3400178
XML37370
SVG101030
YAML10013
make1426
Dockerfile1003

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity4.31
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity1.66
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces39
Interfaces8
Traits0
Classes332
▷ Abstract classes72.11%
▷ Concrete classes32597.89%
▷ Final classes00.00%
Methods1,633
▷ Static methods563.43%
▷ Public methods1,56595.84%
▷ Protected methods160.98%
▷ Private methods523.18%
Functions188
▷ Named functions12566.49%
▷ Anonymous functions6333.51%
Constants49
▷ Global constants2142.86%
▷ Class constants2857.14%
▷ Public constants28100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.22MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/flags.png23.45KB23.45KB0.00%
assets/images/amazon-pay.png16.69KB2.40KB▼ 85.63%
templates/default/screenshot.png120.01KB118.60KB▼ 1.18%
assets/images/flags@2x.png66.35KB66.34KB0.01%