90% disposable-email-blocker-wpforms

Code Review | Disposable Email Blocker - WPForms

WordPress plugin Disposable Email Blocker - WPForms 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 5, 2020
  • Latest release: Aug 27, 2023
  • Number of updates: 5
  • Update frequency: every 235.6 days
  • Top authors: sajjad67 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /529 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼7.88MB] [CPU: ▼1,612,920.42ms] Passed 4 tests

This is a short check of server-side resources used by Disposable Email Blocker - WPForms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▼31.5140.20 ▼6,451,643.24
Dashboard /wp-admin3.36 ▼0.0350.19 ▼16.28
Posts /wp-admin/edit.php3.41 ▲0.0151.81 ▼1.18
Add New Post /wp-admin/post-new.php5.94 ▲0.0194.98 ▼20.98
Media Library /wp-admin/upload.php3.29 ▲0.0136.58 ▲0.73

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disposable Email Blocker - WPForms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.72 ▲0.441.79 ▲0.0741.67 ▼2.49
Dashboard /wp-admin2,198 ▲215.58 ▲0.0085.26 ▼7.6739.10 ▼2.64
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0539.99 ▲3.3236.26 ▲1.82
Add New Post /wp-admin/post-new.php1,531 ▲523.24 ▼0.33583.62 ▼144.8653.21 ▼12.38
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.00101.48 ▼8.3746.83 ▼2.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: temporary-email, blocker, disposable-email-blocker, wpforms, temporary-email-blocker

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

The principal PHP file in "Disposable Email Blocker - WPForms" v. 1.0.2 is loaded by WordPress automatically on each request
78 characters long description:
Prevent Submitting Spammy Disposable/Temporary Emails On WPForms Contact Form.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected74,214 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JSON20074,164
PHP1162050

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
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