90% email-blacklist-for-elementor-forms

Code Review | Email Blacklist For Elementor Forms

WordPress plugin Email Blacklist For Elementor Forms scored90%from 54 tests.

About plugin

  • Plugin page: email-blacklist-f...
  • Plugin version: 1.0.0
  • PHP compatiblity: 8.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: May 14, 2023
  • Latest release: May 14, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: DeveloperWil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /623 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
Installer ran successfully

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

This is a short check of server-side resources used by Email Blacklist For Elementor Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.59 ▼10.54
Dashboard /wp-admin3.31 ▲0.0051.46 ▼7.86
Posts /wp-admin/edit.php3.36 ▲0.0048.60 ▼7.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.23 ▼8.63
Media Library /wp-admin/upload.php3.23 ▲0.0033.46 ▼1.94

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Email Blacklist For Elementor Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.28 ▲0.032.00 ▼0.0147.78 ▲3.86
Dashboard /wp-admin2,195 ▲245.59 ▼0.0184.70 ▼9.8139.65 ▼6.77
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0739.58 ▼3.4334.37 ▼4.71
Add New Post /wp-admin/post-new.php1,535 ▲918.06 ▼5.43649.08 ▲42.9462.89 ▲0.92
Media Library /wp-admin/upload.php1,400 ▲34.21 ▲0.0296.11 ▼2.5741.77 ▼2.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Email Blacklist text area on the Form widget control, content section.), #2 (Add a comma separated list of items to block. Regex not supported.), #3 (Error message on form if any items match the block list.)
The official readme.txt is a good inspiration

email-blacklist-for-elementor-forms/email-blacklist-for-elementor-forms.php Passed 13 tests

The principal PHP file in "Email Blacklist For Elementor Forms" v. 1.0.0 is loaded by WordPress automatically on each request
139 characters long description:
Adds a text area control called "Blacklist" to the Elementor Forms control. Blocks outgoing emails if they match with any on the blacklist.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected55 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP194055

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png28.69KB8.91KB▼ 68.93%
screenshot-1.png33.97KB9.76KB▼ 71.26%
screenshot-2.png12.07KB4.79KB▼ 60.35%