10% bp-group-chat

Code Review | Video Chat for BuddyPress Groups -Discontinued

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

About plugin

  • Plugin page: bp-group-chat
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: WordPress 4.0, BuddyPress 4.0-5.8.2
  • WordPress version: 5.8.1
  • First release: Aug 21, 2019
  • Latest release: Jan 12, 2022
  • Number of updates: 40
  • Update frequency: every 22.0 days
  • Top authors: ruddernationdesigns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,911 total downloads

Benchmarks

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.00MB] [CPU: ▼184.04ms] Passed 4 tests

Server-side resources used by Video Chat for BuddyPress Groups -Discontinued
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0125.19 ▲3.86
Dashboard /wp-admin3.07 ▲0.0030.90 ▼4.89
Posts /wp-admin/edit.php3.12 ▲0.0128.16 ▼4.78
Add New Post /wp-admin/post-new.php5.43 ▼0.0167.72 ▼726.92
Media Library /wp-admin/upload.php3.01 ▲0.0122.45 ▲0.43

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Video Chat for BuddyPress Groups -Discontinued
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲6515.50 ▼0.166.61 ▲1.0576.44 ▲3.79
Dashboard /wp-admin2,930 ▲346.14 ▼0.00118.51 ▼18.85168.83 ▼6.53
Posts /wp-admin/edit.php2,740 ▼03.36 ▲0.0061.37 ▼3.05135.17 ▼4.67
Add New Post /wp-admin/post-new.php3,735 ▼8018.22 ▼1.37432.59 ▼1.87158.60 ▼4.54
Media Library /wp-admin/upload.php1,749 ▼35.48 ▼0.01145.16 ▼12.70185.25 ▲0.05

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_online
    • wp_bp_tinychat_group_chat

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

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

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

The main PHP file in "Video Chat for BuddyPress Groups -Discontinued" ver. 1.2.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • 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")
  • Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "WordPress 4.0, BuddyPress 4.0")

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
PHP25115122

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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
14 PNG files occupy 2.06MB with 1.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-7.png8.99KB5.20KB▼ 42.24%
screenshot-3.png18.29KB7.34KB▼ 59.87%
screenshot-12.png426.69KB151.52KB▼ 64.49%
screenshot-2.png39.15KB14.75KB▼ 62.34%
screenshot-10.png68.89KB28.57KB▼ 58.53%