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

Code Review | Email verification for Contact Form 7

WordPress plugin Email verification for Contact Form 7 scored 84% from 54 tests.

About plugin

  • Plugin page: email-verificatio...
  • Plugin version: 2.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 12, 2022
  • Latest release: Jun 12, 2023
  • Number of updates: 24
  • Update frequency: every 21.5 days
  • Top authors: rajkakadiya (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

900+ active / 5,393 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.19ms] Passed 4 tests

Server-side resources used by Email verification for Contact Form 7
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.82 ▼2.91
Dashboard /wp-admin3.34 ▼0.0452.06 ▼22.76
Posts /wp-admin/edit.php3.45 ▲0.0946.59 ▼0.61
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.14 ▼14.47
Media Library /wp-admin/upload.php3.26 ▲0.0337.99 ▲2.00
Email Verification /wp-admin/admin.php?page=evcf7-email-verify3.2334.42

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: 1 new table, 8 new options
New tables
wp_evcf7_options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
evcf7_alt_table
evcf7_options

Browser metrics Passed 4 tests

Email verification for Contact Form 7: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲20913.95 ▼0.029.41 ▲7.6441.85 ▼4.10
Dashboard /wp-admin2,236 ▲485.16 ▲0.25112.79 ▲3.6852.39 ▲0.58
Posts /wp-admin/edit.php2,099 ▲72.34 ▲0.2935.12 ▼8.6034.73 ▼3.54
Add New Post /wp-admin/post-new.php1,543 ▲1023.57 ▲0.11636.42 ▼92.4434.03 ▼32.60
Media Library /wp-admin/upload.php1,425 ▲374.26 ▲0.11100.96 ▼29.5147.19 ▼7.07
Email Verification /wp-admin/admin.php?page=evcf7-email-verify1,5902.6560.4559.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • evcf7_alt_table
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/email-verification-for-contact-form-7/admin/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/email-verification-for-contact-form-7/admin/class-admin.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/email-verification-for-contact-form-7/functions.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: Please take inspiration from this readme.txt

email-verification-for-contact-form-7/email-verification-for-contact-form-7.php Passed 13 tests

The main file in "Email verification for Contact Form 7" v. 2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
81 characters long description:
Fill out the contact form 7 and submit it with an email address that is verified.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin955 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP58722740
CSS2221148
JavaScript213167

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity19.33
▷ Minimum class complexity9.00
▷ Maximum class complexity27.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods2589.29%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected