84% contact-form-7-multi-step-addon

Code Review | Contact Form 7 Multi-Step Addon

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

About plugin

  • Plugin page: contact-form-7-mu...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.2
  • WordPress version: 6.3.1
  • First release: Dec 24, 2018
  • Latest release: Aug 18, 2019
  • Number of updates: 5
  • Update frequency: every 48.4 days
  • Top authors: themerex (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

800+ active /7,474 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Contact Form 7 Multi-Step Addon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.48 ▼0.56
Dashboard /wp-admin3.32 ▼0.0345.23 ▼14.27
Posts /wp-admin/edit.php3.37 ▲0.0152.10 ▲2.30
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.45 ▼23.87
Media Library /wp-admin/upload.php3.24 ▲0.0134.31 ▼7.72

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Contact Form 7 Multi-Step Addon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.371.97 ▲0.2441.59 ▲1.21
Dashboard /wp-admin2,206 ▲175.85 ▲0.9099.26 ▼18.3239.52 ▼5.27
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0240.91 ▲0.1236.34 ▲0.24
Add New Post /wp-admin/post-new.php1,533 ▲1923.00 ▲5.46652.17 ▲30.3761.86 ▲12.05
Media Library /wp-admin/upload.php1,382 ▼64.19 ▲0.0296.39 ▼2.8142.22 ▼0.55

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/contact-form-7-multi-step-addon/templates/admin/shortcode-generator.php:61
    • > PHP Notice
      Undefined index: id in wp-content/plugins/contact-form-7-multi-step-addon/templates/admin/shortcode-generator.php on line 5

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: step, next previous buttons, contact, store form, contact form 7...

contact-form-7-multi-step-addon/trx-contact-form-7-multi-step-addon.php 85% from 13 tests

This is the main PHP file of "Contact Form 7 Multi-Step Addon" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Name the main plugin file the same as the plugin slug ("contact-form-7-multi-step-addon.php" instead of "trx-contact-form-7-multi-step-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected909 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP4114141436
Sass1110145
JavaScript2348144
CSS246136
PO File1151648

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity15.50
▷ Minimum class complexity6.00
▷ Maximum class complexity25.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2392.00%
▷ Protected methods00.00%
▷ Private methods28.00%
Functions7
▷ Named functions571.43%
▷ Anonymous functions228.57%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin