84% email-validator-for-contact-form-7

Code Review | Email Validator for Contact Form 7

WordPress plugin Email Validator for Contact Form 7 scored84%from 54 tests.

About plugin

  • Plugin page: email-validator-f...
  • Plugin version: 1.7.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 29, 2018
  • Latest release: Nov 14, 2023
  • Number of updates: 84
  • Update frequency: every 22.0 days
  • Top authors: mailboxvalidator (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /7,333 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Email Validator for Contact Form 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.18 ▼3.64
Dashboard /wp-admin3.31 ▲0.0045.40 ▼6.37
Posts /wp-admin/edit.php3.36 ▲0.0045.83 ▼4.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.21 ▼10.42
Media Library /wp-admin/upload.php3.23 ▲0.0033.93 ▼2.56

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: 1 new table, 6 new options
New tables
wp_email_validator_for_contact_form_7_log
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Email Validator for Contact Form 7
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5314.35 ▲0.292.18 ▲0.4343.63 ▼2.12
Dashboard /wp-admin2,195 ▲145.60 ▼0.0592.92 ▼13.9343.21 ▲4.96
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0140.35 ▲0.2036.00 ▲1.35
Add New Post /wp-admin/post-new.php1,525 ▼123.23 ▲0.15609.07 ▼28.6853.02 ▼0.50
Media Library /wp-admin/upload.php1,403 ▲64.21 ▼0.0198.77 ▲1.7743.13 ▲1.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/email-validator-for-contact-form-7/email-validator-for-contact-form-7.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention: Please take inspiration from this readme.txt

email-validator-for-contact-form-7/email-validator-for-contact-form-7.php 92% from 13 tests

The entry point to "Email Validator for Contact Form 7" version 1.7.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 230 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,439 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP103402761,015
Markdown1510164
PO File1334699
JavaScript3175295
JSON20066

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity31.40
▷ Minimum class complexity1.00
▷ Maximum class complexity91.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods61
▷ Static methods34.92%
▷ Public methods5386.89%
▷ Protected methods00.00%
▷ Private methods813.11%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin