84% best-wp-smtp-email

Code Review | Best WP SMTP Email

WordPress plugin Best WP SMTP Email scored 84% from 54 tests.

About plugin

  • Plugin page: best-wp-smtp-email
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Oct 16, 2018
  • Latest release: Apr 24, 2019
  • Number of updates: 8
  • Update frequency: every 23.9 days
  • Top authors: tinypixi (75%)themexa (37.5%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 704 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: ▼3.79ms] Passed 4 tests

A check of server-side resources used by Best WP SMTP Email
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.24 ▼11.32
Dashboard /wp-admin3.31 ▲0.0146.79 ▼3.11
Posts /wp-admin/edit.php3.36 ▲0.0148.89 ▼1.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.07 ▲4.09
Media Library /wp-admin/upload.php3.23 ▲0.0134.90 ▲0.42

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Best WP SMTP Email
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.18 ▼1.211.66 ▼0.1442.15 ▼11.03
Dashboard /wp-admin2,215 ▲275.80 ▲0.9296.05 ▼35.3240.39 ▼3.49
Posts /wp-admin/edit.php2,104 ▲152.03 ▲0.0750.39 ▲12.6846.56 ▲11.89
Add New Post /wp-admin/post-new.php1,552 ▲3018.53 ▼4.70608.22 ▼57.9251.25 ▼7.17
Media Library /wp-admin/upload.php1,403 ▲214.23 ▲0.0695.63 ▼7.2841.32 ▼4.45

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-wp-smtp-email/includes/assets.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/best-wp-smtp-email/includes/core.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-wp-smtp-email/includes/admin.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-wp-smtp-email/includes/mailer.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 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
6 plugin tags: wordpress, smtp, mailer, wp, mail...

best-wp-smtp-email/bwpse.php 85% from 13 tests

"Best WP SMTP Email" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("best-wp-smtp-email.php" instead of "bwpse.php")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin8,044 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS3801437,666
PHP65162345
JavaScript491933

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.32MB with 0.21MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/smtp_postman_head.png81.26KB27.63KB▼ 66.00%
assets/images/smtp_postman_tasks.png120.81KB43.53KB▼ 63.97%
assets/images/smtp_postman.png123.32KB40.13KB▼ 67.46%