84% antideo-email-validator

Code Review | Antideo Email Validator

WordPress plugin Antideo Email Validator scored84%from 54 tests.

About plugin

  • Plugin page: antideo-email-val...
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 7, 2020
  • Latest release: May 30, 2023
  • Number of updates: 19
  • Update frequency: every 52.5 days
  • Top authors: antideo (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

800+ active /5,849 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.48ms] Passed 4 tests

A check of server-side resources used by Antideo Email Validator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.48 ▼2.34
Dashboard /wp-admin3.35 ▲0.0449.53 ▼2.70
Posts /wp-admin/edit.php3.40 ▲0.0448.46 ▲0.21
Add New Post /wp-admin/post-new.php5.93 ▲0.0585.39 ▼1.07
Media Library /wp-admin/upload.php3.27 ▲0.0443.55 ▲9.94
Settings /wp-admin/admin.php?page=antideo-email-validator-settings3.3534.87
About Antideo /wp-admin/admin.php?page=antideo-email-validator-about3.3429.31
Dashboard /wp-admin/admin.php?page=antideo-email-validator-dashboard3.3033.69

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 57 new files
Database: 2 new tables, 6 new options
New tables
wp_adev_disposable_domains
wp_adev_blocked_emails
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Antideo Email Validator: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲9113.32 ▼0.961.74 ▼0.1439.71 ▼5.67
Dashboard /wp-admin2,232 ▲445.85 ▼0.01109.44 ▲1.7472.84 ▲27.11
Posts /wp-admin/edit.php2,118 ▲292.02 ▲0.0233.89 ▼7.5833.45 ▼1.94
Add New Post /wp-admin/post-new.php1,689 ▲16822.40 ▼0.89711.97 ▲36.1850.13 ▼4.87
Media Library /wp-admin/upload.php1,417 ▲294.18 ▼0.0095.51 ▼2.7878.84 ▲32.88
Settings /wp-admin/admin.php?page=antideo-email-validator-settings1,0322.0726.9846.88
About Antideo /wp-admin/admin.php?page=antideo-email-validator-about1,0842.0223.8334.54
Dashboard /wp-admin/admin.php?page=antideo-email-validator-dashboard1,1732.0323.9841.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 25× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/antideo-email-validator/src/ValidationResults.php
    • > /wp-content/plugins/antideo-email-validator/src/Validations/RoleBasedEmailValidator.php
    • > /wp-content/plugins/antideo-email-validator/src/EmailDataProvider.php
    • > /wp-content/plugins/antideo-email-validator/src/Validations/DisposableEmailValidator.php
    • > /wp-content/plugins/antideo-email-validator/src/data/email-providers.php
    • > /wp-content/plugins/antideo-email-validator/BlockedEmail.php
    • > /wp-content/plugins/antideo-email-validator/src/data/role-based-email-prefixes.php
    • > /wp-content/plugins/antideo-email-validator/src/data/disposable-email-providers.php
    • > /wp-content/plugins/antideo-email-validator/settings.php
    • > /wp-content/plugins/antideo-email-validator/src/Validations/FreeEmailServiceValidator.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: email validation, disposable emails, email checker, email validator, email syntax check

antideo-email-validator/antideo-email-validator.php 92% from 13 tests

The entry point to "Antideo Email Validator" version 1.0.8 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 164 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected93,178 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP2548923193,178

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity9.06
▷ Minimum class complexity1.00
▷ Maximum class complexity115.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces2
Interfaces2
Traits0
Classes15
▷ Abstract classes16.67%
▷ Concrete classes1493.33%
▷ Final classes00.00%
Methods99
▷ Static methods33.03%
▷ Public methods8181.82%
▷ Protected methods44.04%
▷ Private methods1414.14%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants13
▷ Global constants17.69%
▷ Class constants1292.31%
▷ Public constants12100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
29 PNG files occupy 1.39MB with 0.94MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png132.18KB35.59KB▼ 73.08%
assets/premiumbaner.png50.48KB15.80KB▼ 68.71%
assets/antideo_logo.png10.18KB4.20KB▼ 58.74%
assets/screenshot-3.png82.75KB28.40KB▼ 65.68%
assets/star.png1.43KB0.40KB▼ 72.01%