83% multistep-checkout-for-woocommerce

Code Review | Multistep Checkout for Woocommerce

WordPress plugin Multistep Checkout for Woocommerce scored83%from 54 tests.

About plugin

  • Plugin page: multistep-checkou...
  • Plugin version: 2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-5.3
  • WordPress version: 6.3.1
  • First release: Sep 1, 2016
  • Latest release: Jan 24, 2020
  • Number of updates: 114
  • Update frequency: every 10.9 days
  • Top authors: phoeniixx (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /7,810 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.38ms] Passed 4 tests

An overview of server-side resources used by Multistep Checkout for Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.22 ▼6.35
Dashboard /wp-admin3.33 ▲0.0341.76 ▼4.97
Posts /wp-admin/edit.php3.39 ▲0.0348.70 ▲2.59
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.10 ▼4.77
Media Library /wp-admin/upload.php3.26 ▲0.0337.37 ▲5.00

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Multistep Checkout for Woocommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.14 ▼1.454.47 ▲2.7742.45 ▼6.31
Dashboard /wp-admin2,208 ▲204.88 ▲0.0598.44 ▼5.4840.94 ▼3.32
Posts /wp-admin/edit.php2,097 ▲262.03 ▲0.0440.95 ▲5.5939.10 ▲6.06
Add New Post /wp-admin/post-new.php1,417 ▼9722.26 ▲4.63555.76 ▼133.0747.00 ▼5.53
Media Library /wp-admin/upload.php1,393 ▲54.17 ▼0.0798.91 ▼10.7138.32 ▼11.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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

SRP 50% from 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
Please fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/multistep-checkout-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
    • > PHP Parse error
      syntax error, unexpected 'endif' (T_ENDIF) in wp-content/plugins/multistep-checkout-for-woocommerce/woocommerce/checkout/form-checkout.php on line 261
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/multistep-checkout-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/multistep-checkout-for-woocommerce/libs/tgm/class-tgm-plugin-activation.php:2109

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (23 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

multistep-checkout-for-woocommerce/phoen_multi_step_checkout.php 77% from 13 tests

The main file in "Multistep Checkout for Woocommerce" v. 2.9 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:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "2.6.0")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("multistep-checkout-for-woocommerce.php" instead of "phoen_multi_step_checkout.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2,942 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP78181,6712,863
JavaScript269479

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity48.14
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods101
▷ Static methods54.95%
▷ Public methods7877.23%
▷ Protected methods2322.77%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.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
23 PNG files occupy 0.53MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/button2.png3.58KB2.59KB▼ 27.61%
assets/images/Style1.png33.67KB9.92KB▼ 70.55%
assets/images/naviagtion buttons.png24.39KB7.70KB▼ 68.44%
assets/images/Style-7.png34.03KB10.71KB▼ 68.53%
assets/images/Style-8.png30.09KB9.30KB▼ 69.10%