94% mailster-email-verify

Code Review | Mailster Email Verify

WordPress plugin Mailster Email Verify scored 94% from 53 tests.

About plugin

  • Plugin page: mailster-email-ve...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8
  • WordPress version: 5.8.1
  • First release: Jan 13, 2017
  • Latest release: Oct 4, 2021
  • Number of updates: 40
  • Update frequency: every 43.1 days
  • Top authors: everpress (100%)

Code review

53 tests

User reviews

4 reviews

Install metrics

1,000+ active / 17,429 total downloads

Benchmarks

Plugin footprint Passed 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: ▼514.60ms] Passed 4 tests

An overview of server-side resources used by Mailster Email Verify
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1636.00 ▲13.52
Dashboard /wp-admin3.10 ▲0.0541.06 ▼1.06
Posts /wp-admin/edit.php3.15 ▲0.0442.53 ▲0.04
Add New Post /wp-admin/post-new.php5.46 ▲0.0380.75 ▼2,052.69
Media Library /wp-admin/upload.php3.04 ▲0.0436.44 ▼4.69

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mailster Email Verify
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲12115.92 ▲0.017.00 ▲0.3346.82 ▼2.54
Dashboard /wp-admin2,987 ▲1375.95 ▼0.02134.67 ▲9.49103.97 ▲0.38
Posts /wp-admin/edit.php2,731 ▲252.68 ▼0.0263.18 ▼4.5286.81 ▼7.51
Add New Post /wp-admin/post-new.php1,668 ▲18918.69 ▲1.59369.90 ▲25.59103.98 ▼6.19
Media Library /wp-admin/upload.php1,797 ▲255.03 ▲0.03168.35 ▲17.95109.33 ▼3.82

Uninstaller [IO: ▲0.00MB] [DB: ▲0.72MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mailster-email-verify/classes/emailverify.class.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mailster-email-verify/views/settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: mailster, verification, email, newsletter

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

This is the main PHP file of "Mailster Email Verify" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
41 characters long description:
Verifies your subscribers email addresses

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
No dangerous file extensions were detected690 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4171394690

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.58
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods43
▷ Static methods00.00%
▷ Public methods2148.84%
▷ Protected methods1637.21%
▷ Private methods613.95%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants316.67%
▷ Class constants1583.33%
▷ Public constants15100.00%

Plugin size Passed 1 test

Image compression Passed 1 test

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