90% wp-multi-step-checkout

Code Review | Multi-Step Checkout for WooCommerce

WordPress plugin Multi-Step Checkout for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wp-multi-step-che...
  • Plugin version: 2.26
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 2, 2017
  • Latest release: Oct 16, 2023
  • Number of updates: 76
  • Update frequency: every 28.6 days
  • Top authors: diana_burduja (100%)

Code review

54 tests

User reviews

48 reviews

Install metrics

10,000+ active /343,210 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼11.41ms] Passed 4 tests

A check of server-side resources used by Multi-Step Checkout for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.35 ▼10.12
Dashboard /wp-admin3.34 ▼0.0143.42 ▼13.57
Posts /wp-admin/edit.php3.39 ▲0.0349.06 ▼0.44
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.52 ▼18.62
Media Library /wp-admin/upload.php3.27 ▲0.0333.68 ▼3.34

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Multi-Step Checkout for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4814.40 ▲0.051.56 ▼0.5841.25 ▼7.09
Dashboard /wp-admin2,200 ▲235.47 ▼0.0985.10 ▼8.2638.21 ▼4.87
Posts /wp-admin/edit.php2,106 ▲62.03 ▲0.0137.05 ▼1.3133.68 ▲0.97
Add New Post /wp-admin/post-new.php1,542 ▲1423.85 ▲0.74670.55 ▼19.0957.03 ▼8.19
Media Library /wp-admin/upload.php1,408 ▲84.21 ▼0.0094.61 ▼11.8244.48 ▼0.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
No output text or server-side errors detected on direct access of PHP files

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: woocommerce, checkout, multistep checkout, shop checkout, checkout wizard...

wp-multi-step-checkout/wp-multi-step-checkout.php 92% from 13 tests

The main PHP script in "Multi-Step Checkout for WooCommerce" version 2.26 is automatically included on every request by WordPress
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "3.0.0")

Code Analysis Passed 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 plugin2,911 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP134736821,895
CSS4506425
JavaScript45227250
PO File38192235
SVG222106

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity31.57
▷ Minimum class complexity1.00
▷ Maximum class complexity99.00
Average method complexity4.04
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes214.29%
Methods142
▷ Static methods6847.89%
▷ Public methods142100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions34
▷ Named functions3294.12%
▷ Anonymous functions25.88%
Constants8
▷ Global constants8100.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
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/rating.png7.61KB5.24KB▼ 31.18%
trunk/assets/images/discount.png9.75KB5.13KB▼ 47.33%
trunk/assets/images/rating.png7.61KB5.24KB▼ 31.18%
assets/images/discount.png9.75KB5.13KB▼ 47.33%
assets/images/silkypress_logo.png0.84KB0.64KB▼ 24.19%