10% mass-messaging-in-buddypress

Code Review | Mass Messaging in BuddyPress

WordPress plugin Mass Messaging in BuddyPress scored10%from 54 tests.

About plugin

  • Plugin page: mass-messaging-in...
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.8.2
  • WordPress version: 6.3.1
  • First release: Jun 7, 2011
  • Latest release: Oct 9, 2017
  • Number of updates: 62
  • Update frequency: every 37.4 days
  • Top authors: ElbowRobo (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

200+ active /24,462 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/mass-messaging-in-buddypress/includes/implementation.php+267
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Server metrics [RAM: ▼1.75MB] [CPU: ▼56.53ms] Passed 4 tests

A check of server-side resources used by Mass Messaging in BuddyPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.24 ▼1.235.49 ▼36.12
Dashboard /wp-admin2.26 ▼1.057.04 ▼46.60
Posts /wp-admin/edit.php2.26 ▼1.107.96 ▼49.32
Add New Post /wp-admin/post-new.php2.26 ▼3.636.66 ▼94.08
Media Library /wp-admin/upload.php2.26 ▼0.977.15 ▼27.99

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mass Messaging in BuddyPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.022.05 ▲0.2141.36 ▼5.59
Dashboard /wp-admin2,198 ▲215.61 ▼0.0093.04 ▼9.1338.64 ▼1.74
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0941.43 ▼0.8741.31 ▲1.09
Add New Post /wp-admin/post-new.php1,526 ▼023.54 ▼0.23641.43 ▼34.7451.43 ▲2.03
Media Library /wp-admin/upload.php1,397 ▼34.14 ▼0.02100.67 ▼7.6841.60 ▼4.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/mass-messaging-in-buddypress/includes/implementation.php+267
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/mass-messaging-in-buddypress/includes/implementation.php on line 267
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/mass-messaging-in-buddypress/includes/implementation.php on line 275
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/mass-messaging-in-buddypress/includes/implementation.php on line 271

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: buddypress, blogs, groups, members, users...

mass-messaging-in-buddypress/mass-messaging-in-buddypress.php Passed 13 tests

"Mass Messaging in BuddyPress" version 2.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
Ever wanted to send a message to many people at once? Now you can, introducing - Mass Messaging.

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
There were no executable files found in this plugin1,325 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP9267751,005
JavaScript4700259
CSS49061

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity25.00
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods60
▷ Static methods35.00%
▷ Public methods5896.67%
▷ Protected methods00.00%
▷ Private methods23.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin