73% ultimate-email-validator

Code Review | Ultimate Email Validator - Validate and Stop Fake, Temporary and Disposable Emails

WordPress plugin Ultimate Email Validator - Validate and Stop Fake, Temporary and Disposable Emails scored73%from 54 tests.

About plugin

  • Plugin page: ultimate-email-va...
  • Plugin version: 2.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Oct 25, 2019
  • Latest release: Sep 1, 2023
  • Number of updates: 26
  • Update frequency: every 54.1 days
  • Top authors: oxibug (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /910 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲5.71MB] [CPU: ▲28.75ms] 75% from 4 tests

Analyzing server-side resources used by Ultimate Email Validator - Validate and Stop Fake, Temporary and Disposable Emails
Please fix the following
  • Extra RAM: The extra memory usage must be under 5MB (currently 5.71MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.24 ▲5.7871.54 ▲27.30
Dashboard /wp-admin9.26 ▲5.9680.82 ▲27.83
Posts /wp-admin/edit.php9.26 ▲5.9194.03 ▲46.10
Add New Post /wp-admin/post-new.php11.06 ▲5.17114.75 ▲17.63
Media Library /wp-admin/upload.php9.26 ▲6.0476.73 ▲42.25
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2666.27

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 254 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
fs_active_plugins
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
fs_debug_mode
fs_accounts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate Email Validator - Validate and Stop Fake, Temporary and Disposable Emails
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14513.28 ▼1.101.70 ▲0.0228.04 ▼16.84
Dashboard /wp-admin2,281 ▲935.85 ▼0.0599.56 ▼11.3044.08 ▲1.49
Posts /wp-admin/edit.php2,168 ▲822.01 ▼0.0438.95 ▲3.0737.80 ▲5.14
Add New Post /wp-admin/post-new.php1,529 ▲1522.87 ▲5.14686.38 ▲59.5056.68 ▲1.61
Media Library /wp-admin/upload.php1,470 ▲824.27 ▲0.0993.64 ▼7.5545.26 ▲0.64
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,1221.6824.0726.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/ultimate-email-validator/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_theysaidso_widget
    • fs_active_plugins
    • widget_recent-posts
    • theysaidso_admin_options
    • fs_debug_mode
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • fs_accounts

Smoke tests 75% from 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)
Even though no errors were found, this is by no means 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'UltimateEmailValidator\\Paths' not found in wp-content/plugins/ultimate-email-validator/includes/engine.php:112

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 93% 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
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
Please take inspiration from this readme.txt

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

The main file in "Ultimate Email Validator - Validate and Stop Fake, Temporary and Disposable Emails" v. 2.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected49,079 lines of code in 191 files:
LanguageFilesBlank linesComment linesLines of code
PHP15512,40422,60640,087
CSS28548935,014
SVG2013,006
JavaScript6525256972

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity69.39
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.74
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes85
▷ Abstract classes22.35%
▷ Concrete classes8397.65%
▷ Final classes00.00%
Methods1,583
▷ Static methods26916.99%
▷ Public methods1,10269.61%
▷ Protected methods201.26%
▷ Private methods46129.12%
Functions102
▷ Named functions102100.00%
▷ Anonymous functions00.00%
Constants177
▷ Global constants12872.32%
▷ Class constants4927.68%
▷ Public constants49100.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
15 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/addons/bs-colorpicker/images/alpha.png0.48KB1.68KB0.00%
assets/addons/bs-colorpicker/images/alpha-horizontal.png0.54KB1.62KB0.00%
assets/addons/jquery-ui/images/ui-icons_777620_256x240.png4.44KB4.17KB▼ 6.02%
assets/addons/bs-colorpicker/images/hue-horizontal.png0.47KB0.47KB0.00%
assets/addons/jquery-ui/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%