78% debounce-io-email-validator

Code Review | DeBounce.io Email Validator

WordPress plugin DeBounce.io Email Validator scored78%from 54 tests.

About plugin

  • Plugin page: debounce-io-email...
  • Plugin version: 5.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 15, 2018
  • Latest release: Nov 29, 2023
  • Number of updates: 52
  • Update frequency: every 36.6 days
  • Top authors: debounce (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

400+ active /7,780 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▲1.65ms] Passed 4 tests

An overview of server-side resources used by DeBounce.io Email Validator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.88 ▲0.10
Dashboard /wp-admin3.47 ▲0.1750.20 ▲2.07
Posts /wp-admin/edit.php3.59 ▲0.2352.22 ▲7.90
Add New Post /wp-admin/post-new.php6.06 ▲0.1790.43 ▼3.49
Media Library /wp-admin/upload.php3.39 ▲0.1638.02 ▲8.03
Translate /wp-admin/admin.php?page=debounce_email_validator_translate3.3434.68
Tools /wp-admin/admin.php?page=debounce_email_validator_tools3.3435.27
About /wp-admin/admin.php?page=debounce_email_validator_about3.3433.30
Settings /wp-admin/admin.php?page=debounce_email_validator3.3936.74

Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 12 new options
New WordPress options
debounce_version
zb_accept_category_catchall
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
debounceio_timeout
db_upgraded
widget_recent-posts
zb_accept_category_unknown
...

Browser metrics Passed 4 tests

An overview of browser requirements for DeBounce.io Email Validator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲8814.35 ▲0.081.61 ▼0.0038.11 ▼5.31
Dashboard /wp-admin2,258 ▲815.64 ▼0.0396.02 ▲4.5437.81 ▼3.66
Posts /wp-admin/edit.php2,164 ▲642.01 ▼0.1440.83 ▲0.4534.95 ▼2.64
Add New Post /wp-admin/post-new.php1,557 ▲2323.18 ▼1.85591.01 ▼31.7447.30 ▼19.20
Media Library /wp-admin/upload.php1,460 ▲604.27 ▲0.09109.14 ▲12.9948.81 ▲7.86
Translate /wp-admin/admin.php?page=debounce_email_validator_translate7101.147.3614.93
Tools /wp-admin/admin.php?page=debounce_email_validator_tools7101.357.5218.75
About /wp-admin/admin.php?page=debounce_email_validator_about7101.147.5516.01
Settings /wp-admin/admin.php?page=debounce_email_validator1,2071.9725.4157.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 12 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • zb_accept_category_valid
    • debounceio_timeout
    • debounce_version
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • validation_on_zero_ballance
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=debounce_email_validator_about
    • > Warning in wp-includes/pluggable.php+1438
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/debounce-io-email-validator/src/admin-partials/about.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/debounce-io-email-validator/src/admin-partials/translate.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/debounce-io-email-validator/src/admin-partials/settings.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/debounce-io-email-validator/src/admin-partials/tools.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debounce-io-email-validator/plugin.php:18

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: email checker, email verifier, email, woocommerce, spam-trap...

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

The primary PHP file in "DeBounce.io Email Validator" version 5.2.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("debounce-io-email-validator.php" instead of "plugin.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 252 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
Everything looks great! No dangerous files found in this plugin1,848 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP194235311,454
CSS1411203
JavaScript3371191

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity12.42
▷ Minimum class complexity2.00
▷ Maximum class complexity48.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods96
▷ Static methods22.08%
▷ Public methods9396.88%
▷ Protected methods22.08%
▷ Private methods11.04%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/debounce-logo.png6.64KB4.83KB▼ 27.37%