78% multipress-lite

Code Review | Multi Step Registration Form Plugin

WordPress plugin Multi Step Registration Form Plugin scored78%from 54 tests.

About plugin

  • Plugin page: multipress-lite
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.5
  • WordPress version: 6.3.1
  • First release: Sep 25, 2017
  • Latest release: Aug 8, 2018
  • Number of updates: 86
  • Update frequency: every 3.7 days
  • Top authors: Rakesh007 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,206 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.06MB] [CPU: ▼15.41ms] Passed 4 tests

Analyzing server-side resources used by Multi Step Registration Form Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2333.65 ▼6.36
Dashboard /wp-admin3.64 ▲0.3349.79 ▲1.26
Posts /wp-admin/edit.php3.70 ▲0.3456.47 ▲6.61
Add New Post /wp-admin/post-new.php4.85 ▼1.0442.95 ▼55.72
Media Library /wp-admin/upload.php3.48 ▲0.2535.76 ▼0.80
All Forms /wp-admin/edit.php?post_type=multi_step_reg3.5543.28
Add New /wp-admin/post-new.php?post_type=multi_step_reg3.5545.38

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multi Step Registration Form Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,972 ▲21514.85 ▲0.541.80 ▼0.0239.37 ▼9.21
Dashboard /wp-admin2,371 ▲1836.52 ▲1.67126.36 ▲19.0195.67 ▲49.87
Posts /wp-admin/edit.php2,297 ▲2053.44 ▲1.4255.01 ▲13.9882.30 ▲45.31
Add New Post /wp-admin/post-new.php6,336 ▲4,80324.17 ▲0.96917.16 ▲294.11157.59 ▲96.86
Media Library /wp-admin/upload.php1,442 ▲544.25 ▲0.0485.84 ▼12.0089.14 ▲46.30
All Forms /wp-admin/edit.php?post_type=multi_step_reg1,2763.3546.8374.78
Add New /wp-admin/post-new.php?post_type=multi_step_reg2,1225.45122.4581.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/multipress-lite/admin/partials/multi_step_reg-admin-display.php
    • > /wp-content/plugins/multipress-lite/public/partials/multi_step_reg-public-display.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=multi_step_reg
    • > Network (severe)
    https://witoni.com/wp-content/uploads/2018/05/wordpress.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=multi_step_reg
    • > Network (severe)
    https://witoni.com/wp-content/uploads/2018/03/30off.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=multi_step_reg
    • > Network (severe)
    https://witoni.com/wp-content/uploads/2018/03/buy-multistep-pro-banner.gif - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: multistep registration plugin, wp multistep registration, wp registration, drag drop field, registration form...

multipress-lite/multi_step_reg.php 85% from 13 tests

The primary PHP file in "Multi Step Registration Form Plugin" version 1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("multipress-lite.php" instead of "multi_step_reg.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Good job! No executable or dangerous file extensions detected9,508 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript81,9831,7516,986
CSS260571,407
PHP121546241,115

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.34
Average class complexity24.86
▷ Minimum class complexity1.00
▷ Maximum class complexity117.00
Average method complexity4.34
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods50
▷ Static methods24.00%
▷ Public methods4590.00%
▷ Protected methods00.00%
▷ Private methods510.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/bannerImage.png121.82KB40.95KB▼ 66.38%