84% free-wp-mail-smtp

Code Review | Free WP Mail SMTP (Official - 2019)

WordPress plugin Free WP Mail SMTP (Official - 2019) scored84%from 54 tests.

About plugin

  • Plugin page: free-wp-mail-smtp
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.1.1
  • WordPress version: 6.3.1
  • First release: Apr 6, 2019
  • Latest release: Apr 6, 2019
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: mail250 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /5,818 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼10.41ms] Passed 4 tests

Server-side resources used by Free WP Mail SMTP (Official - 2019)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0941.57 ▲0.75
Dashboard /wp-admin3.42 ▲0.0447.46 ▼13.79
Posts /wp-admin/edit.php3.47 ▲0.0853.57 ▼2.40
Add New Post /wp-admin/post-new.php6.00 ▲0.0884.19 ▼26.18
Media Library /wp-admin/upload.php3.34 ▲0.0837.51 ▲2.19

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: no files
Database: no new tables, 17 new options
New WordPress options
widget_theysaidso_widget
wpp_smtp_pass
wpp_api_key
widget_recent-posts
wpp_mailer
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
wpp_smtp_ssl
wpp_mail_from_name
...

Browser metrics Passed 4 tests

A check of browser resources used by Free WP Mail SMTP (Official - 2019)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.22 ▼1.181.79 ▲0.0845.14 ▲1.89
Dashboard /wp-admin2,219 ▲285.85 ▲0.9596.05 ▼4.5841.27 ▼0.51
Posts /wp-admin/edit.php2,105 ▲162.00 ▼0.0640.46 ▼0.6335.33 ▲0.25
Add New Post /wp-admin/post-new.php1,551 ▲1818.24 ▼4.96606.48 ▼62.7856.00 ▲5.43
Media Library /wp-admin/upload.php1,404 ▲224.29 ▼0.0696.86 ▼4.8644.03 ▲1.58

Uninstaller [IO: ✅] [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 does not fully uninstall, leaving 17 options in the database
    • wpp_smtp_port
    • wpp_mail_from_name
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • wpp_smtp_ssl
    • db_upgraded
    • wpp_smtp_pass
    • wpp_mail_from
    • wpp_smtp_auth
    • ...

Smoke tests 75% 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-wp-mail-smtp/free-wp-mail-smtp.php:136

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% 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: Too many tags (23 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

free-wp-mail-smtp/free-wp-mail-smtp.php 92% from 13 tests

This is the main PHP file of "Free WP Mail SMTP (Official - 2019)" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 205 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 plugin2,131 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS235501,152
PHP2255625979

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity117.00
▷ Minimum class complexity117.00
▷ Maximum class complexity117.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods45
▷ Static methods00.00%
▷ Public methods2453.33%
▷ Protected methods2146.67%
▷ Private methods00.00%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants1
▷ Global constants1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png2.08KB1.87KB▼ 9.92%