84% surbma-smtp

Code Review | Surbma | SMTP

WordPress plugin Surbma | SMTP scored84%from 54 tests.

About plugin

  • Plugin page: surbma-smtp
  • Plugin version: 2.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 17, 2016
  • Latest release: Apr 8, 2023
  • Number of updates: 13
  • Update frequency: every 198.3 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,528 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.90ms] Passed 4 tests

An overview of server-side resources used by Surbma | SMTP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.47 ▼3.25
Dashboard /wp-admin3.31 ▲0.0150.06 ▼2.86
Posts /wp-admin/edit.php3.36 ▲0.0152.15 ▲0.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0198.77 ▲1.84
Media Library /wp-admin/upload.php3.24 ▲0.0132.31 ▼6.37

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Surbma | SMTP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.38 ▲0.111.68 ▼0.2544.17 ▲2.57
Dashboard /wp-admin2,192 ▲185.62 ▲0.0893.14 ▼11.8545.32 ▼0.24
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0138.74 ▲1.7737.96 ▼0.14
Add New Post /wp-admin/post-new.php1,526 ▼023.52 ▲0.47678.97 ▲30.6052.51 ▼0.42
Media Library /wp-admin/upload.php1,400 ▼34.33 ▲0.1697.70 ▼6.8345.45 ▲0.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/surbma-smtp/surbma-smtp.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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: amazon ses, multisite, smtp, mailgun, ses...

surbma-smtp/surbma-smtp.php 92% from 13 tests

"Surbma | SMTP" version 2.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:
  • Domain Path: The domain path folder does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected26 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP181823
Markdown1103

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.73
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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