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.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.6
  • WordPress version: 5.8.1
  • First release: Jan 15, 2021
  • Latest release: Oct 19, 2021
  • Number of updates: 11
  • Update frequency: every 25.2 days
  • Top authors: bitpressadmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 455 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.17MB] [CPU: ▼137.28ms] 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.92 ▲0.2035.18 ▲5.67
Dashboard /wp-admin3.26 ▲0.2158.13 ▲12.24
Posts /wp-admin/edit.php3.31 ▲0.2048.22 ▲3.39
Add New Post /wp-admin/post-new.php5.56 ▲0.1290.90 ▼558.72
Media Library /wp-admin/upload.php3.14 ▲0.1434.98 ▲0.56
General /wp-admin/admin.php?page=bit_smtp3.1130.50

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

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

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,757 ▲16115.92 ▲0.2811.01 ▲1.3951.50 ▼7.50
Dashboard /wp-admin3,011 ▲745.95 ▼0.08152.13 ▲0.73101.10 ▼9.24
Posts /wp-admin/edit.php2,780 ▲412.72 ▲0.0171.61 ▲3.9683.37 ▼7.33
Add New Post /wp-admin/post-new.php1,889 ▲20619.09 ▲0.36404.48 ▲14.04108.22 ▼0.82
Media Library /wp-admin/upload.php1,852 ▲425.02 ▼0.00153.80 ▼1.23117.35 ▲6.06
General /wp-admin/admin.php?page=bit_smtp1,3363.86123.6591.55

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.3'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:
  • 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")
  • Main file name: Name the main plugin file the same as the plugin slug ("bit-smtp.php" instead of "bit_smtp.php")

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 detected676 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP12146320659
JSON10011
JavaScript20336

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.44
Average class complexity15.83
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods47
▷ Static methods510.64%
▷ Public methods4493.62%
▷ Protected methods00.00%
▷ Private methods36.38%
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