72% wp-email-verify

Code Review | WP Email Verify

WordPress plugin WP Email Verify scored72%from 54 tests.

About plugin

  • Plugin page: wp-email-verify
  • Plugin version: 2.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.9
  • WordPress version: 6.3.1
  • First release: May 6, 2017
  • Latest release: Aug 21, 2018
  • Number of updates: 39
  • Update frequency: every 12.3 days
  • Top authors: naqirizvi (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,176 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.14ms] Passed 4 tests

This is a short check of server-side resources used by WP Email Verify
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.62 ▼3.48
Dashboard /wp-admin3.35 ▲0.0055.26 ▼14.85
Posts /wp-admin/edit.php3.40 ▲0.0456.34 ▲5.11
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.42 ▼11.54
Media Library /wp-admin/upload.php3.27 ▲0.0437.20 ▲1.31
WP Email Verify /wp-admin/options-general.php?page=wp-email-verify/plugin_interface.php3.3132.69

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
emailchecker_server_status
theysaidso_admin_options
can_compress_scripts
emailchecker_server_msg
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Email Verify
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.39 ▼1.014.60 ▲2.4043.92 ▼3.75
Dashboard /wp-admin2,215 ▲264.88 ▼1.05102.95 ▼9.6039.52 ▼5.33
Posts /wp-admin/edit.php2,102 ▲132.04 ▲0.0141.81 ▲7.2933.54 ▼6.85
Add New Post /wp-admin/post-new.php1,544 ▲718.48 ▲0.35605.62 ▼45.1957.03 ▲5.61
Media Library /wp-admin/upload.php1,391 ▲64.20 ▲0.03104.20 ▲5.5346.21 ▲0.52
WP Email Verify /wp-admin/options-general.php?page=wp-email-verify/plugin_interface.php1,2122.1528.1849.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • emailchecker_server_status
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • emailchecker_server_msg

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-email-verify/plugin_interface.php
    • > Notice in wp-content/plugins/wp-email-verify/includes/main.php+18
    Undefined index: emailchecker_api_key_submit
    • > GET request to /wp-admin/options-general.php?page=wp-email-verify/plugin_interface.php
    • > Notice in wp-content/plugins/wp-email-verify/includes/main.php+42
    Undefined index: emailchecker_api_key_remove
    • > GET request to /wp-admin/options-general.php?page=wp-email-verify/plugin_interface.php
    • > Notice in wp-content/plugins/wp-email-verify/includes/main.php+52
    Undefined index: emailchecker_list_submit
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-email-verify/plugin_interface.php
    • > Notice in wp-content/plugins/wp-email-verify/includes/main.php+161
    Undefined index: 2023-10-12
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-email-verify/plugin_interface.php
    • > Notice in wp-content/plugins/wp-email-verify/includes/main.php+161
    Trying to access array offset on value of type null

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
Almost there! Just fix the following items
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-email-verify/plugin_interface.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-email-verify/plugin_interface.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-email-verify/includes/emailchecker_stat.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-email-verify/includes/emailchecker_footer.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-email-verify/includes/main.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-email-verify/includes/emailchecker_header.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=wp-email-verify/plugin_interface.php
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/options-general.php?page=wp-email-verify/plugin_interface.php
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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
Attributes that require attention:
  • Screenshots: Screenshot #1 (Admin Panel Settings) image required
  • Tags: There are too many tags (29 tag instead of maximum 10)
Please take inspiration from this readme.txt

wp-email-verify/true-email-checker.php 85% from 13 tests

The entry point to "WP Email Verify" version 2.0.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-email-verify.php" instead of "true-email-checker.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 276 characters long)

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
No dangerous file extensions were detected995 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP66433989
CSS1006

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.41MB with 0.29MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png174.77KB46.37KB▼ 73.47%
screenshot-3.png93.96KB27.12KB▼ 71.13%
screenshot-2.png149.46KB42.68KB▼ 71.44%