78% email-checker-for-contact-form-7

Code Review | Email Checker for Contact Form 7

WordPress plugin Email Checker for Contact Form 7 scored78%from 54 tests.

About plugin

  • Plugin page: email-checker-for...
  • Plugin version: 2.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 22, 2020
  • Latest release: Jan 19, 2023
  • Number of updates: 47
  • Update frequency: every 17.5 days
  • Top authors: kalprajsolutions (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /2,864 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Email Checker for Contact Form 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0046.21 ▲4.96
Dashboard /wp-admin3.31 ▲0.0047.24 ▼6.95
Posts /wp-admin/edit.php3.36 ▲0.0050.23 ▼3.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.90 ▼11.44
Media Library /wp-admin/upload.php3.23 ▲0.0034.30 ▼2.02

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Email Checker for Contact Form 7
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.77 ▲0.532.08 ▲0.4244.40 ▼2.80
Dashboard /wp-admin2,198 ▲185.63 ▼0.0492.27 ▼3.2342.72 ▼3.21
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0440.11 ▲0.2936.72 ▼1.52
Add New Post /wp-admin/post-new.php1,536 ▲1023.06 ▲0.04630.83 ▼50.0360.42 ▼10.55
Media Library /wp-admin/upload.php1,400 ▼04.22 ▼0.01103.47 ▼5.9543.73 ▼3.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/email-checker-for-contact-form-7/email-checker-for-cf7.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/email-checker-for-contact-form-7/view.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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
8 plugin tags: emails checker, contact form recaptcha, email checker for contact form 7, email validator, contact form 7...

email-checker-for-contact-form-7/email-checker-for-cf7.php 85% from 13 tests

The main PHP file in "Email Checker for Contact Form 7" ver. 2.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("email-checker-for-contact-form-7.php" instead of "email-checker-for-cf7.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin347 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP38064347

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/emails-checker-logo.png12.31KB9.35KB▼ 24.09%