10% wpmailmon

Code Review | WPMailMon

WordPress plugin WPMailMon scored 10% from 54 tests.

About plugin

  • Plugin page: wpmailmon
  • Plugin version: 1.3.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-5.7
  • WordPress version: 5.9.2
  • First release: Mar 6, 2021
  • Latest release: Mar 10, 2021
  • Number of updates: 8
  • Update frequency: every 0.6 days
  • Top authors: gitcoded (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 190 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/wpmailmon/wpmailmon.php+1872
    syntax error, unexpected 'else' (T_ELSE), expecting end of file

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

Analyzing server-side resources used by WPMailMon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0159.67 ▲7.26
Dashboard /wp-admin3.41 ▲0.0030.63 ▼3.46
Posts /wp-admin/edit.php3.64 ▲0.0037.70 ▼3.90
Add New Post /wp-admin/post-new.php6.88 ▼0.0992.73 ▼1,182.44
Media Library /wp-admin/upload.php3.30 ▲0.0025.48 ▼4.37

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WPMailMon
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.78 ▲0.615.60 ▼0.072.18 ▼0.57
Dashboard /wp-admin2,892 ▲316.03 ▼0.22118.82 ▼13.53159.69 ▲0.63
Posts /wp-admin/edit.php2,688 ▼33.23 ▼0.0194.85 ▲32.29151.40 ▲4.67
Add New Post /wp-admin/post-new.php1,661 ▼11816.51 ▼5.06405.80 ▼189.41177.11 ▲7.72
Media Library /wp-admin/upload.php1,698 ▼35.53 ▲0.07147.99 ▲5.69195.25 ▲8.84

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 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected 'else' (T_ELSE), expecting end of file in wp-content/plugins/wpmailmon/wpmailmon.php on line 1872

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: mail, smtp, authentication, security, protection

wpmailmon/wpmailmon.php Passed 13 tests

The main file in "WPMailMon" v. 1.3.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
Protect & Monitor your Outgoing Mail & add SMTP authentication.

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
Good job! No executable or dangerous file extensions detected2,647 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP14332981,923
CSS56876576
JavaScript34224148

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity55.50
▷ Minimum class complexity21.00
▷ Maximum class complexity90.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods35
▷ Static methods720.00%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/disabled.png0.38KB0.42KB0.00%
images/email.png0.55KB0.63KB0.00%
images/shield.png0.64KB0.52KB▼ 18.84%
images/time.png0.75KB0.92KB0.00%