79% smtp-sendinblue

Code Review | SMTP for Sendinblue - YaySMTP

WordPress plugin SMTP for Sendinblue - YaySMTP scored79%from 54 tests.

About plugin

  • Plugin page: smtp-sendinblue
  • Plugin version: 1.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 9, 2021
  • Latest release: Apr 5, 2023
  • Number of updates: 7
  • Update frequency: every 103.7 days
  • Top authors: yaycommerce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /2,461 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.28MB] [CPU: ▲0.13ms] Passed 4 tests

A check of server-side resources used by SMTP for Sendinblue - YaySMTP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2943.07 ▼1.86
Dashboard /wp-admin3.59 ▲0.2854.67 ▲4.65
Posts /wp-admin/edit.php3.64 ▲0.2853.99 ▲1.43
Add New Post /wp-admin/post-new.php6.17 ▲0.2899.07 ▲0.50
Media Library /wp-admin/upload.php3.51 ▲0.2838.51 ▲0.46

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: 1 new table, 7 new options
New tables
wp_yay_smtp_sendinblue_email_logs
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
yay_smtp_sendinblue_version
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

SMTP for Sendinblue - YaySMTP: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.72 ▲0.451.61 ▼0.5643.04 ▼0.74
Dashboard /wp-admin2,213 ▲465.50 ▼0.0984.00 ▼29.3139.41 ▼1.13
Posts /wp-admin/edit.php2,118 ▲182.00 ▲0.0138.70 ▲0.9138.89 ▼0.81
Add New Post /wp-admin/post-new.php1,541 ▲1523.45 ▲0.44630.03 ▼69.2251.94 ▼14.51
Media Library /wp-admin/upload.php1,418 ▲184.20 ▼0.0397.06 ▼23.9945.99 ▼6.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_yay_smtp_sendinblue_email_logs
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • yay_smtp_sendinblue_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: wp mail smtp, wp mail, wp smtp, wordpress smtp, sendinblue...

smtp-sendinblue/yay-smtp.php 85% from 13 tests

This is the main PHP file of "SMTP for Sendinblue - YaySMTP" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("smtp-sendinblue.php" instead of "yay-smtp.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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 plugin4,662 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP20265311,880
JavaScript1103801,536
CSS194311,246

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.53
Average class complexity24.00
▷ Minimum class complexity3.00
▷ Maximum class complexity76.00
Average method complexity3.91
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods79
▷ Static methods3949.37%
▷ Public methods6582.28%
▷ Protected methods11.27%
▷ Private methods1316.46%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants6
▷ Global constants6100.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
There are no PNG files in this plugin