10% my-smtp-wp

Code Review | MY SMTP WP

WordPress plugin MY SMTP WP scored10%from 54 tests.

About plugin

  • Plugin page: my-smtp-wp
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.3
  • WordPress version: 6.3.1
  • First release: Jun 30, 2014
  • Latest release: Nov 14, 2019
  • Number of updates: 29
  • Update frequency: every 67.7 days
  • Top authors: valeriosza (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

500+ active /19,410 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/my-smtp-wp/my-smtp-wp.php+32
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.11ms] Passed 4 tests

Server-side resources used by MY SMTP WP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.84 ▼3.09
Dashboard /wp-admin3.32 ▼0.0346.57 ▼22.10
Posts /wp-admin/edit.php3.37 ▲0.0151.00 ▲2.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.93 ▼8.72
Media Library /wp-admin/upload.php3.24 ▲0.0132.03 ▼6.51
My SMTP WP /wp-admin/options-general.php?page=my-smtp-wp/class-my-smtp-wp.php3.2735.00

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for MY SMTP WP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.29 ▼1.064.48 ▲2.2341.25 ▼2.20
Dashboard /wp-admin2,222 ▲285.83 ▲0.0296.19 ▼11.1339.89 ▼0.86
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0139.52 ▲3.4334.83 ▲1.80
Add New Post /wp-admin/post-new.php1,548 ▲2223.42 ▲5.85675.72 ▲32.0352.00 ▼9.03
Media Library /wp-admin/upload.php1,404 ▲14.19 ▼0.0298.47 ▼7.2045.90 ▼2.62
My SMTP WP /wp-admin/options-general.php?page=my-smtp-wp/class-my-smtp-wp.php1,0801.7223.9529.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • my_smtp_wp_options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/my-smtp-wp/my-smtp-wp-admin.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/my-smtp-wp/my-smtp-wp.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Configure for Live) image not found
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
You can take inspiration from this readme.txt

my-smtp-wp/my-smtp-wp.php 92% from 13 tests

The entry point to "MY SMTP WP" version 1.4.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • 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
Everything looks great! No dangerous files found in this plugin355 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34363355

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin