84% smtp-mailing-queue

Code Review | SMTP Mailing Queue

WordPress plugin SMTP Mailing Queue scored84%from 54 tests.

About plugin

  • Plugin page: smtp-mailing-queue
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.9.3
  • WordPress version: 6.3.1
  • First release: May 5, 2015
  • Latest release: Apr 2, 2023
  • Number of updates: 71
  • Update frequency: every 40.7 days
  • Top authors: Birmania (66.2%)hildende (35.21%)

Code review

54 tests

User reviews

18 reviews

Install metrics

1,000+ active /17,714 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.46MB] [CPU: ▼3.75ms] Passed 4 tests

An overview of server-side resources used by SMTP Mailing Queue
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4641.18 ▼0.07
Dashboard /wp-admin3.78 ▲0.4346.21 ▼13.64
Posts /wp-admin/edit.php3.89 ▲0.5350.10 ▲4.32
Add New Post /wp-admin/post-new.php6.38 ▲0.4994.03 ▼5.60
Media Library /wp-admin/upload.php3.70 ▲0.4740.27 ▲6.57
SMTP Mailing Queue /wp-admin/options-general.php?page=smtp-mailing-queue3.6732.77

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
smq_version
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
smtp_mailing_queue_advanced
widget_recent-posts

Browser metrics Passed 4 tests

SMTP Mailing Queue: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.21 ▼0.061.73 ▼0.2238.34 ▼6.13
Dashboard /wp-admin2,201 ▲275.66 ▲0.1493.81 ▲7.7640.61 ▼3.20
Posts /wp-admin/edit.php2,106 ▲62.01 ▲0.0339.69 ▲1.9235.55 ▲3.94
Add New Post /wp-admin/post-new.php1,531 ▲523.20 ▲0.17664.08 ▼19.0548.91 ▼16.13
Media Library /wp-admin/upload.php1,409 ▲184.22 ▲0.0098.09 ▼4.8340.94 ▼6.79
SMTP Mailing Queue /wp-admin/options-general.php?page=smtp-mailing-queue8871.8122.3527.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • smq_version
    • theysaidso_admin_options
    • widget_recent-posts
    • smtp_mailing_queue_advanced
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Almost there! Just fix the following items
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/smtp-mailing-queue/smtp-mailing-queue.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'SMTPMailingQueueAdmin' not found in wp-content/plugins/smtp-mailing-queue/classes/SMTPMailingQueueSupervisors.php:5
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/smtp-mailing-queue/classes/PHPMailer/class-phpmailer.php on line 4
    • > PHP Warning
      require_once(ABSPATHWPINC/class-phpmailer.php): failed to open stream: No such file or directory in wp-content/plugins/smtp-mailing-queue/classes/PHPMailer/class-phpmailer.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/class-phpmailer.php' (include_path='.:/usr/share/php') in wp-content/plugins/smtp-mailing-queue/classes/PHPMailer/class-phpmailer.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/smtp-mailing-queue/classes/PHPMailer/class-phpmailer.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (SMTP Setting), #2 (Advanced Settings), #3 (Tools), #4 (Supervisors)
You can look at the official readme.txt

smtp-mailing-queue/smtp-mailing-queue.php Passed 13 tests

The entry point to "SMTP Mailing Queue" version 2.0.1 is a PHP file that has certain tags in its header comment area
18 characters long description:
SMTP Mailing Queue

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,763 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP154699622,267
PO File2183252491
JavaScript1005

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity35.00
▷ Minimum class complexity1.00
▷ Maximum class complexity98.00
Average method complexity3.84
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes00.00%
Methods110
▷ Static methods98.18%
▷ Public methods8375.45%
▷ Protected methods1210.91%
▷ Private methods1513.64%
Functions8
▷ Named functions225.00%
▷ Anonymous functions675.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin