77% expert-email-validator

Code Review | Expert Email Validator

WordPress plugin Expert Email Validator scored77%from 54 tests.

About plugin

  • Plugin page: expert-email-vali...
  • Plugin version: 3.2.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-5.8
  • WordPress version: 6.3.1
  • First release: Jan 6, 2022
  • Latest release: Jan 6, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: expertitservicede (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,032 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.02MB] [CPU: ▼9.11ms] Passed 4 tests

An overview of server-side resources used by Expert Email Validator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.43 ▲0.95
Dashboard /wp-admin3.33 ▼0.0151.02 ▼15.93
Posts /wp-admin/edit.php3.39 ▲0.0350.38 ▼2.62
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.53 ▼18.82
Media Library /wp-admin/upload.php3.26 ▲0.0339.29 ▲1.30
Expert Email Validator /wp-admin/options-general.php?page=itexpert-evalidator3.21258.45

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
evalidator_api_key

Browser metrics Passed 4 tests

Expert Email Validator: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲11613.78 ▼0.848.30 ▲6.2941.66 ▼1.25
Dashboard /wp-admin2,193 ▲195.55 ▼0.1189.22 ▼15.0340.05 ▼2.05
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0534.25 ▼3.4036.05 ▼1.04
Add New Post /wp-admin/post-new.php1,529 ▲323.35 ▲0.30684.49 ▼4.2358.23 ▼3.18
Media Library /wp-admin/upload.php1,404 ▲74.18 ▼0.09110.48 ▼12.2949.32 ▼0.31
Expert Email Validator /wp-admin/options-general.php?page=itexpert-evalidator9925.60154.8764.81

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • evalidator_api_key

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=itexpert-evalidator
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=itexpert-evalidator
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/expert-email-validator/admin_options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/expert-email-validator/plugin.php:13

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 86% 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
These attributes need to be fixed:
  • Tags: Too many tags (25 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

expert-email-validator/plugin.php 77% from 13 tests

The main PHP file in "Expert Email Validator" ver. 3.2.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("expert-email-validator.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected181 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22714130
JavaScript18351

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin