74% emailval

Code Review | EmailVal - Email Address Validation & Verification

WordPress plugin EmailVal - Email Address Validation & Verification scored74%from 54 tests.

About plugin

  • Plugin page: emailval
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Jul 1, 2021
  • Latest release: Jul 8, 2021
  • Number of updates: 3
  • Update frequency: every 2.7 days
  • Top authors: rferesteanu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /352 total downloads

Benchmarks

Plugin footprint 65% 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.02MB] [CPU: ▼4.60ms] Passed 4 tests

A check of server-side resources used by EmailVal - Email Address Validation & Verification
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.93 ▼1.77
Dashboard /wp-admin3.34 ▼0.0053.58 ▼16.77
Posts /wp-admin/edit.php3.39 ▲0.0450.75 ▼1.16
Add New Post /wp-admin/post-new.php5.92 ▲0.04101.83 ▲2.19
Media Library /wp-admin/upload.php3.27 ▲0.0438.05 ▲1.29
EmailVal /wp-admin/admin.php?page=unified_software_emailval3.2334.51
General /wp-admin/admin.php?page=unified_software3.2337.60

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: 1 new table, 8 new options
New tables
emailval
New WordPress options
widget_recent-comments
unified_software_encryption_key
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
unified_software_emailval

Browser metrics Passed 4 tests

EmailVal - Email Address Validation & Verification: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲16613.41 ▼1.018.85 ▲7.0942.48 ▼4.19
Dashboard /wp-admin2,225 ▲515.55 ▼0.1288.10 ▲1.3243.83 ▼1.22
Posts /wp-admin/edit.php2,127 ▲272.03 ▲0.0334.95 ▼0.1236.34 ▼1.68
Add New Post /wp-admin/post-new.php1,552 ▲2622.84 ▼0.28644.23 ▼48.6551.04 ▼5.38
Media Library /wp-admin/upload.php1,430 ▲274.17 ▼0.02101.41 ▼1.6945.16 ▲3.13
EmailVal /wp-admin/admin.php?page=unified_software_emailval8792.1823.6726.55
General /wp-admin/admin.php?page=unified_software8152.0325.2225.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • emailval
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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
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
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function UNIFIED_SOFTWARE\\EMAILVAL\\add_action() in wp-content/plugins/emailval/settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function UNIFIED_SOFTWARE\\EMAILVAL\\add_action() in wp-content/plugins/emailval/menu.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/emailval/template/emailval-form-template.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Contributors: Plugin contributors not specified
You can take inspiration from this readme.txt

emailval/emailval.php Passed 13 tests

The principal PHP file in "EmailVal - Email Address Validation & Verification" v. 0.1.0 is loaded by WordPress automatically on each request
73 characters long description:
Check that an email address is valid and relates to a live email account.

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
Success! There were no dangerous files found in this plugin847 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP717527768
JavaScript19050
CSS18129

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions43
▷ Named functions4093.02%
▷ Anonymous functions36.98%
Constants9
▷ Global constants555.56%
▷ Class constants444.44%
▷ Public constants4100.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