84% cf7-multi-step

Code Review | Multi Step for Contact Form 7

WordPress plugin Multi Step for Contact Form 7 scored84%from 54 tests.

About plugin

  • Plugin page: cf7-multi-step
  • Plugin version: 2.7.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 13, 2017
  • Latest release: Sep 8, 2023
  • Number of updates: 46
  • Update frequency: every 52.1 days
  • Top authors: ninjateam (100%)

Code review

54 tests

User reviews

61 reviews

Install metrics

10,000+ active /117,935 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.23MB] [CPU: ▼4.94ms] Passed 4 tests

A check of server-side resources used by Multi Step for Contact Form 7
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2444.24 ▲0.41
Dashboard /wp-admin3.54 ▲0.2449.31 ▼2.69
Posts /wp-admin/edit.php3.65 ▲0.2950.53 ▲0.94
Add New Post /wp-admin/post-new.php6.12 ▲0.2387.52 ▼18.43
Media Library /wp-admin/upload.php3.46 ▲0.2240.42 ▲1.97

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Multi Step for Contact Form 7: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,036 ▲29013.68 ▼0.627.42 ▲5.8441.95 ▲3.16
Dashboard /wp-admin2,329 ▲1446.06 ▲1.14103.56 ▼1.9541.38 ▼3.62
Posts /wp-admin/edit.php2,091 ▲22.01 ▼0.0840.12 ▼0.2834.71 ▼1.52
Add New Post /wp-admin/post-new.php1,535 ▼223.25 ▼0.20675.74 ▼21.1952.52 ▼6.10
Media Library /wp-admin/upload.php1,419 ▲314.28 ▲0.0596.89 ▲2.2345.52 ▲3.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-multi-step/inc/admin/dashboard-widget.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-multi-step/inc/frontend/validation.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-multi-step/inc/admin/review.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-multi-step/inc/I18n.php:10

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: form, contact form 7, forms, multi-step, multistep...

cf7-multi-step/contact-form-7-multi-step.php 92% from 13 tests

The main file in "Multi Step for Contact Form 7" v. 2.7.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cf7-multi-step.php" instead of "contact-form-7-multi-step.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin4,973 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
CSS6601852,270
PHP10160631,387
PO File5260260781
JavaScript374117519
SVG20016

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity16.50
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods1777.27%
▷ Protected methods00.00%
▷ Private methods522.73%
Functions29
▷ Named functions2689.66%
▷ Anonymous functions310.34%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin