90% multistep-checkout

Code Review | MultiStep Checkout

WordPress plugin MultiStep Checkout scored90%from 54 tests.

About plugin

  • Plugin page: multistep-checkout
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Mar 4, 2022
  • Latest release: Jul 3, 2022
  • Number of updates: 7
  • Update frequency: every 17.4 days
  • Top authors: wpxon (71.43%)stalukder03 (42.86%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /749 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
Installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼1.51ms] Passed 4 tests

Server-side resources used by MultiStep Checkout
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0949.74 ▲7.79
Dashboard /wp-admin3.59 ▲0.2853.78 ▲2.50
Posts /wp-admin/edit.php3.64 ▲0.2854.67 ▲3.33
Add New Post /wp-admin/post-new.php6.09 ▲0.1990.11 ▼15.72
Media Library /wp-admin/upload.php3.43 ▲0.2040.13 ▲3.86

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
wpx_styles
msc_installed
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
msc_version
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for MultiStep Checkout
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,044 ▲28314.98 ▲0.637.51 ▲5.4140.63 ▼3.63
Dashboard /wp-admin2,361 ▲1846.37 ▲0.79118.03 ▲30.7240.03 ▼4.05
Posts /wp-admin/edit.php2,295 ▲1953.47 ▲1.5152.68 ▲12.7434.38 ▼2.17
Add New Post /wp-admin/post-new.php1,551 ▲2523.18 ▲0.20656.89 ▼47.4637.50 ▼19.16
Media Library /wp-admin/upload.php1,435 ▲354.35 ▲0.1484.79 ▼19.6441.19 ▼7.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 9 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • msc_installed
    • db_upgraded
    • widget_theysaidso_widget
    • wpx_styles
    • widget_recent-comments
    • msc_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Frontend), #2 (Settings)
The official readme.txt is a good inspiration

multistep-checkout/multistep-checkout.php Passed 13 tests

The entry point to "MultiStep Checkout" version 1.0.1 is a PHP file that has certain tags in its header comment area
44 characters long description:
A MultiStep Checkout plugin for WooCommerce.

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
Success! There were no dangerous files found in this plugin1,210 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP172714411,063
CSS15387
JavaScript14037
JSON20023

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity17.50
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods72
▷ Static methods45.56%
▷ Public methods7198.61%
▷ Protected methods00.00%
▷ Private methods11.39%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ 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
There were not PNG files found in your plugin