10% bp-group-chat

Code Review | Video Chat for BuddyPress Groups

WordPress plugin Video Chat for BuddyPress Groups scored 10% from 54 tests.

About plugin

  • Plugin page: bp-group-chat
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: WordPress 4.0, BuddyPress 4.0-5.8
  • WordPress version: 5.8.1
  • First release: Aug 21, 2019
  • Latest release: Aug 21, 2021
  • Number of updates: 38
  • Update frequency: every 19.3 days
  • Top authors: ruddernationdesigns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,755 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5401
    upgrade-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/upgrade.php instead.

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

Server-side resources used by Video Chat for BuddyPress Groups
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1247.01 ▲18.89
Dashboard /wp-admin3.07 ▲0.0148.01 ▼0.21
Posts /wp-admin/edit.php3.12 ▲0.0147.86 ▲3.28
Add New Post /wp-admin/post-new.php5.42 ▼0.0193.28 ▼570.30
Media Library /wp-admin/upload.php3.01 ▲0.0135.75 ▼2.85

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: 2 new tables, no new options
New tables

Browser metrics Passed 4 tests

This is an overview of browser requirements for Video Chat for BuddyPress Groups
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.79 ▲0.278.94 ▼2.0348.98 ▼5.51
Dashboard /wp-admin2,973 ▲435.93 ▲0.02147.69 ▼10.33116.76 ▼2.92
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0069.54 ▼3.5497.93 ▼3.39
Add New Post /wp-admin/post-new.php1,683 ▼018.68 ▲2.41396.23 ▼4.66115.65 ▼2.32
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.03180.21 ▲18.23128.20 ▲5.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 2 tables
    • wp_bp_tinychat_group_chat
    • wp_bp_tinychat_group_chat_online

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'BP_Group_Extension' not found in wp-content/plugins/bp-group-chat/chat-core.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-group-chat/group-chat-for-buddypress.php:32

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


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
8 plugin tags: tinychat, group chat, video chat, html5, buddypress video chat...

bp-group-chat/group-chat-for-buddypress.php 85% from 13 tests

The main PHP file in "Video Chat for BuddyPress Groups" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "WordPress 4.0, BuddyPress 4.0")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-group-chat.php" instead of "group-chat-for-buddypress.php")

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
No dangerous file extensions were detected122 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.33
▷ Minimum method complexity2.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.41MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-11.png13.19KB5.91KB▼ 55.18%
screenshot-5.png37.22KB14.33KB▼ 61.51%
screenshot-6.png21.88KB9.80KB▼ 55.22%
screenshot-7.png8.99KB5.20KB▼ 42.24%
screenshot-8.png20.85KB9.47KB▼ 54.60%