90% contact-form-7-mail-conditions

Code Review | Contact Form 7 Mail Conditions

WordPress plugin Contact Form 7 Mail Conditions scored90%from 54 tests.

About plugin

  • Plugin page: contact-form-7-ma...
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: May 8, 2014
  • Latest release: May 8, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: toovy (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active /1,699 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Contact Form 7 Mail Conditions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.35 ▼0.11
Dashboard /wp-admin3.32 ▼0.0343.24 ▼18.26
Posts /wp-admin/edit.php3.37 ▲0.0144.92 ▼1.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.00 ▼11.20
Media Library /wp-admin/upload.php3.24 ▲0.0134.49 ▼4.15

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Contact Form 7 Mail Conditions
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.37 ▼0.091.57 ▼0.0146.78 ▲7.05
Dashboard /wp-admin2,198 ▲175.64 ▼0.0684.83 ▼19.0435.70 ▼2.91
Posts /wp-admin/edit.php2,103 ▼02.01 ▲0.0333.82 ▼7.0831.25 ▼4.76
Add New Post /wp-admin/post-new.php1,535 ▲918.10 ▼5.52618.93 ▼12.1595.38 ▲27.72
Media Library /wp-admin/upload.php1,400 ▼04.25 ▲0.05109.48 ▼4.3350.12 ▲4.74

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: mail condition, dynamic mail, contact form 7

contact-form-7-mail-conditions/contact_form_7_mail_conditions.php 92% from 13 tests

"Contact Form 7 Mail Conditions" version 0.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("contact-form-7-mail-conditions.php" instead of "contact_form_7_mail_conditions.php")

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 plugin36 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods250.00%
▷ Protected methods00.00%
▷ Private methods250.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants3100.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
There are no PNG files in this plugin