68% zerobounce

Code Review | ZeroBounce Email Verification & Validation

WordPress plugin ZeroBounce Email Verification & Validation scored68%from 54 tests.

About plugin

  • Plugin page: zerobounce
  • Plugin version: 1.0.15
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Sep 29, 2017
  • Latest release: Nov 22, 2023
  • Number of updates: 24
  • Update frequency: every 93.5 days
  • Top authors: zerobounce (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /3,454 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
Install script ran successfully

Server metrics [RAM: ▲0.36MB] [CPU: ▼1.86ms] Passed 4 tests

An overview of server-side resources used by ZeroBounce Email Verification & Validation
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3538.80 ▼0.76
Dashboard /wp-admin3.73 ▲0.3848.62 ▼11.28
Posts /wp-admin/edit.php3.78 ▲0.4251.75 ▲4.15
Add New Post /wp-admin/post-new.php6.25 ▲0.35100.06 ▲9.64
Media Library /wp-admin/upload.php3.59 ▲0.3536.75 ▲0.45
Settings /wp-admin/admin.php?page=zerobounce-email-validator-settings3.5637.39
Dashboard /wp-admin/admin.php?page=zerobounce-email-validator3.5735.19
Logs /wp-admin/admin.php?page=zerobounce-email-validator-logs3.5734.05
Tools /wp-admin/admin.php?page=zerobounce-email-validator-tools3.5734.99

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 35 new files
Database: 2 new tables, 8 new options
New tables
wp_zerobounce_validation_logs
wp_zerobounce_credit_usage_logs
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
zerobounce_settings_validation_forms
widget_theysaidso_widget
zerobounce_settings_validation_pass
db_upgraded

Browser metrics Passed 4 tests

ZeroBounce Email Verification & Validation: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲16713.76 ▼0.527.80 ▲6.2338.08 ▲0.32
Dashboard /wp-admin2,226 ▲495.60 ▼0.0491.26 ▼10.5241.43 ▼3.86
Posts /wp-admin/edit.php2,131 ▲281.94 ▼0.0340.85 ▲0.6037.54 ▲2.07
Add New Post /wp-admin/post-new.php1,553 ▲2423.12 ▼0.07574.95 ▼41.0357.59 ▲10.66
Media Library /wp-admin/upload.php1,428 ▲284.24 ▲0.0796.58 ▼1.9541.48 ▼2.61
Settings /wp-admin/admin.php?page=zerobounce-email-validator-settings1,1082.0934.2248.65
Dashboard /wp-admin/admin.php?page=zerobounce-email-validator2,6356.75255.5790.58
Logs /wp-admin/admin.php?page=zerobounce-email-validator-logs1,6603.39110.5447.65
Tools /wp-admin/admin.php?page=zerobounce-email-validator-tools9972.0832.0922.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie tables were found after uninstall: 2 tables
    • wp_zerobounce_credit_usage_logs
    • wp_zerobounce_validation_logs
  • Zombie WordPress options detected upon uninstall: 8 options
    • zerobounce_settings_validation_forms
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • zerobounce_settings_validation_pass
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=zerobounce-email-validator-settings
    • > Notice in wp-content/plugins/zerobounce/admin/class-zerobounce-email-validator-admin.php+401
    Undefined offset: 0

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/zerobounce/admin/partials/zerobounce-email-validator-admin-tools-display.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/zerobounce/admin/partials/zerobounce-email-validator-admin-settings-display.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/zerobounce/admin/partials/zerobounce-email-validator-admin-logs-display.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/zerobounce/admin/partials/zerobounce-email-validator-admin-display.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: anti-spam, email validator, email verifier, spamtrap, email verification...

zerobounce/zerobounce-email-validator.php 85% from 13 tests

The primary PHP file in "ZeroBounce Email Verification & Validation" version 1.0.15 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zerobounce.php" instead of "zerobounce-email-validator.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,397 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP163704781,658
JavaScript56551591
CSS472178
PO File1122246
SVG10024

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity34.62
▷ Minimum class complexity1.00
▷ Maximum class complexity114.00
Average method complexity5.20
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods64
▷ Static methods46.25%
▷ Public methods5687.50%
▷ Protected methods00.00%
▷ Private methods812.50%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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