84% mass-email-to-users

Code Review | Mass Email To users

WordPress plugin Mass Email To users scored84%from 54 tests.

About plugin

  • Plugin page: mass-email-to-users
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 30, 2012
  • Latest release: Sep 3, 2023
  • Number of updates: 57
  • Update frequency: every 71.1 days
  • Top authors: nik00726 (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /36,040 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.01MB] [CPU: ▼4.31ms] Passed 4 tests

An overview of server-side resources used by Mass Email To users
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.29 ▼1.65
Dashboard /wp-admin3.32 ▲0.0151.67 ▲1.20
Posts /wp-admin/edit.php3.37 ▲0.0151.02 ▼1.24
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.50 ▼13.74
Media Library /wp-admin/upload.php3.24 ▲0.0134.68 ▼0.60

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mass Email To users
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.56 ▼0.821.89 ▲0.1444.79 ▲3.62
Dashboard /wp-admin2,225 ▲404.80 ▼1.02100.00 ▼15.6839.29 ▼15.50
Posts /wp-admin/edit.php2,108 ▲192.02 ▼0.0439.74 ▼1.3935.89 ▲0.15
Add New Post /wp-admin/post-new.php1,546 ▲3223.32 ▲5.79674.38 ▲62.9773.92 ▲11.29
Media Library /wp-admin/upload.php1,404 ▲164.22 ▲0.04117.76 ▲18.8249.88 ▲7.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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)
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mass-email-to-users/wordpressmassemail.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: wordpress email marketing, mass email, wordpress search user and send emails, wordpress email sender, send email to users...

mass-email-to-users/wordpressmassemail.php 92% from 13 tests

"Mass Email To users" version 1.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("mass-email-to-users.php" instead of "wordpressmassemail.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,489 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1132109905
PHP123116530
CSS181054

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/300x250.png42.63KB15.16KB▼ 64.44%
images/g-suite-promo-code-4.png59.03KB17.19KB▼ 70.88%