78% email-address-validator

Code Review | Email Address Validator

WordPress plugin Email Address Validator scored78%from 54 tests.

About plugin

  • Plugin page: email-address-val...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.6
  • WordPress version: 6.3.1
  • First release: May 15, 2018
  • Latest release: May 18, 2018
  • Number of updates: 12
  • Update frequency: every 0.3 days
  • Top authors: Jurero123 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /1,109 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼8.12ms] Passed 4 tests

An overview of server-side resources used by Email Address Validator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0427.72 ▼13.86
Dashboard /wp-admin3.37 ▲0.0651.18 ▲4.93
Posts /wp-admin/edit.php3.48 ▲0.1247.74 ▼3.12
Add New Post /wp-admin/post-new.php5.95 ▲0.0683.32 ▼18.17
Media Library /wp-admin/upload.php3.29 ▲0.0635.60 ▲2.69
Email Validator /wp-admin/options-general.php?page=email-address-validator3.2737.92

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Email Address Validator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲15713.54 ▼0.858.61 ▲6.7343.15 ▼7.77
Dashboard /wp-admin2,213 ▲254.84 ▼1.05106.13 ▲2.9238.14 ▼5.17
Posts /wp-admin/edit.php2,093 ▲11.99 ▼0.0638.91 ▼1.7634.92 ▼5.18
Add New Post /wp-admin/post-new.php1,536 ▲323.46 ▲0.08675.03 ▲79.0155.93 ▼1.79
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.0594.03 ▼12.1441.66 ▼2.46
Email Validator /wp-admin/options-general.php?page=email-address-validator8572.0323.5026.66

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 detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=email-address-validator
    • > Notice in wp-content/plugins/email-address-validator/admin/partials/email-address-validator-admin-display.php+33
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/email-address-validator/admin/partials/email-address-validator-admin-display.php:19

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 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === email-address-validator === )
You can look at the official readme.txt

email-address-validator/email-address-validator.php Passed 13 tests

This is the main PHP file of "Email Address Validator" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
106 characters long description:
Check email address inputs for common typos and fix them with only one click. Easily define custom checks.

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
Success! There were no dangerous files found in this plugin336 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP11176473266
JavaScript331053
CSS22417

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.10
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin