99% bit-smtp

Code Review | Bit SMTP - Best SMTP plugin for WordPress

WordPress plugin Bit SMTP - Best SMTP plugin for WordPress scored 99% from 54 tests.

About plugin

  • Plugin page: bit-smtp
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.9
  • WordPress version: 5.8.1
  • First release: Jan 15, 2021
  • Latest release: Feb 1, 2022
  • Number of updates: 12
  • Update frequency: every 31.8 days
  • Top authors: bitpressadmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 747 total downloads

Benchmarks

Plugin footprint Passed 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: ▼187.21ms] Passed 4 tests

A check of server-side resources used by Bit SMTP - Best SMTP plugin for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.0925.12 ▲2.60
Dashboard /wp-admin3.27 ▲0.2031.68 ▼6.53
Posts /wp-admin/edit.php3.32 ▲0.2130.58 ▼1.57
Add New Post /wp-admin/post-new.php5.57 ▲0.1370.82 ▼740.77
Media Library /wp-admin/upload.php3.15 ▲0.1523.90 ▲0.05
General /wp-admin/admin.php?page=bit_smtp3.1221.11

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 3 new options
New WordPress options
bit_smtp_options
bit_smtp_version
bit_smtp_installed

Browser metrics Passed 4 tests

Checking browser requirements for Bit SMTP - Best SMTP plugin for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,709 ▲10816.03 ▲0.396.68 ▲1.6475.62 ▲1.89
Dashboard /wp-admin2,970 ▲746.15 ▼0.08118.54 ▼13.83168.18 ▼4.56
Posts /wp-admin/edit.php2,782 ▲453.26 ▲0.0263.12 ▼2.93137.81 ▼3.83
Add New Post /wp-admin/post-new.php3,758 ▲1718.74 ▼0.15461.09 ▲36.32174.44 ▲4.77
Media Library /wp-admin/upload.php1,797 ▲455.54 ▼0.03145.77 ▲2.91184.13 ▼3.42
General /wp-admin/admin.php?page=bit_smtp1,3094.43146.51133.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

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 86% from 29 tests

readme.txt 94% 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:
  • 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 77% from 13 tests

"Bit SMTP - Best SMTP plugin for WordPress" version 1.0.4'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")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • 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 detected911 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP14205541879
JSON20016
JavaScript45816

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.48
Average class complexity19.57
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods63
▷ Static methods2031.75%
▷ Public methods5993.65%
▷ Protected methods00.00%
▷ Private methods46.35%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
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