94% mymail-dummy-mailer

Code Review | MyMail Dummy Mailer

WordPress plugin MyMail Dummy Mailer scored 94% from 54 tests.

About plugin

  • Plugin page: mymail-dummy-mailer
  • Plugin version: 0.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.7.2
  • WordPress version: 5.9.2
  • First release: Sep 24, 2014
  • Latest release: Jan 12, 2021
  • Number of updates: 37
  • Update frequency: every 62.9 days
  • Top authors: revaxarts (94.59%)everpress (8.11%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,887 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.02MB] [CPU: ▼314.12ms] Passed 4 tests

A check of server-side resources used by MyMail Dummy Mailer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0162.38 ▼31.47
Dashboard /wp-admin3.41 ▲0.0137.20 ▲2.50
Posts /wp-admin/edit.php3.65 ▲0.0137.84 ▼0.38
Add New Post /wp-admin/post-new.php6.89 ▼0.0895.02 ▼1,222.67
Media Library /wp-admin/upload.php3.30 ▲0.0124.69 ▼1.94

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for MyMail Dummy Mailer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.85 ▲0.565.85 ▼2.322.72 ▼0.09
Dashboard /wp-admin2,895 ▲386.10 ▲0.00124.12 ▼1.81189.94 ▲23.83
Posts /wp-admin/edit.php2,673 ▼213.24 ▼0.0065.00 ▼2.95138.06 ▼6.41
Add New Post /wp-admin/post-new.php1,661 ▼9120.73 ▼1.08422.31 ▼35.31213.83 ▲32.26
Media Library /wp-admin/upload.php1,692 ▼35.58 ▲0.05153.64 ▼0.29209.47 ▼19.82

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no 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 everything seems fine, this is not an exhaustive test

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/mymail-dummy-mailer/mymail-dummy-mailer.php:27

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: newsletter, revaxarts, mymail, email, mailer...

mymail-dummy-mailer/mymail-dummy-mailer.php Passed 13 tests

The principal PHP file in "MyMail Dummy Mailer" v. 0.5.1 is loaded by WordPress automatically on each request
27 characters long description:
A Dummy Mailer for MyMail 2

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin298 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1123145298

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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