78% smtp-yandex-mail-server

Code Review | Yandex Mail SMTP Server for WordPress

WordPress plugin Yandex Mail SMTP Server for WordPress scored78%from 54 tests.

About plugin

  • Plugin page: smtp-yandex-mail-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Jan 5, 2019
  • Latest release: Dec 3, 2019
  • Number of updates: 9
  • Update frequency: every 37.1 days
  • Top authors: ozancanakli (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

3,000+ active /20,533 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.02MB] [CPU: ▼5.12ms] Passed 4 tests

An overview of server-side resources used by Yandex Mail SMTP Server for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0141.66 ▲0.36
Dashboard /wp-admin3.38 ▼0.0149.98 ▼16.63
Posts /wp-admin/edit.php3.49 ▲0.1050.90 ▼0.56
Add New Post /wp-admin/post-new.php5.96 ▲0.0399.13 ▼3.65
Media Library /wp-admin/upload.php3.30 ▲0.0336.86 ▲1.16
Yandex Mail SMTP /wp-admin/options-general.php?page=yandex-smtp3.2530.50

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Yandex Mail SMTP Server for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.23 ▼0.121.77 ▼0.0043.93 ▲0.12
Dashboard /wp-admin2,199 ▲225.57 ▼0.0593.48 ▼5.3342.53 ▼3.25
Posts /wp-admin/edit.php2,101 ▲12.01 ▲0.0239.22 ▲3.7336.75 ▼0.59
Add New Post /wp-admin/post-new.php1,529 ▲123.49 ▲0.47624.44 ▼65.5263.84 ▲7.26
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.03102.67 ▼2.7343.34 ▼3.36
Yandex Mail SMTP /wp-admin/options-general.php?page=yandex-smtp8212.0322.6930.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=yandex-smtp
    • > Notice in wp-content/plugins/smtp-yandex-mail-server/class-yandex-smtp.php+62
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/smtp-yandex-mail-server/admin-styles.css.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 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
5 plugin tags: smtp, yandex, smtp server, yandex smtp, yandex mail

smtp-yandex-mail-server/yandex-smtp.php 85% from 13 tests

The main PHP script in "Yandex Mail SMTP Server for WordPress" version 1.0.2 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("smtp-yandex-mail-server.php" instead of "yandex-smtp.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected155 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP53315155

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.22
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin