74% simple-visitor-registration-form

Code Review | Simple Visitor Registration Form

WordPress plugin Simple Visitor Registration Form scored74%from 54 tests.

About plugin

  • Plugin page: simple-visitor-re...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Sep 9, 2020
  • Latest release: Jun 5, 2021
  • Number of updates: 6
  • Update frequency: every 44.8 days
  • Top authors: nicklarosa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /662 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▲2.40ms] Passed 4 tests

A check of server-side resources used by Simple Visitor Registration Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1553.04 ▲11.95
Dashboard /wp-admin3.46 ▲0.1553.44 ▲3.90
Posts /wp-admin/edit.php3.58 ▲0.2252.46 ▲5.29
Add New Post /wp-admin/post-new.php6.06 ▲0.1792.72 ▼4.13
Media Library /wp-admin/upload.php3.39 ▲0.1539.95 ▲4.54
Export and Delete Entries /wp-admin/admin.php?page=simple-visitor-registration3.3530.78
Visitor Registration reCAPTCHA /wp-admin/admin.php?page=simple-visitor-registration-captcha3.3636.31
Visitor Registration Help /wp-admin/admin.php?page=simple-visitor-registration-help3.3631.07

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 62 new files
Database: 1 new table, 7 new options
New tables
wp_visitor_registration_logger
New WordPress options
db_upgraded
widget_recent-posts
simple-visitor-registration_db_version
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Simple Visitor Registration Form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,981 ▲22013.48 ▼0.768.83 ▲6.9242.12 ▲1.93
Dashboard /wp-admin2,279 ▲1085.64 ▲0.0986.11 ▼6.6140.03 ▼4.15
Posts /wp-admin/edit.php2,185 ▲822.03 ▲0.0236.29 ▼2.0531.05 ▼6.44
Add New Post /wp-admin/post-new.php1,569 ▲4118.43 ▼4.50637.71 ▼24.8367.95 ▲13.44
Media Library /wp-admin/upload.php1,488 ▲914.20 ▲0.0697.18 ▼6.9446.36 ▼0.10
Export and Delete Entries /wp-admin/admin.php?page=simple-visitor-registration8932.2027.4127.54
Visitor Registration reCAPTCHA /wp-admin/admin.php?page=simple-visitor-registration-captcha8921.6928.4729.20
Visitor Registration Help /wp-admin/admin.php?page=simple-visitor-registration-help9472.1723.5230.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_visitor_registration_logger
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • simple-visitor-registration_db_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simple-visitor-registration-form/public/partials/simple-visitor-registration-public-display.php
    • > /wp-content/plugins/simple-visitor-registration-form/trunk/public/partials/simple-visitor-registration-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: form, registration

simple-visitor-registration-form/simple-visitor-registration.php 85% from 13 tests

The main PHP file in "Simple Visitor Registration Form" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-visitor-registration-form.php" instead of "simple-visitor-registration.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin1,064 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP17332692778
JavaScript2130146
Sass111370
CSS23462
SVG3008

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods96
▷ Static methods2020.83%
▷ Public methods8689.58%
▷ Protected methods00.00%
▷ Private methods1010.42%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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 images were found in this plugin