84% user-registration-email-validator

Code Review | User Registration Email Validator

WordPress plugin User Registration Email Validator scored84%from 54 tests.

About plugin

  • Plugin page: user-registration...
  • Plugin version: 3.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 20, 2020
  • Latest release: Jan 18, 2023
  • Number of updates: 17
  • Update frequency: every 47.4 days
  • Top authors: kalprajsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /890 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.63ms] Passed 4 tests

Analyzing server-side resources used by User Registration Email Validator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.01 ▼5.24
Dashboard /wp-admin3.32 ▲0.0146.72 ▼2.74
Posts /wp-admin/edit.php3.37 ▲0.0146.84 ▼1.51
Add New Post /wp-admin/post-new.php5.90 ▲0.01105.61 ▲16.55
Media Library /wp-admin/upload.php3.24 ▲0.0139.70 ▲6.95
User Email Validator /wp-admin/options-general.php?page=user-registration-email-validator3.2633.51

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
urev_allowed_email_types
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

User Registration Email Validator: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲8613.22 ▼1.071.65 ▼0.2342.40 ▼1.95
Dashboard /wp-admin2,227 ▲395.84 ▼0.0599.05 ▼16.0641.38 ▼4.25
Posts /wp-admin/edit.php2,110 ▲212.01 ▲0.0140.37 ▲0.5735.73 ▲0.43
Add New Post /wp-admin/post-new.php1,557 ▲4318.48 ▲0.78635.62 ▼65.4055.09 ▼9.07
Media Library /wp-admin/upload.php1,403 ▲154.25 ▲0.02100.42 ▲0.9646.89 ▲3.34
User Email Validator /wp-admin/options-general.php?page=user-registration-email-validator1,0582.1841.0450.28

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

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 fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/user-registration-email-validator/view.php
    • > /wp-content/plugins/user-registration-email-validator/user-registration-email-validator.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed: Please take inspiration from this readme.txt

user-registration-email-validator/user-registration-email-validator.php Passed 13 tests

This is the main PHP file of "User Registration Email Validator" version 3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
99 characters long description:
Validate and Verify any email using is_email() and stop spam comments spam logins and registration.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin362 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP38894362

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/emails-checker-logo.png12.31KB9.35KB▼ 24.09%