84% simple-smtp-mailer

Code Review | Simple SMTP Mailer

WordPress plugin Simple SMTP Mailer scored84%from 54 tests.

About plugin

  • Plugin page: simple-smtp-mailer
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Aug 18, 2022
  • Latest release: Aug 25, 2023
  • Number of updates: 9
  • Update frequency: every 41.3 days
  • Top authors: joshmckibbin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /842 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

This is a short check of server-side resources used by Simple SMTP Mailer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.40 ▼8.81
Dashboard /wp-admin3.36 ▲0.0549.53 ▼6.01
Posts /wp-admin/edit.php3.41 ▲0.0546.84 ▼2.88
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.76 ▲0.33
Media Library /wp-admin/upload.php3.28 ▲0.0538.62 ▲1.43
Simple SMTP Mailer /wp-admin/options-general.php?page=simple-smtp-mailer3.2431.87

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
simple_smtp_mailer_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Simple SMTP Mailer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.48 ▼0.271.79 ▼0.5143.37 ▼1.92
Dashboard /wp-admin2,207 ▲194.81 ▼1.04108.04 ▼9.7340.83 ▼1.04
Posts /wp-admin/edit.php2,093 ▼22.04 ▲0.0343.35 ▲0.5237.51 ▼2.44
Add New Post /wp-admin/post-new.php1,536 ▲1623.10 ▼0.03648.86 ▲3.2560.69 ▼19.21
Media Library /wp-admin/upload.php1,392 ▲74.19 ▼0.01114.74 ▲5.2245.47 ▼5.88
Simple SMTP Mailer /wp-admin/options-general.php?page=simple-smtp-mailer9082.0327.6829.04

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • simple_smtp_mailer_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=simple-smtp-mailer
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=simple-smtp-mailer
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=simple-smtp-mailer
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
    Trying to get property 'ID' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=simple-smtp-mailer
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object

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 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: email, phpmailer, mail, smtp, wp_mail

simple-smtp-mailer/simple-smtp-mailer.php Passed 13 tests

"Simple SMTP Mailer" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
79 characters long description:
Simplifies configuring WordPress to use SMTP instead of the PHP mail() function

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
Success! There were no dangerous files found in this plugin139 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13631139

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.19
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.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
No PNG files were detected