78% user-registration-using-contact-form-7

Code Review | User Registration Using Contact Form 7

WordPress plugin User Registration Using Contact Form 7 scored 78% from 54 tests.

About plugin

  • Plugin page: user-registration...
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Oct 16, 2020
  • Latest release: Aug 11, 2023
  • Number of updates: 10
  • Update frequency: every 103.6 days
  • Top authors: zealopensource (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active / 4,989 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by User Registration Using Contact Form 7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.08 ▼10.60
Dashboard /wp-admin3.31 ▲0.0043.94 ▼4.85
Posts /wp-admin/edit.php3.36 ▲0.0044.28 ▼0.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.56 ▼11.88
Media Library /wp-admin/upload.php3.23 ▲0.0036.02 ▲1.90
Settings /wp-admin/edit.php?post_type=zuserreg_data&page=zurcf7_settings3.0123.56
All Registered Users /wp-admin/edit.php?post_type=zuserreg_data3.0425.30

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

User Registration Using Contact Form 7: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.25 ▼1.041.66 ▼1.0138.80 ▼4.62
Dashboard /wp-admin2,203 ▲126.01 ▲0.1998.52 ▼1.6738.57 ▼5.76
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0437.02 ▲1.8731.79 ▼4.41
Add New Post /wp-admin/post-new.php1,514 ▼617.78 ▼5.76633.47 ▼72.9656.28 ▼11.58
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0794.26 ▼7.9741.74 ▼2.22
Settings /wp-admin/edit.php?post_type=zuserreg_data&page=zurcf7_settings280.440.084.06
All Registered Users /wp-admin/edit.php?post_type=zuserreg_data280.440.083.82

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/user-registration-using-contact-form-7/inc/admin/template/zurcf7.form.settings.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/edit.php?post_type=zuserreg_data&page=zurcf7_settings
    • > Network (severe)
    wp-admin/edit.php?post_type=zuserreg_data&page=zurcf7_settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/edit.php?post_type=zuserreg_data
    • > Network (severe)
    wp-admin/edit.php?post_type=zuserreg_data - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: user login cf7, wordpress, cf7 user registration, user login, reset password...

user-registration-using-contact-form-7/user-registration-cf7.php 85% from 13 tests

The primary PHP file in "User Registration Using Contact Form 7" version 1.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("user-registration-using-contact-form-7.php" instead of "user-registration-cf7.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,261 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP11261513767
CSS2610313
JavaScript4308181

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity11.62
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods33
▷ Static methods13.03%
▷ Public methods33100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions114.29%
▷ Anonymous functions685.71%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected