94% mymail-simple-email-verify

Code Review | Simple Email Verify for MyMail

WordPress plugin Simple Email Verify for MyMail scored 94% from 54 tests.

About plugin

  • Plugin page: mymail-simple-ema...
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.7.1
  • WordPress version: 5.9.2
  • First release: Jun 9, 2016
  • Latest release: Jan 12, 2021
  • Number of updates: 25
  • Update frequency: every 67.1 days
  • Top authors: revaxarts (92%)everpress (12%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 3,269 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Simple Email Verify for MyMail
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0654.08 ▼0.12
Dashboard /wp-admin3.46 ▲0.0633.56 ▲1.62
Posts /wp-admin/edit.php3.69 ▲0.0637.29 ▲0.14
Add New Post /wp-admin/post-new.php6.93 ▼0.0493.20 ▼1,176.22
Media Library /wp-admin/upload.php3.35 ▲0.0524.26 ▼3.03

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Email Verify for MyMail
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲3416.01 ▲0.356.20 ▼0.332.41 ▼0.28
Dashboard /wp-admin2,920 ▲626.20 ▼0.02119.91 ▼11.68156.79 ▼0.38
Posts /wp-admin/edit.php2,710 ▲193.23 ▲0.0060.64 ▼4.06140.39 ▼4.25
Add New Post /wp-admin/post-new.php1,767 ▲7721.73 ▲0.80458.29 ▲45.29153.87 ▼0.81
Media Library /wp-admin/upload.php1,723 ▲315.52 ▼0.05134.37 ▼2.59182.36 ▼0.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mymail-simple-email-verify/mymail-simple-email-verify.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: mymail, newsletter, email, verification

mymail-simple-email-verify/mymail-simple-email-verify.php Passed 13 tests

The entry point to "Simple Email Verify for MyMail" version 0.4 is a PHP file that has certain tags in its header comment area
41 characters long description:
Verifies your subscribers email addresses

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 detected668 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2167388668

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.67
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods2050.00%
▷ Protected methods1640.00%
▷ Private methods410.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants17
▷ Global constants211.76%
▷ Class constants1588.24%
▷ Public constants15100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin