83% email-domain-verification-in-cf7

Code Review | Contact Form 7 Email Validation

WordPress plugin Contact Form 7 Email Validationscored83%from 54 tests.

About plugin

  • Plugin page: email-domain-veri...
  • Plugin version: 3.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: Mar 7, 2016
  • Latest release: Dec 18, 2020
  • Number of updates: 22
  • Update frequency: every 79.6 days
  • Top authors: clarionwpdeveloper (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active /24,442 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
Install script ran successfully

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

A check of server-side resources used by Contact Form 7 Email Validation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.66 ▼4.54
Dashboard /wp-admin3.31 ▲0.0042.33 ▼4.53
Posts /wp-admin/edit.php3.36 ▲0.0046.52 ▼0.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.06 ▼0.84
Media Library /wp-admin/upload.php3.23 ▲0.0036.41 ▼2.13

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Contact Form 7 Email Validation
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.25 ▼1.122.07 ▼0.0638.12 ▼6.45
Dashboard /wp-admin2,206 ▲184.85 ▼1.05112.85 ▼4.1545.94 ▼0.00
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0035.33 ▼2.8233.10 ▼3.59
Add New Post /wp-admin/post-new.php1,538 ▲1723.36 ▲0.24680.43 ▼2.6159.98 ▲3.13
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.03100.92 ▲4.5842.83 ▼3.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • 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
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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/email-domain-verification-in-cf7/contact-form-7-email-validation-check.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === Contact Form 7 Email Validation=== )
The official readme.txt might help

email-domain-verification-in-cf7/contact-form-7-email-validation-check.php 77% from 13 tests

"Contact Form 7 Email Validation" version 3.5.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 207 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("email-domain-verification-in-cf7.php" instead of "contact-form-7-email-validation-check.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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin51 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1262051

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin