62% wp-mailing-group

Code Review | Mailing Group Listserv

WordPress plugin Mailing Group Listserv scored62%from 54 tests.

About plugin

  • Plugin page: wp-mailing-group
  • Plugin version: 2.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.3-6.3.0
  • WordPress version: 6.3.1
  • First release: Mar 15, 2015
  • Latest release: Oct 20, 2023
  • Number of updates: 194
  • Update frequency: every 16.2 days
  • Top authors: marcusbs (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

200+ active /17,416 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.71MB] [CPU: ▼0.01ms] Passed 4 tests

Server-side resources used by Mailing Group Listserv
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.21 ▲0.7443.76 ▲3.59
Dashboard /wp-admin4.07 ▲0.7253.54 ▼6.84
Posts /wp-admin/edit.php4.12 ▲0.7648.28 ▲1.90
Add New Post /wp-admin/post-new.php6.59 ▲0.7093.82 ▲1.29
Media Library /wp-admin/upload.php3.93 ▲0.7042.36 ▲9.81
Troubleshooting /wp-admin/admin.php?page=wpmg_mailinggroup_testmail4.00386.80
Messages Editor /wp-admin/admin.php?page=wpmg_mailinggroup_adminmessagelist3.9436.16
Add Admin Message /wp-admin/admin.php?page=wpmg_mailinggroup_adminmessageadd3.9428.61
Mailing Groups /wp-admin/admin.php?page=wpmg_mailinggroup_list3.9234.27
General Settings /wp-admin/admin.php?page=wpmg_mailinggroup_intro3.9432.82
Help /wp-admin/admin.php?page=wpmg_mailinggroup_help3.9134.66
Subscription Requests /wp-admin/admin.php?page=wpmg_mailinggroup_requestmanagerlist4.0234.68
Add Mailing Group /wp-admin/admin.php?page=wpmg_mailinggroup_add4.1835.43
Member Manager /wp-admin/admin.php?page=wpmg_mailinggroup_memberlist3.9432.41
Add Message /wp-admin/admin.php?page=wpmg_mailinggroup_messageadd3.9434.44

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 86 new files
Database: 8 new tables, 7 new options
New tables
wp_mailing_group_sent_emails
wp_mailing_group_taxonomy
wp_mailing_group_messages
wp_mailing_group_user_taxonomy
wp_mailing_group_attachments
wp_mailing_group_requestmanager
wp_mailing_group_parsed_emails
wp_mailing_group
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
WPMG_SETTINGS
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Mailing Group Listserv
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9214.77 ▲0.151.79 ▲0.1644.76 ▲4.17
Dashboard /wp-admin2,247 ▲664.92 ▼0.74102.86 ▲5.6741.89 ▼0.48
Posts /wp-admin/edit.php2,149 ▲522.51 ▲0.5734.15 ▼0.0530.43 ▼6.67
Add New Post /wp-admin/post-new.php1,576 ▲5018.41 ▼4.48602.52 ▲9.6068.70 ▲11.49
Media Library /wp-admin/upload.php1,449 ▲494.39 ▲0.25102.02 ▲3.2341.58 ▼1.83
Troubleshooting /wp-admin/admin.php?page=wpmg_mailinggroup_testmail1,2751.9927.9945.57
Messages Editor /wp-admin/admin.php?page=wpmg_mailinggroup_adminmessagelist9812.1027.0325.02
Add Admin Message /wp-admin/admin.php?page=wpmg_mailinggroup_adminmessageadd9561.8325.8525.06
Mailing Groups /wp-admin/admin.php?page=wpmg_mailinggroup_list8952.0926.7025.62
General Settings /wp-admin/admin.php?page=wpmg_mailinggroup_intro9921.8324.1542.61
Help /wp-admin/admin.php?page=wpmg_mailinggroup_help1,0191.8624.4529.16
Subscription Requests /wp-admin/admin.php?page=wpmg_mailinggroup_requestmanagerlist9672.0025.0025.13
Add Mailing Group /wp-admin/admin.php?page=wpmg_mailinggroup_add1,4202.0327.0539.06
Member Manager /wp-admin/admin.php?page=wpmg_mailinggroup_memberlist1,5842.9432.0730.42
Add Message /wp-admin/admin.php?page=wpmg_mailinggroup_messageadd9681.9726.4426.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall successfully, leaving 8 tables in the database
    • wp_mailing_group_sent_emails
    • wp_mailing_group_user_taxonomy
    • wp_mailing_group_attachments
    • wp_mailing_group_requestmanager
    • wp_mailing_group_messages
    • wp_mailing_group_taxonomy
    • wp_mailing_group_parsed_emails
    • wp_mailing_group
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • WPMG_SETTINGS
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=wpmg_mailinggroup_adminmessageadd
    • > Notice in wp-content/plugins/wp-mailing-group/template/mg_adminmessageadd.php+71
    Undefined index: title
    • > GET request to /wp-admin/admin.php?page=wpmg_mailinggroup_adminmessageadd
    • > Notice in wp-content/plugins/wp-mailing-group/template/mg_adminmessageadd.php+73
    Undefined index: message_subject
    • > GET request to /wp-admin/admin.php?page=wpmg_mailinggroup_adminmessageadd
    • > Notice in wp-content/plugins/wp-mailing-group/template/mg_adminmessageadd.php+75
    Undefined index: description
    • > GET request to /wp-admin/admin.php?page=wpmg_mailinggroup_adminmessageadd
    • > Notice in wp-content/plugins/wp-mailing-group/template/mg_adminmessageadd.php+77
    Undefined index: status

SRP 0% 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
  • 6× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-mailing-group/crons/wpmg_cron_bounced_email.php
    • > /wp-content/plugins/wp-mailing-group/lib/captcha.php
    • > /wp-content/plugins/wp-mailing-group/mailing-group-module.php
    • > /wp-content/plugins/wp-mailing-group/crons/wpmg_cron_send_email.php
    • > /wp-content/plugins/wp-mailing-group/crons/wpmg_cron_parse_email.php
    • > /wp-content/plugins/wp-mailing-group/crons/wpmg_cron_attachments.php
  • 27× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-mailing-group/template/mg_adminmessageadd.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-mailing-group/template/mg_importuser.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/wp-mailing-group/template/mg_viewmessage.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-mailing-group/template/mg_intro_text.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-mailing-group/template/mg_user_form.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-mailing-group/template/mg_adminmessagelist.php:69
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/wp-mailing-group/template/mg_viewmessageajax.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-mailing-group/template/mg_messageadd.php:5
    • > PHP Warning
      Use of undefined constant WPMG_PLUGIN_PATH - assumed 'WPMG_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-mailing-group/template/mg_imapemailconnection.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-mailing-group/template/mg_formstyle.php:3

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 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #5 (Screenshot-5.png - Shows a focus of add a mailing group screen.), #6 (Screenshot-6.png - Group email footer is fully customizeable.)
The official readme.txt is a good inspiration

wp-mailing-group/mailing-group-module.php 85% from 13 tests

The main PHP file in "Mailing Group Listserv" ver. 2.0.7 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 348 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-mailing-group.php" instead of "mailing-group-module.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected11,791 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP344,9631,4247,282
CSS21,125832,273
PO File3835201,731
JavaScript41,176352505

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity57.12
▷ Minimum class complexity1.00
▷ Maximum class complexity251.00
Average method complexity4.49
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods129
▷ Static methods32.33%
▷ Public methods11387.60%
▷ Protected methods53.88%
▷ Private methods118.53%
Functions69
▷ Named functions69100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
37 PNG files occupy 0.70MB with 0.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/forward_enabled.png3.01KB0.49KB▼ 83.56%
screenshot-2.png105.38KB38.75KB▼ 63.22%
images/sort_asc_disabled.png2.84KB0.25KB▼ 91.35%
screenshot-1.png201.28KB70.20KB▼ 65.12%
images/import.png14.37KB0.36KB▼ 97.51%