87% lbk-mail-smtp

Code Review | Mail SMTP By LBK

WordPress plugin Mail SMTP By LBK scored 87% from 54 tests.

About plugin

  • Plugin page: lbk-mail-smtp
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.0-5.7
  • WordPress version: 5.8.1
  • First release: Jun 7, 2021
  • Latest release: Jun 7, 2021
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: serviceslbk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 100 total downloads

Benchmarks

Plugin footprint Passed 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.05MB] [CPU: ▼129.45ms] Passed 4 tests

An overview of server-side resources used by Mail SMTP By LBK
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1433.00 ▲12.20
Dashboard /wp-admin3.10 ▲0.0448.01 ▲9.10
Posts /wp-admin/edit.php3.18 ▲0.0847.18 ▼1.70
Add New Post /wp-admin/post-new.php5.46 ▲0.03115.35 ▼513.01
Media Library /wp-admin/upload.php3.04 ▲0.0330.23 ▼12.19
LBK Mail SMTP /wp-admin/options-general.php?page=lbk-mail-smtp3.0231.35

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Mail SMTP By LBK
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲11415.72 ▼0.228.59 ▲0.7452.13 ▲2.54
Dashboard /wp-admin2,977 ▲435.90 ▼0.04134.81 ▼11.89105.85 ▼1.26
Posts /wp-admin/edit.php2,746 ▲72.69 ▼0.0167.97 ▲1.1194.39 ▲3.92
Add New Post /wp-admin/post-new.php1,708 ▲3619.15 ▲0.39404.13 ▲45.75120.14 ▲7.80
Media Library /wp-admin/upload.php1,820 ▲165.03 ▼0.00156.93 ▲0.79118.66 ▼4.27
LBK Mail SMTP /wp-admin/options-general.php?page=lbk-mail-smtp1,2012.1055.5267.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/lbk-mail-smtp/mail-smtp.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/lbk-mail-smtp/includes/admin-options-page.php:2

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Screenshot #1 (The General section of the settings.) image missing
Please take inspiration from this readme.txt

lbk-mail-smtp/mail-smtp.php 77% from 13 tests

"Mail SMTP By LBK" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lbk-mail-smtp.php" instead of "mail-smtp.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected247 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP439242186
CSS111061

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes2100.00%
Methods15
▷ Static methods746.67%
▷ Public methods1173.33%
▷ Protected methods00.00%
▷ Private methods426.67%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin