84% gf-block-email-domains

Code Review | Gravity Forms Block Email Domains

WordPress plugin Gravity Forms Block Email Domains scored84%from 54 tests.

About plugin

  • Plugin page: gf-block-email-do...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.0.1
  • WordPress version: 6.3.1
  • First release: May 9, 2019
  • Latest release: Aug 10, 2022
  • Number of updates: 8
  • Update frequency: every 148.8 days
  • Top authors: stevejonesdev (62.5%)roadwarriorwp (50%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /6,545 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

An overview of server-side resources used by Gravity Forms Block Email Domains
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0032.27 ▼3.34
Dashboard /wp-admin3.31 ▲0.0050.45 ▲4.63
Posts /wp-admin/edit.php3.36 ▲0.0045.81 ▼1.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.24 ▼16.52
Media Library /wp-admin/upload.php3.23 ▲0.0034.54 ▲3.35

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Gravity Forms Block Email Domains
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.31 ▼1.041.73 ▼0.1944.99 ▲4.74
Dashboard /wp-admin2,206 ▲185.82 ▲0.91102.59 ▼2.6939.22 ▼3.63
Posts /wp-admin/edit.php2,092 ▲32.00 ▲0.0136.00 ▼4.8434.02 ▼4.67
Add New Post /wp-admin/post-new.php1,541 ▲1318.36 ▲0.20633.64 ▲24.3168.04 ▲15.42
Media Library /wp-admin/upload.php1,388 ▲64.20 ▲0.0194.82 ▼7.3245.80 ▲2.84

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/gf-block-email-domains/gravityforms-block-email-domains.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: domain blacklist, email blacklist, block email, block domain, forms...

gf-block-email-domains/gravityforms-block-email-domains.php 92% from 13 tests

The main file in "Gravity Forms Block Email Domains" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gf-block-email-domains.php" instead of "gravityforms-block-email-domains.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin73 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1103173

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
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 functions375.00%
▷ Anonymous functions125.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
There are no PNG files in this plugin