84% contact-form-7-email-verification

Code Review | Contact Form 7 email verification

WordPress plugin Contact Form 7 email verification scored84%from 54 tests.

About plugin

  • Plugin page: contact-form-7-em...
  • Plugin version: 1.11
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.6
  • WordPress version: 6.3.1
  • First release: Oct 23, 2013
  • Latest release: Jan 27, 2021
  • Number of updates: 13
  • Update frequency: every 204.2 days
  • Top authors: magician11 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /7,076 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.03MB] [CPU: ▼3.45ms] Passed 4 tests

A check of server-side resources used by Contact Form 7 email verification
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0446.68 ▲2.74
Dashboard /wp-admin3.34 ▲0.0381.48 ▲30.08
Posts /wp-admin/edit.php3.39 ▲0.0349.86 ▼7.06
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.95 ▼8.07
Media Library /wp-admin/upload.php3.27 ▲0.0341.01 ▼1.40

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Contact Form 7 email verification
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.32 ▼0.301.79 ▼0.4544.44 ▲2.09
Dashboard /wp-admin2,195 ▲185.64 ▲0.0298.38 ▲4.6444.72 ▲1.55
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0237.82 ▼9.1837.15 ▲2.29
Add New Post /wp-admin/post-new.php1,527 ▲123.32 ▲1.20626.31 ▼89.7359.32 ▲2.41
Media Library /wp-admin/upload.php1,400 ▼04.23 ▼0.0598.44 ▼15.3545.27 ▼0.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/contact-form-7-email-verification/wpcf7-email-verification.php on line 32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/contact-form-7-email-verification/wpcf7-email-verification.php:36
    • > PHP Warning
      Use of undefined constant HOUR_IN_SECONDS - assumed 'HOUR_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/contact-form-7-email-verification/wpcf7-email-verification.php on line 33
    • > PHP Warning
      A non-numeric value encountered in wp-content/plugins/contact-form-7-email-verification/wpcf7-email-verification.php on line 33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: email

contact-form-7-email-verification/wpcf7-email-verification.php 85% from 13 tests

The main PHP file in "Contact Form 7 email verification" ver. 1.11 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("contact-form-7-email-verification.php" instead of "wpcf7-email-verification.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin101 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14454101

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
Constants2
▷ Global constants2100.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