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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 33.00 ▲12.20 |
Dashboard /wp-admin | 3.10 ▲0.04 | 48.01 ▲9.10 |
Posts /wp-admin/edit.php | 3.18 ▲0.08 | 47.18 ▼1.70 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 115.35 ▼513.01 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 30.23 ▼12.19 |
LBK Mail SMTP /wp-admin/options-general.php?page=lbk-mail-smtp | 3.02 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,710 ▲114 | 15.72 ▼0.22 | 8.59 ▲0.74 | 52.13 ▲2.54 |
Dashboard /wp-admin | 2,977 ▲43 | 5.90 ▼0.04 | 134.81 ▼11.89 | 105.85 ▼1.26 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.69 ▼0.01 | 67.97 ▲1.11 | 94.39 ▲3.92 |
Add New Post /wp-admin/post-new.php | 1,708 ▲36 | 19.15 ▲0.39 | 404.13 ▲45.75 | 120.14 ▲7.80 |
Media Library /wp-admin/upload.php | 1,820 ▲16 | 5.03 ▼0.00 | 156.93 ▲0.79 | 118.66 ▼4.27 |
LBK Mail SMTP /wp-admin/options-general.php?page=lbk-mail-smtp | 1,201 | 2.10 | 55.52 | 67.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 39 | 242 | 186 |
CSS | 1 | 11 | 0 | 61 |
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 code | 0.20 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 15 | |
▷ Static methods | 7 | 46.67% |
▷ Public methods | 11 | 73.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 26.67% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.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