84% email-dns-verification

Code Review | Email DNS Verification

WordPress plugin Email DNS Verification scored84%from 54 tests.

About plugin

  • Plugin page: email-dns-verific...
  • Plugin version: 1.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-5.6
  • WordPress version: 6.3.1
  • First release: Jul 26, 2019
  • Latest release: Dec 22, 2020
  • Number of updates: 12
  • Update frequency: every 42.9 days
  • Top authors: AkSDvP (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,004 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.15ms] Passed 4 tests

Analyzing server-side resources used by Email DNS Verification
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.37 ▼5.14
Dashboard /wp-admin3.31 ▲0.0149.67 ▲0.99
Posts /wp-admin/edit.php3.36 ▲0.0149.24 ▲5.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.60 ▼12.90
Media Library /wp-admin/upload.php3.23 ▲0.0136.48 ▲0.46

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Email DNS Verification
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.26 ▼0.091.94 ▲0.0440.45 ▼3.44
Dashboard /wp-admin2,195 ▲185.49 ▼0.1888.04 ▼10.4340.69 ▼1.95
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0536.08 ▼2.7632.41 ▼2.58
Add New Post /wp-admin/post-new.php1,528 ▲223.31 ▲0.33668.17 ▲50.2657.86 ▲6.49
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.0594.76 ▼13.1342.37 ▼4.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/email-dns-verification/email-dns-verification.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: email dns verification

email-dns-verification/email-dns-verification.php 92% from 13 tests

This is the main PHP file of "Email DNS Verification" version 1.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 218 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin41 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3279141

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods466.67%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected