84% wp-yahoo-smtp

Code Review | WP Yahoo SMTP

WordPress plugin WP Yahoo SMTP scored84%from 54 tests.

About plugin

  • Plugin page: wp-yahoo-smtp
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 24, 2016
  • Latest release: Aug 21, 2018
  • Number of updates: 28
  • Update frequency: every 23.9 days
  • Top authors: inkthemes (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active /3,156 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: ▼6.53ms] Passed 4 tests

A check of server-side resources used by WP Yahoo SMTP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.79 ▲0.02
Dashboard /wp-admin3.33 ▼0.0152.17 ▼14.43
Posts /wp-admin/edit.php3.39 ▲0.0353.38 ▲2.73
Add New Post /wp-admin/post-new.php5.92 ▲0.0397.31 ▼13.98
Media Library /wp-admin/upload.php3.26 ▲0.0338.68 ▲2.26

Server storage [IO: ▲0.21MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

WP Yahoo SMTP: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7914.28 ▼0.082.06 ▲0.6141.98 ▲2.08
Dashboard /wp-admin2,224 ▲475.59 ▼0.0190.63 ▲0.1243.02 ▲3.29
Posts /wp-admin/edit.php2,127 ▲302.08 ▲0.0540.76 ▲4.0636.91 ▼2.00
Add New Post /wp-admin/post-new.php1,550 ▲1923.34 ▲0.22611.00 ▲14.5354.91 ▲5.60
Media Library /wp-admin/upload.php1,426 ▲234.22 ▲0.1097.38 ▼11.3342.20 ▼5.35

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-yahoo-smtp/wp-yahoo-smtp.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
You can look at the official readme.txt

wp-yahoo-smtp/wp-yahoo-smtp.php Passed 13 tests

Analyzing the main PHP file in "WP Yahoo SMTP" version 1.0.5
105 characters long description:
WP Yahoo SMTP allows you to send all outgoing emails via Yahoo Mail SMTP server from your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin546 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP59690546

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity15.75
▷ Minimum class complexity4.00
▷ Maximum class complexity25.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
m_bolt_img.png22.17KB8.42KB▼ 62.01%
screenshot-2.png60.03KB26.52KB▼ 55.82%
screenshot-1.png90.45KB40.50KB▼ 55.23%