90% cf7-mailgun-domain-validation

Code Review | CF7 Mailgun Domain Validation

WordPress plugin CF7 Mailgun Domain Validation scored90%from 54 tests.

About plugin

  • Plugin page: cf7-mailgun-domai...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7.0
  • WordPress version: 6.3.1
  • First release: Dec 1, 2018
  • Latest release: Mar 9, 2021
  • Number of updates: 9
  • Update frequency: every 92.2 days
  • Top authors: macbookandrew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /820 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by CF7 Mailgun Domain Validation
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.47 ▼4.57
Dashboard /wp-admin3.32 ▼0.0349.03 ▼13.05
Posts /wp-admin/edit.php3.37 ▲0.0149.50 ▼2.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.14 ▼8.26
Media Library /wp-admin/upload.php3.24 ▲0.0135.32 ▼2.58

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

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

Browser metrics Passed 4 tests

Checking browser requirements for CF7 Mailgun Domain Validation
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.25 ▼0.961.80 ▼0.3541.45 ▼3.35
Dashboard /wp-admin2,206 ▲185.91 ▲1.0297.77 ▼7.9439.34 ▼1.52
Posts /wp-admin/edit.php2,092 ▼02.03 ▲0.0235.15 ▼7.3933.19 ▼2.56
Add New Post /wp-admin/post-new.php1,537 ▲423.09 ▼0.14655.68 ▼3.6961.43 ▲0.58
Media Library /wp-admin/upload.php1,388 ▲34.25 ▲0.0698.09 ▼8.1944.14 ▼7.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: contact form, cf7, contactform7, mailgun, validation...

cf7-mailgun-domain-validation/cf7-mailgun-domain-validation.php Passed 13 tests

The main PHP file in "CF7 Mailgun Domain Validation" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
75 characters long description:
Allows the mg domain for your site to pass Contact Form 7 email validation.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected47 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1165147

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.50
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods3100.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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin