84% vikmailsmtp

Code Review | Vik Mail SMTP - Wizard and Logs

WordPress plugin Vik Mail SMTP - Wizard and Logs scored 84% from 54 tests.

About plugin

  • Plugin page: vikmailsmtp
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Apr 19, 2018
  • Latest release: Aug 9, 2023
  • Number of updates: 12
  • Update frequency: every 161.5 days
  • Top authors: e4jvikwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,417 total downloads

Benchmarks

Plugin footprint 83% from 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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Vik Mail SMTP - Wizard and Logs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.21 ▲5.98
Dashboard /wp-admin3.32 ▲0.0146.64 ▲0.24
Posts /wp-admin/edit.php3.37 ▲0.0148.59 ▲7.04
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.55 ▼16.50
Media Library /wp-admin/upload.php3.24 ▲0.0136.57 ▲3.26
SMTP Mailer /wp-admin/options-general.php?page=vikmailsmtp3.2733.06

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Vik Mail SMTP - Wizard and Logs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.22 ▼1.181.77 ▲0.0443.39 ▲3.85
Dashboard /wp-admin2,207 ▲155.86 ▲0.9193.42 ▼22.3537.71 ▼7.75
Posts /wp-admin/edit.php2,096 ▲72.06 ▲0.0635.13 ▼4.5333.02 ▼2.46
Add New Post /wp-admin/post-new.php1,517 ▼1717.73 ▼5.44668.48 ▲11.8352.76 ▼6.35
Media Library /wp-admin/upload.php1,392 ▲44.28 ▲0.05101.82 ▼6.7444.47 ▲0.87
SMTP Mailer /wp-admin/options-general.php?page=vikmailsmtp9961.7228.4038.31

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 14× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/vikmailsmtp/helpers/translate.php
    • > /wp-content/plugins/vikmailsmtp/layouts/wizard.php
    • > /wp-content/plugins/vikmailsmtp/layouts/settings.php
    • > /wp-content/plugins/vikmailsmtp/layouts/testemail.php
    • > /wp-content/plugins/vikmailsmtp/layouts/menu.php
    • > /wp-content/plugins/vikmailsmtp/helpers/settings.php
    • > /wp-content/plugins/vikmailsmtp/helpers/installer.php
    • > /wp-content/plugins/vikmailsmtp/layouts/message.php
    • > /wp-content/plugins/vikmailsmtp/helpers/cypher.php
    • > /wp-content/plugins/vikmailsmtp/helpers/logger.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: hotmail, yahoo, gmail, smtp, vik...

vikmailsmtp/vikmailsmtp.php Passed 13 tests

This is the main PHP file of "Vik Mail SMTP - Wizard and Logs" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
99 characters long description:
Let your WP website send email messages through your preferred SMTP service to ensure 100% delivery

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,004 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP14181457895
CSS111108
HTML1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.83
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes6100.00%
Methods28
▷ Static methods28100.00%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants3
▷ Global constants3100.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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/hotmail.png8.46KB4.75KB▼ 43.86%
assets/images/vikwp.png30.20KB14.74KB▼ 51.20%
assets/images/gmail.png6.36KB3.02KB▼ 52.58%