94% socialveo-smtp

Code Review | Socialveo SMTP

WordPress plugin Socialveo SMTP scored 94% from 54 tests.

About plugin

  • Plugin page: socialveo-smtp
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.9
  • WordPress version: 5.8.1
  • First release: Nov 23, 2017
  • Latest release: Nov 23, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: socialveo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 353 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Socialveo SMTP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1337.33 ▲12.93
Dashboard /wp-admin3.07 ▲0.0244.38 ▼2.63
Posts /wp-admin/edit.php3.13 ▲0.0253.25 ▲6.34
Add New Post /wp-admin/post-new.php5.43 ▼0.0099.66 ▼558.98
Media Library /wp-admin/upload.php3.02 ▲0.0238.42 ▲4.06

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Socialveo SMTP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲8215.89 ▲0.3910.54 ▲2.3849.84 ▼1.19
Dashboard /wp-admin2,973 ▲425.84 ▼0.14144.66 ▼32.74118.33 ▼3.96
Posts /wp-admin/edit.php2,739 ▼02.68 ▲0.0070.90 ▲3.1594.05 ▼7.58
Add New Post /wp-admin/post-new.php1,683 ▼018.49 ▼0.34382.83 ▼14.36109.68 ▼0.25
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.01164.42 ▼2.96121.61 ▼6.70

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 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/socialveo-smtp/index.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: wp_mail, socialveo, mailer, phpmailer, smtp

socialveo-smtp/index.php 92% from 13 tests

The main PHP file in "Socialveo SMTP" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("socialveo-smtp.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1255244

PHP code Passed 2 tests

Analyzing 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.58
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%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants0
▷ Global constants00.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