90% disposable-email-blocker-gravityforms

Code Review | Disposable Email Blocker - GravityForms

WordPress plugin Disposable Email Blocker - GravityForms scored90%from 54 tests.

About plugin

  • Plugin page: disposable-email-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Jun 11, 2020
  • Latest release: Aug 27, 2023
  • Number of updates: 7
  • Update frequency: every 167.6 days
  • Top authors: sajjad67 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /642 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Disposable Email Blocker - GravityForms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.0141.05 ▼8.06
Dashboard /wp-admin3.58 ▲0.0251.32 ▼3.61
Posts /wp-admin/edit.php3.69 ▲0.0152.14 ▼0.29
Add New Post /wp-admin/post-new.php6.16 ▲0.0185.84 ▼19.18
Media Library /wp-admin/upload.php3.50 ▲0.0139.95 ▲2.45

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Disposable Email Blocker - GravityForms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.30 ▲0.001.79 ▼0.9140.70 ▼4.18
Dashboard /wp-admin2,189 ▲85.65 ▼0.1084.38 ▼22.5540.19 ▼3.99
Posts /wp-admin/edit.php2,097 ▼62.05 ▲0.0136.44 ▼4.0831.89 ▼5.38
Add New Post /wp-admin/post-new.php1,554 ▲2818.66 ▲1.11631.84 ▼83.6756.29 ▼0.61
Media Library /wp-admin/upload.php1,403 ▲34.23 ▼0.0297.48 ▼13.6344.50 ▼7.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: blocker, gravity-forms, temporary-email, temporary-email-blocker, disposable-email-blocker

disposable-email-blocker-gravityforms/disposable-email-blocker-gravityforms.php Passed 13 tests

The main file in "Disposable Email Blocker - GravityForms" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
78 characters long description:
Prevent From Submitting Any Disposable/Temporary Emails On GravityForms Forms.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected74,220 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JSON20074,164
PHP1242056

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin