10% bp-group-chatroom

Code Review | BuddyPress Group Chatroom

WordPress plugin BuddyPress Group Chatroom scored10%from 54 tests.

About plugin

  • Plugin page: bp-group-chatroom
  • Plugin version: 1.7.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-5.6
  • WordPress version: 6.3.1
  • First release: Mar 28, 2019
  • Latest release: Feb 10, 2021
  • Number of updates: 28
  • Update frequency: every 24.5 days
  • Top authors: Venutius (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /11,683 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5643
    File upgrade-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/upgrade.php instead.

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.42ms] Passed 4 tests

An overview of server-side resources used by BuddyPress Group Chatroom
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.32 ▼4.73
Dashboard /wp-admin3.33 ▲0.0244.66 ▼6.60
Posts /wp-admin/edit.php3.38 ▲0.0249.01 ▲3.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.21 ▲4.49
Media Library /wp-admin/upload.php3.25 ▲0.0235.14 ▲1.92

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 1,195 new files
Database: 4 new tables, 6 new options
New tables
wp_bp_group_chat
wp_bp_group_chat_threads
wp_bp_group_chat_updates
wp_bp_group_chat_online
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for BuddyPress Group Chatroom
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.27 ▼0.281.73 ▼0.0340.28 ▼1.17
Dashboard /wp-admin2,195 ▲175.61 ▼0.1192.18 ▼26.9741.86 ▼1.26
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0838.70 ▲4.5136.86 ▲0.53
Add New Post /wp-admin/post-new.php1,534 ▼323.45 ▲5.11626.94 ▼28.0548.52 ▼17.48
Media Library /wp-admin/upload.php1,403 ▲64.25 ▲0.0796.80 ▲3.0040.50 ▼1.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Error in wp-content/plugins/bp-group-chatroom/uninstall.php+17
    Uncaught Error: Call to undefined function groups_get_groups() in wp-content/plugins/bp-group-chatroom/uninstall.php:17
    Stack trace:
    #0 wp-admin/includes/plugin.php(1245): include_once()
    #1 wp-admin/includes/plugin.php(960): uninstall_plugin()
  • Uninstaller has failed for this plugin, leaving 1,195 files (3.24MB) in the plugin directory
    • (new file) includes/css/bp-group-chatroom-display.css
    • (new file) includes/bp-group-chatroom-core.php
    • (new file) includes/icons/0030-20E3.png
    • (new file) includes/bp-group-chatroom-emoji-display.php
    • (new file) includes/bp-group-chatroom-db-functions.php
    • (new file) includes/icons/0033-20E3.png
    • (new file) includes/icons/0032-20E3.png
    • (new file) includes/icons/0023-20E3.png
    • (new file) includes/icons/0031-20E3.png
    • (new file) includes/bp-group-chatroom-display.php
    • ...
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bp-group-chatroom/includes/bp-group-chatroom-emoji-display.php:1

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 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Donate link: Please fix this invalid url: "paypal.me/GeorgeChaplin"
  • Screenshots: Please describe screenshot #1 in bp-group-chatroom/assets to your readme.txt
You can take inspiration from this readme.txt

bp-group-chatroom/loader.php 92% from 13 tests

"BuddyPress Group Chatroom" version 1.7.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bp-group-chatroom.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,084 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS11,19722,502
PHP6338932,247
JavaScript25822299
PO File181436

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.10
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1182 compressed PNG files occupy 2.87MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/icons/1F3CE.png3.06KB2.13KB▼ 30.47%
includes/icons/1F3CC.png2.03KB1.85KB▼ 8.92%
includes/icons/1F3A2.png2.80KB2.04KB▼ 27.29%
includes/icons/1F1E6-1F1E9.png1.31KB1.28KB▼ 1.94%
includes/icons/1F1F2-1F1F9.png0.82KB0.95KB0.00%