89% woo-multistep-checkout

Code Review | MultiStep Checkout for WooCommerce

WordPress plugin MultiStep Checkout for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: woo-multistep-che...
  • Plugin version: 2.2.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 4, 2017
  • Latest release: Oct 17, 2023
  • Number of updates: 95
  • Update frequency: every 22.9 days
  • Top authors: ThemeHigh (100%)

Code review

54 tests

User reviews

38 reviews

Install metrics

4,000+ active /78,072 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
This plugin's installer ran successfully

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

Server-side resources used by MultiStep Checkout for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.82 ▼2.34
Dashboard /wp-admin3.31 ▼0.0442.86 ▼18.92
Posts /wp-admin/edit.php3.36 ▲0.0043.05 ▼4.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.32 ▼8.16
Media Library /wp-admin/upload.php3.23 ▲0.0038.81 ▲5.47

Server storage [IO: ▲0.47MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for MultiStep Checkout for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.39 ▲0.011.54 ▼0.2140.66 ▲1.59
Dashboard /wp-admin2,195 ▲155.62 ▼0.0489.09 ▲3.2638.41 ▼2.79
Posts /wp-admin/edit.php2,103 ▲62.01 ▲0.0238.79 ▲1.2634.75 ▼3.23
Add New Post /wp-admin/post-new.php1,526 ▼022.91 ▼0.15660.91 ▼4.1757.87 ▼0.68
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.04103.07 ▲1.2546.09 ▲1.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
You can look at the official readme.txt

woo-multistep-checkout/woo-multistep-checkout.php 85% from 13 tests

The entry point to "MultiStep Checkout for WooCommerce" version 2.2.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.3" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin5,106 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP3345792,188
CSS259942,091
JavaScript28810563
SVG3500264

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.52
Average class complexity140.50
▷ Minimum class complexity16.00
▷ Maximum class complexity265.00
Average method complexity6.17
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods54
▷ Static methods11.85%
▷ Public methods5092.59%
▷ Protected methods00.00%
▷ Private methods47.41%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.16MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/help.png0.30KB0.32KB0.00%
assets/images/review-left.png8.22KB4.15KB▼ 49.47%
assets/images/accordion.png2.92KB1.73KB▼ 40.88%
assets/images/horizontal_box.png1.40KB0.47KB▼ 66.09%
assets/css/upgrade-btn.png7.61KB2.20KB▼ 71.09%