84% email-verify

Code Review | Email Verify

WordPress plugin Email Verify scored 84% from 54 tests.

About plugin

  • Plugin page: email-verify
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.9
  • WordPress version: 5.9.2
  • First release: Dec 6, 2018
  • Latest release: Jan 28, 2022
  • Number of updates: 38
  • Update frequency: every 30.3 days
  • Top authors: everpress (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active / 1,395 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼294.54ms] Passed 4 tests

A check of server-side resources used by Email Verify
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0552.43 ▼8.66
Dashboard /wp-admin3.48 ▲0.0734.73 ▲1.05
Posts /wp-admin/edit.php3.70 ▲0.0636.67 ▼3.86
Add New Post /wp-admin/post-new.php6.94 ▼0.03109.83 ▼1,165.66
Media Library /wp-admin/upload.php3.36 ▲0.0624.43 ▲0.01
Email Verification /wp-admin/options-general.php?page=email_verify3.3422.99

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 11 new options
New WordPress options
email_verify_emails
email_verify_safelist_emails
email_verify_safelist
email_verify_domains
email_verify_check_smtp
email_verify_domains_error
email_verify_dep_error
email_verify_dep
email_verify_emails_error
email_verify_check_mx
...

Browser metrics Passed 4 tests

Checking browser requirements for Email Verify
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲2016.14 ▲0.465.86 ▼1.802.15 ▼0.14
Dashboard /wp-admin2,893 ▲356.09 ▼0.09120.64 ▼21.11208.51 ▲17.51
Posts /wp-admin/edit.php2,696 ▲83.24 ▲0.0064.03 ▼2.09135.61 ▼8.38
Add New Post /wp-admin/post-new.php1,664 ▼8816.21 ▼5.49388.89 ▼72.58199.55 ▲2.00
Media Library /wp-admin/upload.php1,700 ▲25.54 ▲0.02148.15 ▼7.85241.88 ▼9.17
Email Verification /wp-admin/options-general.php?page=email_verify1,2242.3956.03129.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 11 options in the database
    • email_verify_check_mx
    • email_verify_safelist_emails
    • email_verify_check_error
    • email_verify_emails_error
    • email_verify_dep_error
    • email_verify_check_smtp
    • email_verify_domains_error
    • email_verify_dep
    • email_verify_emails
    • email_verify_safelist
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/email-verify/views/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/email-verify/classes/emailverify.class.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: verification, email

email-verify/email-verify.php Passed 13 tests

The main file in "Email Verify" v. 1.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
79 characters long description:
Verifies your Users email addresses and blocks them from register to your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected695 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4159354695

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.17
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods44
▷ Static methods00.00%
▷ Public methods2352.27%
▷ Protected methods1636.36%
▷ Private methods511.36%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants211.76%
▷ Class constants1588.24%
▷ Public constants15100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin