84% wp-mail-smtp-mailer

Code Review | WP Mail SMTP - SMTP7

WordPress plugin WP Mail SMTP - SMTP7 scored84%from 54 tests.

About plugin

  • Plugin page: wp-mail-smtp-mailer
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Oct 25, 2016
  • Latest release: Aug 22, 2023
  • Number of updates: 45
  • Update frequency: every 55.4 days
  • Top authors: arshidkv12 (100%)

Code review

54 tests

User reviews

70 reviews

Install metrics

3,000+ active /35,059 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.45ms] Passed 4 tests

A check of server-side resources used by WP Mail SMTP - SMTP7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.61 ▼3.20
Dashboard /wp-admin3.32 ▲0.0245.76 ▼1.94
Posts /wp-admin/edit.php3.37 ▲0.0146.08 ▲2.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.38 ▼16.56
Media Library /wp-admin/upload.php3.24 ▲0.0132.37 ▼0.09
Mail Smtp Mailer /wp-admin/options-general.php?page=wp-mail-smtp-mailer3.2031.36

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
wpmsm_mailer_install_date
WPMSM_mail_data
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

WP Mail SMTP - SMTP7: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.36 ▼1.041.84 ▲0.2143.41 ▲4.86
Dashboard /wp-admin2,210 ▲254.86 ▼0.02109.54 ▲9.5540.50 ▼2.90
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0240.11 ▲7.1535.26 ▲1.86
Add New Post /wp-admin/post-new.php1,549 ▲3023.20 ▼0.01665.32 ▼14.0051.32 ▼4.16
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0396.14 ▼0.4540.00 ▼0.32
Mail Smtp Mailer /wp-admin/options-general.php?page=wp-mail-smtp-mailer1,0231.7324.2732.43

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • wpmsm_mailer_install_date

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 no errors were found, this is by no means 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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-mail-smtp-mailer/wp-mail-smtp-mailer.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (Admin)
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

wp-mail-smtp-mailer/wp-mail-smtp-mailer.php Passed 13 tests

"WP Mail SMTP - SMTP7" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
Make email delivery easy from WordPress. It is easy to configure.

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
No dangerous file extensions were detected434 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP316036317
JavaScript143780
CSS15037

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.29
Average class complexity15.00
▷ Minimum class complexity3.00
▷ Maximum class complexity27.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods333.33%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin