83% bit-smtp

Code Review | SMTP - 100% Free & Open Source SMTP plugin for WordPress - Bit SMTP

WordPress plugin SMTP - 100% Free & Open Source SMTP plugin for WordPress - Bit SMTP scored83%from 54 tests.

About plugin

  • Plugin page: bit-smtp
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 15, 2021
  • Latest release: Oct 3, 2023
  • Number of updates: 24
  • Update frequency: every 41.3 days
  • Top authors: bitpressadmin (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

700+ active /4,106 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼0.44ms] Passed 4 tests

A check of server-side resources used by SMTP - 100% Free & Open Source SMTP plugin for WordPress - Bit SMTP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1038.82 ▼2.54
Dashboard /wp-admin3.45 ▲0.1552.95 ▲1.81
Posts /wp-admin/edit.php3.57 ▲0.2147.50 ▲5.16
Add New Post /wp-admin/post-new.php6.03 ▲0.1584.20 ▼2.48
Media Library /wp-admin/upload.php3.38 ▲0.1536.00 ▲1.43
General /wp-admin/admin.php?page=bit-smtp3.3431.14

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
bit_smtp_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
bit_smtp_version
widget_recent-comments
bit_smtp_installed

Browser metrics Passed 4 tests

Checking browser requirements for SMTP - 100% Free & Open Source SMTP plugin for WordPress - Bit SMTP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.31 ▼0.291.62 ▼0.0942.62 ▼0.82
Dashboard /wp-admin2,230 ▲505.51 ▼0.1582.33 ▼15.2935.33 ▼8.29
Posts /wp-admin/edit.php2,135 ▲322.02 ▲0.0833.57 ▼3.7333.28 ▼3.44
Add New Post /wp-admin/post-new.php1,543 ▲1723.49 ▼0.04621.59 ▼67.4964.16 ▲6.74
Media Library /wp-admin/upload.php1,439 ▲394.18 ▼0.21103.06 ▼4.9743.54 ▼2.28
General /wp-admin/admin.php?page=bit-smtp1,0953.80108.4658.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 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 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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/bit-smtp/views/view-root.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #2, #3 in bit-smtp/assets to your readme.txt
  • Tags: You are using too many tags: 17 tag instead of maximum 10
You can take inspiration from this readme.txt

bit-smtp/bit_smtp.php 85% from 13 tests

"SMTP - 100% Free & Open Source SMTP plugin for WordPress - Bit SMTP" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("bit-smtp.php" instead of "bit_smtp.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected905 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP14207526887
JSON20016
JavaScript2012

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity19.71
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods62
▷ Static methods2032.26%
▷ Public methods5893.55%
▷ Protected methods00.00%
▷ Private methods46.45%
Functions7
▷ Named functions457.14%
▷ Anonymous functions342.86%
Constants6
▷ Global constants6100.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
No PNG images were found in this plugin