88% check-server-mail-smtp

Code Review | Check-Mail-SMTP

WordPress plugin Check-Mail-SMTP scored 88% from 54 tests.

About plugin

  • Plugin page: check-server-mail...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.2
  • WordPress version: 5.9.2
  • First release: May 24, 2019
  • Latest release: May 24, 2019
  • Number of updates: 15
  • Update frequency: every 0.1 days
  • Top authors: jploftsocial (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 446 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼281.84ms] Passed 4 tests

Analyzing server-side resources used by Check-Mail-SMTP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.2862.49 ▲13.97
Dashboard /wp-admin3.55 ▲0.1544.61 ▲10.33
Posts /wp-admin/edit.php3.78 ▲0.1450.23 ▲14.79
Add New Post /wp-admin/post-new.php7.00 ▲0.04102.33 ▼1,155.21
Media Library /wp-admin/upload.php3.41 ▲0.1132.91 ▲3.55
Reports /wp-admin/admin.php?page=reports3.4133.87
Check Sever Mail /wp-admin/admin.php?page=check-sever-mail3.4235.14
SMTP /wp-admin/admin.php?page=smtp3.4134.67

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: 1 new table, no new options
New tables
wp_reports

Browser metrics Passed 4 tests

Checking browser requirements for Check-Mail-SMTP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,034 ▲27717.62 ▲1.996.23 ▲0.432.18 ▼0.32
Dashboard /wp-admin3,144 ▲2868.29 ▲2.11160.47 ▲27.07120.93 ▼44.94
Posts /wp-admin/edit.php2,975 ▲2815.01 ▲1.7683.55 ▲18.94111.00 ▼33.22
Add New Post /wp-admin/post-new.php1,751 ▼120.91 ▼0.66434.81 ▼14.27180.36 ▲24.44
Media Library /wp-admin/upload.php1,761 ▲665.72 ▲0.20110.89 ▼31.23196.49 ▲10.98
Reports /wp-admin/admin.php?page=reports1,4435.3784.5380.81
Check Sever Mail /wp-admin/admin.php?page=check-sever-mail1,3404.6180.4886.63
SMTP /wp-admin/admin.php?page=smtp1,5114.7670.3399.74

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% 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)
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 fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/check-server-mail-smtp/reports.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=smtp
    • > Javascript (severe) in unknown
    /wp-content/plugins/check-server-mail-smtp/js/bootstrap.min.js?ver=5.9.2 5:215 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (SMTP Mailer Settings) image not found
The official readme.txt might help

check-server-mail-smtp/main.php 92% from 13 tests

"Check-Mail-SMTP" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("check-server-mail-smtp.php" instead of "main.php")

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
Good job! No executable or dangerous file extensions detected868 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP316699704
JavaScript209162
CSS2052

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity4.82
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/sort_asc.png0.16KB0.25KB0.00%
images/sort_both (1).png0.20KB0.29KB0.00%
images/sort_asc_disabled.png0.14KB0.25KB0.00%
images/sort_desc_disabled.png0.14KB0.25KB0.00%
images/sort_desc.png0.15KB0.25KB0.00%