84% sdk-wp-smtp

Code Review | SDK WP SMTP

WordPress plugin SDK WP SMTP scored 84% from 53 tests.

About plugin

  • Plugin page: sdk-wp-smtp
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.9.9
  • WordPress version: 5.8.1
  • First release: Dec 8, 2018
  • Latest release: Dec 10, 2018
  • Number of updates: 10
  • Update frequency: every 0.3 days
  • Top authors: sdkwebmasters (100%)

Code review

53 tests

User reviews

1 review

Install metrics

20+ active / 353 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼253.92ms] Passed 4 tests

An overview of server-side resources used by SDK WP SMTP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1436.41 ▲11.51
Dashboard /wp-admin3.09 ▲0.0350.29 ▲9.54
Posts /wp-admin/edit.php3.14 ▲0.0345.25 ▲4.86
Add New Post /wp-admin/post-new.php5.45 ▲0.0291.45 ▼1,028.33
Media Library /wp-admin/upload.php3.03 ▲0.0238.61 ▼1.76
SDK WP SMTP /wp-admin/options-general.php?page=sdk-wp-smtp/sdk-wp-smtp.php3.0629.99

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
sdk_wp_smtp_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for SDK WP SMTP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲7215.78 ▼0.067.55 ▼0.6046.75 ▲3.46
Dashboard /wp-admin2,938 ▲855.88 ▲0.07134.05 ▼2.82112.18 ▲5.47
Posts /wp-admin/edit.php2,708 ▲22.68 ▼0.0262.22 ▼3.5890.02 ▼18.06
Add New Post /wp-admin/post-new.php1,659 ▲7118.16 ▼3.22358.81 ▲77.23111.18 ▲3.80
Media Library /wp-admin/upload.php1,777 ▼15.00 ▲0.00162.00 ▲8.40121.99 ▲7.16
SDK WP SMTP /wp-admin/options-general.php?page=sdk-wp-smtp/sdk-wp-smtp.php1,4152.0861.4872.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • sdk_wp_smtp_options

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
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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/sdk-wp-smtp/sdk-wp-smtp.php
    • > /wp-content/plugins/sdk-wp-smtp/sdk_wp_smtp_admin.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)
No browser issues were found

Optimizations

Plugin configuration 97% 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
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
The official readme.txt might help

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

"SDK WP SMTP" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
131 characters long description:
Standard Development Kit WP SMTP can help us to send emails via over the sky of SMTP instead of using the core php mail() function.

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
No dangerous file extensions were detected419 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24220358
PO File1232261

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin