78% mailboxvalidator-email-validator

Code Review | MailboxValidator Email Validator

WordPress plugin MailboxValidator Email Validator scored78%from 54 tests.

About plugin

  • Plugin page: mailboxvalidator-...
  • Plugin version: 1.6.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 19, 2019
  • Latest release: Nov 15, 2023
  • Number of updates: 107
  • Update frequency: every 15.6 days
  • Top authors: mailboxvalidator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /5,249 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼14.48ms] Passed 4 tests

Analyzing server-side resources used by MailboxValidator Email Validator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2635.83 ▼7.85
Dashboard /wp-admin3.46 ▲0.1235.17 ▼25.65
Posts /wp-admin/edit.php3.53 ▲0.1738.50 ▼4.01
Add New Post /wp-admin/post-new.php5.70 ▼0.1880.79 ▼20.41
Media Library /wp-admin/upload.php3.47 ▲0.2433.07 ▲1.85
MailboxValidator Email Validator /wp-admin/options-general.php?page=mailboxvalidator-email-validator3.4429.10

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: 1 new table, 6 new options
New tables
wp_mailboxvalidator_email_validator_log
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

MailboxValidator Email Validator: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7114.65 ▲0.501.56 ▼0.1635.71 ▼8.47
Dashboard /wp-admin2,223 ▲425.22 ▼0.49101.10 ▼4.1744.93 ▼4.79
Posts /wp-admin/edit.php2,131 ▲312.39 ▲0.4544.86 ▲6.1534.60 ▲0.84
Add New Post /wp-admin/post-new.php1,557 ▲2225.26 ▲6.74631.04 ▼38.7546.15 ▼13.01
Media Library /wp-admin/upload.php1,431 ▲344.72 ▲0.4699.85 ▼3.7342.39 ▼2.59
MailboxValidator Email Validator /wp-admin/options-general.php?page=mailboxvalidator-email-validator1,0172.4033.7936.54

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • 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
    • > GET request to /wp-admin/options-general.php?page=mailboxvalidator-email-validator
    • > Notice in wp-content/plugins/mailboxvalidator-email-validator/mailboxvalidator-email-validator.php+542
    Trying to access array offset on value of type bool

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 items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/mailboxvalidator-email-validator/mailboxvalidator-email-validator.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mailboxvalidator-email-validator/mailboxvalidator-email-validator.php:59
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mailboxvalidator-email-validator/mailboxvalidator-email-validator.php on line 20
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/mailboxvalidator-email-validator/mailboxvalidator-email-validator.php on line 20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention: The official readme.txt might help

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

The principal PHP file in "MailboxValidator Email Validator" v. 1.6.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 235 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,860 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP102743281,422
Markdown1510164
PO File1420138
JavaScript3134270
JSON20066

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity55.20
▷ Minimum class complexity1.00
▷ Maximum class complexity211.00
Average method complexity4.82
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods72
▷ Static methods34.17%
▷ Public methods6286.11%
▷ Protected methods00.00%
▷ Private methods1013.89%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin