79% scand-multi-mailer

Code Review | MultiMailer

WordPress plugin MultiMailer scored79%from 54 tests.

About plugin

  • Plugin page: scand-multi-mailer
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 17, 2017
  • Latest release: Apr 13, 2023
  • Number of updates: 17
  • Update frequency: every 132.1 days
  • Top authors: scandltd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,515 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.49ms] Passed 4 tests

This is a short check of server-side resources used by MultiMailer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0542.76 ▲3.32
Dashboard /wp-admin3.36 ▲0.0662.05 ▲7.04
Posts /wp-admin/edit.php3.48 ▲0.1249.52 ▼0.64
Add New Post /wp-admin/post-new.php5.96 ▲0.0897.19 ▼13.61
Media Library /wp-admin/upload.php3.29 ▲0.0637.05 ▲0.97
MultiMailer /wp-admin/options-general.php?page=scand-multi-mailer3.5137.42

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: 1 new table, 6 new options
New tables
wp_mm_providers
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by MultiMailer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.70 ▲0.141.87 ▲0.2243.74 ▲4.29
Dashboard /wp-admin2,198 ▲175.53 ▼0.1386.27 ▼18.0240.20 ▼1.67
Posts /wp-admin/edit.php2,103 ▲61.98 ▼0.0534.99 ▼1.3932.65 ▼5.87
Add New Post /wp-admin/post-new.php1,531 ▲323.78 ▲0.31632.25 ▼52.3660.42 ▲2.18
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.06101.40 ▼6.5143.21 ▼4.18
MultiMailer /wp-admin/options-general.php?page=scand-multi-mailer8062.0426.1727.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/scand-multi-mailer/scand-multi-mailer.php
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: providerService in wp-content/plugins/scand-multi-mailer/view-provider-form.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_provider() on null in wp-content/plugins/scand-multi-mailer/view-provider-form.php:10
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/PHPMailer/PHPMailer.php' (include_path='.:/usr/share/php') in wp-content/plugins/scand-multi-mailer/providers/class-phpmailer-sender.php on line 9
    • > PHP Fatal error
      Uncaught Error: Interface 'Scand_Multi_Mailer_ISender' not found in wp-content/plugins/scand-multi-mailer/providers/class-mail-std-sender.php:9
    • > PHP Fatal error
      Uncaught Error: Call to a member function sort_providers() on null in wp-content/plugins/scand-multi-mailer/view-providers-table.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Scand_Multi_Mailer_ISender' not found in wp-content/plugins/scand-multi-mailer/providers/class-log-file-sender.php:9
    • > PHP Warning
      require_once(ABSPATHWPINC/PHPMailer/PHPMailer.php): failed to open stream: No such file or directory in wp-content/plugins/scand-multi-mailer/providers/class-phpmailer-sender.php on line 9
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/scand-multi-mailer/providers/class-phpmailer-sender.php on line 9
    • > PHP Notice
      Undefined variable: providerService in wp-content/plugins/scand-multi-mailer/view-providers-table.php on line 10
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/scand-multi-mailer/providers/class-phpmailer-sender.php on line 9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
5 plugin tags: scandltd, smtp, email log, php mailer, contact form

scand-multi-mailer/scand-multi-mailer.php Passed 13 tests

"MultiMailer" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
87 characters long description:
Send data from one contact form to multiple email addresses or save data into log file.

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
Success! There were no dangerous files found in this plugin1,777 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP122761241,628
PO File14756108
JavaScript14041

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity21.67
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods124
▷ Static methods2318.55%
▷ Public methods10685.48%
▷ Protected methods43.23%
▷ Private methods1411.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants750.00%
▷ Class constants750.00%
▷ Public constants7100.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
There are no PNG files in this plugin