10% super-duper-smtp

Code Review | Super Duper SMTP

WordPress plugin Super Duper SMTP scored10%from 54 tests.

About plugin

  • Plugin page: super-duper-smtp
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4.1
  • WordPress version: 6.3.1
  • First release: May 9, 2020
  • Latest release: Nov 9, 2020
  • Number of updates: 7
  • Update frequency: every 26.3 days
  • Top authors: nandod1707 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /663 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5643
    File class-phpmailer.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/PHPMailer.php instead. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.

Server metrics [RAM: ▼1.88MB] [CPU: ▼49.65ms] Passed 4 tests

This is a short check of server-side resources used by Super Duper SMTP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.364.89 ▼29.49
Dashboard /wp-admin2.13 ▼1.187.32 ▼38.43
Posts /wp-admin/edit.php2.13 ▼1.236.44 ▼39.51
Add New Post /wp-admin/post-new.php2.13 ▼3.766.79 ▼91.18
Media Library /wp-admin/upload.php2.13 ▼1.105.62 ▼28.93

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Super Duper SMTP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲18913.54 ▼0.828.60 ▲6.9740.66 ▼4.31
Dashboard /wp-admin2,219 ▲305.84 ▲0.94104.22 ▼15.8338.62 ▼3.11
Posts /wp-admin/edit.php2,105 ▲162.02 ▼0.0040.41 ▼1.7434.23 ▼3.29
Add New Post /wp-admin/post-new.php1,543 ▲1018.33 ▼4.71624.80 ▼16.5571.13 ▲18.19
Media Library /wp-admin/upload.php1,407 ▲224.19 ▼0.0199.75 ▲1.2842.61 ▼0.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5643
    File class-phpmailer.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/PHPMailer.php instead. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/super-duper-smtp/public/partials/super-duper-smtp-public-display.php
    • > /wp-content/plugins/super-duper-smtp/admin/partials/super-duper-smtp-admin-display.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/class-phpmailer.php' (include_path='.:/usr/share/php') in wp-content/plugins/super-duper-smtp/public/class-super-duper-smtp-public.php on line 26
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/super-duper-smtp/public/class-super-duper-smtp-public.php on line 26
    • > PHP Warning
      require_once(ABSPATHWPINC/class-phpmailer.php): failed to open stream: No such file or directory in wp-content/plugins/super-duper-smtp/public/class-super-duper-smtp-public.php on line 26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/super-duper-smtp/admin/view.php:3
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/super-duper-smtp/public/class-super-duper-smtp-public.php on line 26

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: transactional, wpmail, email, mailer, sendgrid smtp...

super-duper-smtp/super-duper-smtp.php Passed 13 tests

The entry point to "Super Duper SMTP" version 1.0.3 is a PHP file that has certain tags in its header comment area
63 characters long description:
A setup-free and easy to use plugin to send email through SMTP.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected374 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP14153586298
CSS211853
JSON20017
JavaScript26306

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin