78% sx-easy-going-smtp

Code Review | SX Easy-going SMTP

WordPress plugin SX Easy-going SMTP scored78%from 54 tests.

About plugin

  • Plugin page: sx-easy-going-smtp
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3.2
  • WordPress version: 6.3.1
  • First release: Apr 13, 2018
  • Latest release: Dec 19, 2019
  • Number of updates: 8
  • Update frequency: every 77.0 days
  • Top authors: skynix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /840 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by SX Easy-going SMTP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0536.80 ▲0.12
Dashboard /wp-admin3.35 ▲0.0545.68 ▼2.43
Posts /wp-admin/edit.php3.47 ▲0.1157.69 ▲3.78
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.64 ▼10.88
Media Library /wp-admin/upload.php3.28 ▲0.0534.92 ▼0.73

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for SX Easy-going SMTP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.301.75 ▲0.1738.20 ▼1.39
Dashboard /wp-admin2,199 ▲225.62 ▼0.0689.74 ▲1.5136.25 ▼6.05
Posts /wp-admin/edit.php2,107 ▲102.01 ▼0.0039.91 ▲4.3135.91 ▲2.47
Add New Post /wp-admin/post-new.php1,531 ▲323.50 ▲0.62662.79 ▼17.0354.58 ▲3.99
Media Library /wp-admin/upload.php1,407 ▲44.21 ▲0.0995.86 ▼13.6544.12 ▼6.33
SX Easy-going SMTP /wp-admin/sx-smtp-settings.php260.420.1213.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sx-easy-going-smtp/init.php:27

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/sx-smtp-settings.php
    • > Network (severe)
    wp-admin/sx-smtp-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Requires php: Version not formatted correctly
The official readme.txt might help

sx-easy-going-smtp/init.php 85% from 13 tests

The main PHP file in "SX Easy-going SMTP" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("sx-easy-going-smtp.php" instead of "init.php")
  • Description: The description should be shorter than 140 characters (currently 149 characters long)

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
Success! There were no dangerous files found in this plugin249 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP55098232
Markdown15017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity5.00
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin