77% simple-wp-smtp

Code Review | Simple WP SMTP

WordPress plugin Simple WP SMTP scored 77% from 54 tests.

About plugin

  • Plugin page: simple-wp-smtp
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2023
  • Latest release: Feb 16, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: wpteamindianic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 138 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.89ms] Passed 4 tests

Analyzing server-side resources used by Simple WP SMTP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.95 ▼3.64
Dashboard /wp-admin3.33 ▲0.0251.96 ▲0.24
Posts /wp-admin/edit.php3.38 ▲0.0251.58 ▼1.70
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.23 ▼10.45
Media Library /wp-admin/upload.php3.25 ▲0.0239.25 ▲1.11
Test mail /wp-admin/admin.php?page=smtp_test_mail3.2234.43
SMTP settings /wp-admin/admin.php?page=smtp_settings3.2637.95

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Simple WP SMTP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲2713.15 ▼1.251.91 ▲0.3643.46 ▼0.95
Dashboard /wp-admin2,236 ▲304.84 ▼0.00116.25 ▲3.4442.70 ▼6.08
Posts /wp-admin/edit.php2,116 ▲242.02 ▲0.0239.77 ▼2.1535.98 ▲1.52
Add New Post /wp-admin/post-new.php1,536 ▲817.77 ▼5.36706.43 ▲90.6059.54 ▲2.71
Media Library /wp-admin/upload.php1,415 ▲274.23 ▲0.0394.87 ▼6.0041.82 ▼2.11
Test mail /wp-admin/admin.php?page=smtp_test_mail8352.0224.4643.07
SMTP settings /wp-admin/admin.php?page=smtp_settings9492.0623.8325.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=smtp_settings
    • > Notice in wp-content/plugins/simple-wp-smtp/admin/smtp-settings-form.php+90
    Trying to access array offset on value of type bool

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
Please fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-wp-smtp/inc/helper-function.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-wp-smtp/admin/smtp-settings-form.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-wp-smtp/admin/smtp-test-mail-form.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-wp-smtp/admin/admin-menu.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Requires at least: Version not formatted correctly
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

simple-wp-smtp/easy-smtp.php 69% from 13 tests

"Simple WP SMTP" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages/")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages/")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-wp-smtp.php" instead of "easy-smtp.php")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.0" instead of "7.2")

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
There were no executable files found in this plugin318 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP71283222
CSS23161
Markdown113035

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin