89% gravity-forms-email-blacklist

Code Review | Gravity Forms Email Blacklist

WordPress plugin Gravity Forms Email Blacklist scored 89% from 54 tests.

About plugin

  • Plugin page: gravity-forms-ema...
  • Plugin version: 2.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2014
  • Latest release: Sep 29, 2023
  • Number of updates: 24
  • Update frequency: every 144.7 days
  • Top authors: hallme (75%)deployer (29.17%)

Code review

54 tests

User reviews

14 reviews

Install metrics

8,000+ active / 53,111 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

A check of server-side resources used by Gravity Forms Email Blacklist
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.84 ▼5.58
Dashboard /wp-admin3.31 ▲0.0144.04 ▼5.30
Posts /wp-admin/edit.php3.36 ▲0.0145.10 ▼3.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.42 ▼0.00
Media Library /wp-admin/upload.php3.24 ▲0.0134.80 ▼0.76

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Gravity Forms Email Blacklist
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.48 ▲0.301.77 ▲0.1339.13 ▼9.97
Dashboard /wp-admin2,206 ▲155.81 ▲0.6994.96 ▼10.5941.55 ▼0.45
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0339.74 ▲1.3434.97 ▲0.80
Add New Post /wp-admin/post-new.php1,528 ▲918.17 ▼4.94591.34 ▼84.2552.32 ▲1.53
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0393.90 ▼20.5940.26 ▼8.35

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Invalid url: ""
The official readme.txt might help

gravity-forms-email-blacklist/gf-emailblacklist.php 85% from 13 tests

The principal PHP file in "Gravity Forms Email Blacklist" v. 2.5.6 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gravity-forms-email-blacklist.php" instead of "gf-emailblacklist.php")

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
Success! There were no dangerous files found in this plugin177 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP246160177

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity10.00
▷ Minimum class complexity2.00
▷ Maximum class complexity18.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods990.00%
▷ Protected methods110.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin