84% bulk-mail-send

Code Review | Bulk Mail Send

WordPress plugin Bulk Mail Send scored84%from 54 tests.

About plugin

  • Plugin page: bulk-mail-send
  • Plugin version: 1.11
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 17, 2020
  • Latest release: Oct 26, 2023
  • Number of updates: 30
  • Update frequency: every 35.7 days
  • Top authors: Katsushi Kawamori (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,375 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.20MB] [CPU: ▼0.50ms] Passed 4 tests

Analyzing server-side resources used by Bulk Mail Send
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2037.55 ▼0.13
Dashboard /wp-admin3.50 ▲0.2045.08 ▼5.12
Posts /wp-admin/edit.php3.61 ▲0.2644.52 ▲1.59
Add New Post /wp-admin/post-new.php6.08 ▲0.2090.38 ▲11.13
Media Library /wp-admin/upload.php3.42 ▲0.1937.88 ▲1.68
Bulk Mail Send /wp-admin/admin.php?page=bulkmailsend3.3932.45
Select Users /wp-admin/admin.php?page=bulkmailsend-user-selector3.4031.78
Settings /wp-admin/admin.php?page=bulkmailsend-settings3.3930.94

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Bulk Mail Send
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲8414.07 ▲0.011.73 ▲0.1937.98 ▲0.01
Dashboard /wp-admin2,229 ▲515.60 ▼0.1379.95 ▼40.7037.05 ▼4.83
Posts /wp-admin/edit.php2,128 ▲252.00 ▲0.0534.24 ▼12.6234.02 ▼4.58
Add New Post /wp-admin/post-new.php1,551 ▲2323.13 ▲0.08588.93 ▼28.6254.90 ▲7.81
Media Library /wp-admin/upload.php1,431 ▲314.13 ▼0.00126.62 ▲24.6152.12 ▲5.08
Bulk Mail Send /wp-admin/admin.php?page=bulkmailsend8542.0224.8829.86
Select Users /wp-admin/admin.php?page=bulkmailsend-user-selector1,1392.0426.6328.47
Settings /wp-admin/admin.php?page=bulkmailsend-settings8372.0222.9324.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 items
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bulk-mail-send/lib/class-tt-bulkmailsenduser-list-table.php on line 26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-mail-send/lib/class-bulkmailsend.php:38
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bulk-mail-send/lib/class-tt-bulkmailsendorder-list-table.php on line 26
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-screen.php): failed to open stream: No such file or directory in wp-content/plugins/bulk-mail-send/lib/class-tt-bulkmailsendorder-list-table.php on line 26
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-screen.php' (include_path='.:/usr/share/php') in wp-content/plugins/bulk-mail-send/lib/class-tt-bulkmailsendorder-list-table.php on line 26
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-screen.php): failed to open stream: No such file or directory in wp-content/plugins/bulk-mail-send/lib/class-tt-bulkmailsenduser-list-table.php on line 26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-mail-send/lib/class-bulkmailsend.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-mail-send/lib/class-bulkmailsendadmin.php:36
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-screen.php' (include_path='.:/usr/share/php') in wp-content/plugins/bulk-mail-send/lib/class-tt-bulkmailsenduser-list-table.php on line 26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: mail, users, customers, orders

bulk-mail-send/bulkmailsend.php 85% from 13 tests

The main file in "Bulk Mail Send" v. 1.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "3.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("bulk-mail-send.php" instead of "bulkmailsend.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin971 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6161487971

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity32.00
▷ Minimum class complexity9.00
▷ Maximum class complexity57.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods3088.24%
▷ Protected methods00.00%
▷ Private methods411.76%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin