73% multi-step-form

Code Review | Multi Step Form

WordPress plugin Multi Step Form scored73%from 54 tests.

About plugin

  • Plugin page: multi-step-form
  • Plugin version: 1.7.11
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 7, 2016
  • Latest release: Aug 31, 2023
  • Number of updates: 117
  • Update frequency: every 21.0 days
  • Top authors: mondula2016 (100%)

Code review

54 tests

User reviews

36 reviews

Install metrics

10,000+ active /264,234 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.60MB] [CPU: ▲4.05ms] Passed 4 tests

Server-side resources used by Multi Step Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5539.27 ▼3.12
Dashboard /wp-admin3.93 ▲0.6251.83 ▲4.60
Posts /wp-admin/edit.php4.04 ▲0.6854.61 ▲7.99
Add New Post /wp-admin/post-new.php6.50 ▲0.6195.42 ▲6.71
Media Library /wp-admin/upload.php3.82 ▲0.6043.76 ▲11.75
Add New /wp-admin/admin.php?page=mondula-multistep-forms&edit3.8842.15
Settings /wp-admin/admin.php?page=mondula_form_wizard_settings3.8237.55
Forms /wp-admin/admin.php?page=mondula-multistep-forms3.8239.57
Troubleshooting /wp-admin/admin.php?page=mondula-multistep-forms-ts3.8337.79

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 57 new files
Database: 1 new table, 11 new options
New tables
wp_mondula_form_wizards
New WordPress options
fw_settings_email
widget_recent-comments
theysaidso_admin_options
fw_settings_styling
can_compress_scripts
widget_theysaidso_widget
mondula_form_wizard_version
widget_recent-posts
fw_settings_plus
db_upgraded
...

Browser metrics Passed 4 tests

A check of browser resources used by Multi Step Form
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,010 ▲25314.94 ▲0.541.94 ▲0.0838.37 ▼14.23
Dashboard /wp-admin2,394 ▲2066.62 ▲0.80136.32 ▲20.3747.99 ▲4.54
Posts /wp-admin/edit.php2,298 ▲2063.64 ▲1.6257.79 ▲22.8333.37 ▼1.56
Add New Post /wp-admin/post-new.php6,394 ▲4,86128.12 ▲5.03894.34 ▲214.5539.54 ▼15.55
Media Library /wp-admin/upload.php1,436 ▲514.43 ▲0.2582.00 ▼20.9946.63 ▼2.09
Add New /wp-admin/admin.php?page=mondula-multistep-forms&edit1,7684.9388.6941.35
Settings /wp-admin/admin.php?page=mondula_form_wizard_settings1,6823.9488.8826.83
Forms /wp-admin/admin.php?page=mondula-multistep-forms1,1283.2243.4383.26
Troubleshooting /wp-admin/admin.php?page=mondula-multistep-forms-ts1,0953.3541.6522.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_mondula_form_wizards
  • Zombie WordPress options were found after uninstall: 11 options
    • widget_recent-posts
    • theysaidso_admin_options
    • fw_settings_styling
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • mondula_form_wizard_version
    • db_upgraded
    • fw_settings_captcha
    • fw_settings_email
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: classes in wp-content/plugins/multi-step-form/includes/lib/partials/form.php on line 1
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/multi-step-form/includes/admin/msf-list-table.class.php on line 5
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/multi-step-form/includes/admin/msf-list-table.class.php on line 5
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/multi-step-form/includes/admin/msf-list-table.class.php on line 5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/multi-step-form/includes/lib/partials/form.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (The backend's structure is simple. Even less technical users can quickly understand the plugin and start creating forms.), #2 (Use our customizable and animated progress bar to guide your users through your forms. Change the colors to match your CI.)
The official readme.txt might help

multi-step-form/mondula-form-wizard.php 92% from 13 tests

The primary PHP file in "Multi Step Form" version 1.7.11 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("multi-step-form.php" instead of "mondula-form-wizard.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin7,345 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP365056713,287
SVG1002,671
CSS4251,334
JavaScript4114653

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity11.92
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes24
▷ Abstract classes14.17%
▷ Concrete classes2395.83%
▷ Final classes00.00%
Methods207
▷ Static methods4421.26%
▷ Public methods18890.82%
▷ Protected methods00.00%
▷ Private methods199.18%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/admin/assets/images/msf_plus_extension.png4.39KB4.53KB0.00%