83% cf-email-domain-check

Code Review | eMail Domain Check Processor for Caldera Forms

WordPress plugin eMail Domain Check Processor for Caldera Forms scored83%from 54 tests.

About plugin

  • Plugin page: cf-email-domain-c...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.6
  • WordPress version: 6.3.1
  • First release: Apr 24, 2020
  • Latest release: Nov 24, 2020
  • Number of updates: 10
  • Update frequency: every 21.5 days
  • Top authors: mmattel01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /669 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.07ms] Passed 4 tests

A check of server-side resources used by eMail Domain Check Processor for Caldera Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.23 ▼6.94
Dashboard /wp-admin3.32 ▲0.0144.26 ▼6.74
Posts /wp-admin/edit.php3.37 ▲0.0142.43 ▼5.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.71 ▼1.02
Media Library /wp-admin/upload.php3.24 ▲0.0131.92 ▲1.27

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

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

Browser metrics Passed 4 tests

eMail Domain Check Processor for Caldera Forms: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.121.76 ▼0.4947.33 ▼3.75
Dashboard /wp-admin2,209 ▲245.88 ▲0.9999.67 ▼18.2536.77 ▼7.66
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0235.83 ▼1.9033.80 ▲0.68
Add New Post /wp-admin/post-new.php1,542 ▲918.50 ▼4.84625.36 ▼67.0165.14 ▲11.01
Media Library /wp-admin/upload.php1,382 ▼64.23 ▼0.0194.31 ▼8.3042.54 ▼5.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/cf-email-domain-check/cf-email-check.php
    • > /wp-content/plugins/cf-email-domain-check/config.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: dns, domain, email, caldera forms

cf-email-domain-check/cf-email-check.php 77% from 13 tests

"eMail Domain Check Processor for Caldera Forms" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "5.2")
  • Main file name: Name the main plugin file the same as the plugin slug ("cf-email-domain-check.php" instead of "cf-email-check.php")
  • Requires PHP: Required version does not match the one declared in readme.txt ("5.2.4" instead of "5.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin54 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2185954

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin