84% yandex-mail

Code Review | Yandex Mail

WordPress plugin Yandex Mail scored84%from 54 tests.

About plugin

  • Plugin page: yandex-mail
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 6.3.1
  • First release: Jul 9, 2015
  • Latest release: Aug 17, 2016
  • Number of updates: 8
  • Update frequency: every 50.8 days
  • Top authors: GZep (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active /8,023 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Yandex Mail
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.12 ▼2.09
Dashboard /wp-admin3.34 ▼0.0152.27 ▼15.73
Posts /wp-admin/edit.php3.39 ▲0.0351.03 ▼4.47
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.66 ▼15.88
Media Library /wp-admin/upload.php3.26 ▲0.0335.16 ▼2.41
Yandex Mail /wp-admin/options-general.php?page=yandex-mail3.2030.07

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Yandex Mail
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲5813.29 ▼0.916.56 ▲4.5044.89 ▼1.26
Dashboard /wp-admin2,210 ▲195.80 ▲0.88101.92 ▼7.1137.56 ▼6.34
Posts /wp-admin/edit.php2,093 ▲42.05 ▼0.0136.16 ▲0.4731.41 ▼4.34
Add New Post /wp-admin/post-new.php1,517 ▼217.54 ▼5.75686.17 ▲9.1070.14 ▲4.83
Media Library /wp-admin/upload.php1,395 ▲44.21 ▼0.0296.10 ▼9.2145.38 ▼1.62
Yandex Mail /wp-admin/options-general.php?page=yandex-mail7872.0623.4124.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=yandex-mail
    • > Notice in wp-content/plugins/yandex-mail/options.php+65
    Trying to access array offset on value of type bool

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === yandex-mail === )
The official readme.txt might help

yandex-mail/yandex-mail.php Passed 13 tests

This is the main PHP file of "Yandex Mail" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
106 characters long description:
This plugin gives you the easiest way to send emails through the Yandex SMTP server instead of PHP mail().

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin136 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP42210105
PO File1142131

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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 classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin