78% check-server-mail-smtp

Code Review | Check-Mail-SMTP

WordPress plugin Check-Mail-SMTP scored78%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: 6.3.1
  • 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 /622 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▲2.74ms] Passed 4 tests

An overview of server-side resources used by Check-Mail-SMTP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1446.00 ▲3.19
Dashboard /wp-admin3.35 ▲0.0456.20 ▲7.45
Posts /wp-admin/edit.php3.46 ▲0.1055.17 ▲0.58
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.73 ▼0.27
Media Library /wp-admin/upload.php3.25 ▲0.0243.49 ▲9.12
Check Sever Mail /wp-admin/admin.php?page=check-sever-mail3.2941.20
Reports /wp-admin/admin.php?page=reports3.2742.61
SMTP /wp-admin/admin.php?page=smtp3.2438.83

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: 1 new table, 6 new options
New tables
wp_reports
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Check-Mail-SMTP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,973 ▲21214.71 ▲0.361.90 ▼0.0244.30 ▲2.31
Dashboard /wp-admin2,375 ▲1986.40 ▲0.73109.54 ▲19.1746.02 ▲2.02
Posts /wp-admin/edit.php2,307 ▲2073.69 ▲1.7147.59 ▲8.6735.30 ▼1.74
Add New Post /wp-admin/post-new.php1,720 ▲19022.56 ▼0.37636.02 ▼14.7941.07 ▼16.09
Media Library /wp-admin/upload.php1,443 ▲404.40 ▲0.2685.51 ▼20.2056.30 ▲8.33
Check Sever Mail /wp-admin/admin.php?page=check-sever-mail1,0503.3245.7833.27
Reports /wp-admin/admin.php?page=reports1,1363.9360.6928.82
SMTP /wp-admin/admin.php?page=smtp1,1763.4242.2131.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/check-server-mail-smtp/reports.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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=6.3.1 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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (SMTP Mailer Settings)
The official readme.txt is a good inspiration

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: Name the main plugin file 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 check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin868 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
No cyclomatic complexity issues were detected for this plugin
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/sort_asc_disabled.png0.14KB0.25KB0.00%
images/sort_desc.png0.15KB0.25KB0.00%
images/sort_both (1).png0.20KB0.29KB0.00%
images/sort_desc_disabled.png0.14KB0.25KB0.00%
images/sort_both.png0.20KB0.29KB0.00%