74% wordsmtp

Code Review | WordSMTP Simple SMTP Solution

WordPress plugin WordSMTP Simple SMTP Solution scored74%from 54 tests.

About plugin

  • Plugin page: wordsmtp
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Sep 25, 2023
  • Latest release: Sep 26, 2023
  • Number of updates: 7
  • Update frequency: every 3.6 days
  • Top authors: codeapple (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /61 total downloads

Benchmarks

Plugin footprint 65% 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.03MB] [CPU: ▼3.20ms] Passed 4 tests

A check of server-side resources used by WordSMTP Simple SMTP Solution
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1541.87 ▲6.04
Dashboard /wp-admin3.34 ▲0.0348.34 ▲1.87
Posts /wp-admin/edit.php3.39 ▲0.0345.43 ▼2.24
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.26 ▼15.37
Media Library /wp-admin/upload.php3.26 ▲0.0336.50 ▲2.93
Report /wp-admin/admin.php?page=word-smtp-reportmenu3.2834.42
Settings /wp-admin/admin.php?page=word-smtp-topmenu3.2734.12

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: 2 new tables, 6 new options
New tables
wp_scwordsmtp_delivery_log
wp_scwordsmtp_error_log
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

WordSMTP Simple SMTP Solution: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲7313.30 ▼0.991.72 ▼0.2042.81 ▲3.27
Dashboard /wp-admin2,253 ▲625.86 ▼0.0597.71 ▼4.7340.59 ▼2.14
Posts /wp-admin/edit.php2,132 ▲432.15 ▲0.1936.26 ▼1.6732.41 ▼0.41
Add New Post /wp-admin/post-new.php1,552 ▲1623.10 ▼0.29628.17 ▲12.9053.50 ▲2.87
Media Library /wp-admin/upload.php1,435 ▲444.25 ▲0.0795.19 ▼5.9442.68 ▲0.79
Report /wp-admin/admin.php?page=word-smtp-reportmenu1,2302.9372.0844.29
Settings /wp-admin/admin.php?page=word-smtp-topmenu9312.2638.7842.78

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 does not fully uninstall, leaving 2 tables in the database
    • wp_scwordsmtp_delivery_log
    • wp_scwordsmtp_error_log
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=word-smtp-reportmenu
    • > Network (severe)
    wp-content/plugins/wordsmtp/admin/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=word-smtp-reportmenu
    • > Network (severe)
    wp-content/plugins/wordsmtp/admin/css/images/ui-bg_glass_65_ffffff_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=word-smtp-reportmenu
    • > Network (severe)
    wp-content/plugins/wordsmtp/admin/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
4 plugin tags: smtp, custom domain mailer solution, email solution for woocommerce, smtp email solution

wordsmtp/wordsmtp.php 85% from 13 tests

"WordSMTP Simple SMTP Solution" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 202 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin9,147 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22,0666,9006,785
CSS455651,824
PHP8102106538

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity20.67
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods2388.46%
▷ Public methods2492.31%
▷ Protected methods00.00%
▷ Private methods27.69%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin