90% disposable-email-blocker-ninja-forms

Code Review | Disposable Email Blocker - Ninja Forms

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

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /494 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Disposable Email Blocker - Ninja Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.16 ▼3.13
Dashboard /wp-admin3.31 ▲0.0046.04 ▼10.98
Posts /wp-admin/edit.php3.36 ▲0.0046.67 ▼2.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.52 ▼17.31
Media Library /wp-admin/upload.php3.23 ▲0.0033.86 ▲0.97

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disposable Email Blocker - Ninja Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.29 ▼1.101.71 ▼0.6640.73 ▼10.08
Dashboard /wp-admin2,203 ▲155.78 ▼0.10105.51 ▲0.2339.61 ▼2.34
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0239.20 ▼1.1836.01 ▲1.87
Add New Post /wp-admin/post-new.php1,529 ▲1523.47 ▲5.95659.30 ▼3.7757.31 ▼0.98
Media Library /wp-admin/upload.php1,391 ▲34.18 ▲0.0195.95 ▼6.9545.91 ▼0.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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, temporary-email, blocker, ninja-forms, disposable-email-blocker

disposable-email-blocker-ninja-forms/disposable-email-blocker-nf.php 92% from 13 tests

This is the main PHP file of "Disposable Email Blocker - Ninja Forms" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("disposable-email-blocker-ninja-forms.php" instead of "disposable-email-blocker-nf.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected74,236 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JSON20074,164
PHP1272272

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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%
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
No PNG images were found in this plugin