10% wp-mail-validator

Code Review | WP-Mail-Validator

WordPress plugin WP-Mail-Validator scored 10% from 54 tests.

About plugin

  • Plugin page: wp-mail-validator
  • Plugin version: 0.6.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.0-5.4
  • WordPress version: 6.3.1
  • First release: Feb 13, 2006
  • Latest release: Apr 13, 2020
  • Number of updates: 50
  • Update frequency: every 103.5 days
  • Top authors: kimpenhaus (100%)matt (4%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,547 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
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/wp-mail-validator/email-validator.inc.php+202
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.79MB] [CPU: ▼50.31ms] Passed 4 tests

An overview of server-side resources used by WP-Mail-Validator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.19 ▼1.275.00 ▼36.14
Dashboard /wp-admin2.21 ▼1.097.21 ▼42.36
Posts /wp-admin/edit.php2.21 ▼1.147.90 ▼37.13
Add New Post /wp-admin/post-new.php2.21 ▼3.678.65 ▼85.61
Media Library /wp-admin/upload.php2.21 ▼1.026.42 ▼27.80
WP-Mail-Validator /wp-admin/options-general.php?page=wp-mail-validator2.215.98

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP-Mail-Validator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.74 ▲0.551.59 ▼0.2245.41 ▼3.18
Dashboard /wp-admin2,210 ▲254.84 ▼0.17107.70 ▼8.3140.62 ▼8.03
Posts /wp-admin/edit.php2,093 ▲41.97 ▼0.0840.30 ▲4.7435.07 ▼0.11
Add New Post /wp-admin/post-new.php1,536 ▲2223.51 ▲5.91587.55 ▼70.8146.92 ▼11.68
Media Library /wp-admin/upload.php1,392 ▲44.22 ▼0.0795.36 ▼5.9441.74 ▼7.96
WP-Mail-Validator /wp-admin/options-general.php?page=wp-mail-validator1,0891.7329.7327.80

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
    • > Deprecated in wp-content/plugins/wp-mail-validator/email-validator.inc.php+202
    Array and string offset access syntax with curly braces is deprecated
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=wp-mail-validator
    • > Deprecated in wp-content/plugins/wp-mail-validator/email-validator.inc.php+202
    Array and string offset access syntax with curly braces is deprecated

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-mail-validator/wp-mail-validator.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

wp-mail-validator/wp-mail-validator.php 92% from 13 tests

The main PHP file in "WP-Mail-Validator" ver. 0.6.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 200 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected687 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP313769618
Markdown121051
JavaScript20218

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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