90% disposable-email-blocker-contact-form-7

Code Review | Disposable Email Blocker - Contact Form 7

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

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /557 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Disposable Email Blocker - Contact Form 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.45 ▼6.17
Dashboard /wp-admin3.31 ▲0.0045.37 ▼4.61
Posts /wp-admin/edit.php3.36 ▲0.0046.25 ▼0.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.48 ▼3.61
Media Library /wp-admin/upload.php3.23 ▲0.0034.32 ▼4.72

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Disposable Email Blocker - Contact Form 7
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.011.69 ▼0.3843.19 ▼3.92
Dashboard /wp-admin2,209 ▲214.86 ▼1.0097.17 ▼21.7538.35 ▼3.28
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0034.06 ▼1.6633.75 ▼1.37
Add New Post /wp-admin/post-new.php1,514 ▼017.70 ▲0.07669.64 ▼20.2949.77 ▼9.24
Media Library /wp-admin/upload.php1,388 ▼04.29 ▲0.1495.36 ▼20.7140.87 ▼6.77

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

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

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: disposable-email-blocker, contact-form-7, temporary-email-blocker, temporary-email, blocker

disposable-email-blocker-contact-form-7/disposable-email-blocker-cf7.php 92% from 13 tests

The main file in "Disposable Email Blocker - Contact Form 7" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("disposable-email-blocker-contact-form-7.php" instead of "disposable-email-blocker-cf7.php")

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
There were no executable files found in this plugin74,252 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JSON20074,164
PHP1332588

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected