83% dilli-email-validator

Code Review | Dilli Email Validator

WordPress plugin Dilli Email Validator scored83%from 54 tests.

About plugin

  • Plugin page: dilli-email-valid...
  • Plugin version: 1.5.9.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 10, 2018
  • Latest release: Aug 31, 2023
  • Number of updates: 66
  • Update frequency: every 30.3 days
  • Top authors: dillilabs (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

200+ active /5,471 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.78ms] Passed 4 tests

Analyzing server-side resources used by Dilli Email Validator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0344.79 ▲2.85
Dashboard /wp-admin3.40 ▲0.0955.87 ▼0.97
Posts /wp-admin/edit.php3.51 ▲0.1549.53 ▼17.43
Add New Post /wp-admin/post-new.php5.98 ▲0.0987.62 ▼15.58
Media Library /wp-admin/upload.php3.32 ▲0.0941.07 ▲3.37
Email Validation /wp-admin/options-general.php?page=dilli-email-validator3.2934.78

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Dilli Email Validator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲1614.27 ▼0.101.78 ▼0.6043.87 ▼2.03
Dashboard /wp-admin2,205 ▲315.52 ▼0.1486.32 ▼3.1741.54 ▲1.46
Posts /wp-admin/edit.php2,113 ▲102.01 ▲0.0535.67 ▼6.7037.10 ▲0.76
Add New Post /wp-admin/post-new.php1,538 ▲1223.59 ▲0.49690.98 ▲2.9052.38 ▼4.80
Media Library /wp-admin/upload.php1,410 ▲164.16 ▼0.01101.10 ▼2.0244.21 ▲0.45
Email Validation /wp-admin/options-general.php?page=dilli-email-validator8492.0723.0831.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dilli-email-validator/admin_options.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dilli-email-validator/plugin.php:36

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
You can look at the official readme.txt

dilli-email-validator/plugin.php 85% from 13 tests

The primary PHP file in "Dilli Email Validator" version 1.5.9.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("dilli-email-validator.php" instead of "plugin.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 269 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin433 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36949357
PO File1262876

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity28.50
▷ Minimum class complexity27.00
▷ Maximum class complexity30.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screen-icon.png2.72KB1.70KB▼ 37.73%