89% multistep-checkout-for-woocommerce-by-codeixer

Code Review | Multistep Checkout for Woocommerce

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

About plugin

  • Plugin page: multistep-checkou...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.1
  • WordPress version: 6.3.1
  • First release: Dec 15, 2018
  • Latest release: Dec 15, 2018
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: im_niloy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /982 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.44ms] Passed 4 tests

This is a short check of server-side resources used by Multistep Checkout for Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.58 ▼6.47
Dashboard /wp-admin3.32 ▼0.0347.61 ▼13.35
Posts /wp-admin/edit.php3.37 ▲0.0147.55 ▲1.65
Add New Post /wp-admin/post-new.php5.90 ▲0.01100.47 ▲0.41
Media Library /wp-admin/upload.php3.24 ▲0.0145.51 ▲13.67

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Multistep Checkout for Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲3913.25 ▼1.501.76 ▼0.4237.02 ▼6.19
Dashboard /wp-admin2,216 ▲255.05 ▼0.76104.64 ▼6.7342.55 ▼8.61
Posts /wp-admin/edit.php2,099 ▲72.01 ▼0.0540.29 ▼1.9936.56 ▲4.14
Add New Post /wp-admin/post-new.php1,402 ▼11718.24 ▼4.86689.75 ▲66.4657.45 ▲0.46
Media Library /wp-admin/upload.php1,401 ▲104.15 ▼0.10229.08 ▲130.4192.78 ▲48.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
No output text or server-side errors detected on direct access of PHP files

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: woocommerce multistep checkout, multistep checkout for woocommerce, multistep checkout

multistep-checkout-for-woocommerce-by-codeixer/woocommerce-multistep-checkout.php 85% from 13 tests

The main PHP script in "Multistep Checkout for Woocommerce" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("multistep-checkout-for-woocommerce-by-codeixer.php" instead of "woocommerce-multistep-checkout.php")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,653 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8266302758
JavaScript27990570
CSS2887325

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity35.50
▷ Minimum class complexity3.00
▷ Maximum class complexity68.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin