10% clearout-email-validator

Code Review | Clearout Email Validator - Real Time Email Validation on Wordpress Forms

WordPress plugin Clearout Email Validator - Real Time Email Validation on Wordpress Forms scored10%from 54 tests.

About plugin

  • Plugin page: clearout-email-va...
  • Plugin version: 3.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 24, 2019
  • Latest release: Sep 19, 2023
  • Number of updates: 73
  • Update frequency: every 19.5 days
  • Top authors: clearoutio (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

400+ active /14,830 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/clearout-email-validator/src/clearout-plugin-page-settings.php+220
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.22MB] [CPU: ▲0.79ms] Passed 4 tests

Analyzing server-side resources used by Clearout Email Validator - Real Time Email Validation on Wordpress Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2240.69 ▲1.30
Dashboard /wp-admin3.53 ▲0.2350.27 ▲1.10
Posts /wp-admin/edit.php3.65 ▲0.2952.90 ▲2.20
Add New Post /wp-admin/post-new.php6.12 ▲0.2297.09 ▲5.51
Media Library /wp-admin/upload.php3.46 ▲0.2237.00 ▼1.42
Clearout Email Validator /wp-admin/options-general.php?page=clearout-email-validator3.4236.46

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
clearout_email_validator

Browser metrics Passed 4 tests

An overview of browser requirements for Clearout Email Validator - Real Time Email Validation on Wordpress Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11514.71 ▲0.361.96 ▲0.0442.44 ▼1.93
Dashboard /wp-admin2,257 ▲895.67 ▲0.1087.42 ▼2.8943.11 ▲2.79
Posts /wp-admin/edit.php2,162 ▲622.08 ▲0.0940.38 ▲2.1438.45 ▲1.31
Add New Post /wp-admin/post-new.php1,574 ▲4823.25 ▼0.42629.49 ▼74.3954.45 ▼9.34
Media Library /wp-admin/upload.php1,462 ▲654.35 ▲0.2599.69 ▼23.4746.23 ▼1.81
Clearout Email Validator /wp-admin/options-general.php?page=clearout-email-validator1,3332.2532.6051.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/clearout-email-validator/src/clearout-plugin-page-settings.php+254
    Undefined index: api_key
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/clearout-email-validator/plugin.php on line 31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clearout-email-validator/src/clearout-plugin.php:9
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/clearout-email-validator/plugin.php on line 31
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/clearout-email-validator/plugin.php on line 31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

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

The main PHP script in "Clearout Email Validator - Real Time Email Validation on Wordpress Forms" version 3.0.3 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("clearout-email-validator.php" instead of "plugin.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 328 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected3,540 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP83315152,392
JavaScript26139908
CSS24413240

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.57
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%
Functions127
▷ Named functions127100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/clearout_wp_logo.png5.75KB3.54KB▼ 38.53%