68% truemail-email-validator

Code Review | TrueMail Email Validator

WordPress plugin TrueMail Email Validator scored68%from 54 tests.

About plugin

  • Plugin page: truemail-email-va...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4.1
  • WordPress version: 6.3.1
  • First release: Sep 8, 2020
  • Latest release: Sep 14, 2020
  • Number of updates: 10
  • Update frequency: every 1.0 days
  • Top authors: truemail (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /747 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.93MB] [CPU: ▼37.29ms] Passed 4 tests

Server-side resources used by TrueMail Email Validator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.63 ▼4.17
Dashboard /wp-admin3.03 ▼0.3228.09 ▼36.00
Posts /wp-admin/edit.php3.03 ▼0.3325.50 ▼23.71
Add New Post /wp-admin/post-new.php3.03 ▼2.8626.26 ▼75.95
Media Library /wp-admin/upload.php3.03 ▼0.2022.91 ▼13.50
TrueMail Email Validator /wp-admin/options-general.php?page=truemail-email-validator3.0329.38

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
TrueMail Api Key
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for TrueMail Email Validator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲5214.64 ▲0.362.12 ▲0.0943.41 ▼1.36
Dashboard /wp-admin2,216 ▲365.55 ▼0.1286.72 ▼3.2636.61 ▼2.10
Posts /wp-admin/edit.php2,130 ▲301.99 ▲0.0036.18 ▼1.8737.16 ▲3.80
Add New Post /wp-admin/post-new.php1,393 ▼13320.72 ▼2.52597.52 ▼145.3733.65 ▼20.60
Media Library /wp-admin/upload.php1,427 ▲274.25 ▲0.10102.72 ▼16.2442.09 ▼6.43
TrueMail Email Validator /wp-admin/options-general.php?page=truemail-email-validator8772.1627.8229.48

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
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/truemail-email-validator/includes/tmp-functions.php+129
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • TrueMail Api Key
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=truemail-email-validator
    • > Notice in wp-content/plugins/truemail-email-validator/includes/tmp-functions.php+129
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/truemail-email-validator/includes/tmp-functions.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/truemail-email-validator/truemail-plugin.php:17

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
7 plugin tags: email tester, email validation, email verify, email verifier, real-time form validation...

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

The entry point to "TrueMail Email Validator" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("truemail-email-validator.php" instead of "truemail-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin202 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22614111
Markdown144091

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.45
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected