10% bp-group-tinychat

Code Review | BuddyPress Group Tinychat

WordPress plugin BuddyPress Group Tinychat scored10%from 54 tests.

About plugin

  • Plugin page: bp-group-tinychat
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: WordPress 3.1.0, BuddyPress 1.2.8-4.2.3
  • WordPress version: 6.3.1
  • First release: Mar 9, 2013
  • Latest release: Sep 10, 2015
  • Number of updates: 148
  • Update frequency: every 6.2 days
  • Top authors: datyokimphg (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10+ active /16,704 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > 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.00MB] [CPU: ▼9.17ms] Passed 4 tests

This is a short check of server-side resources used by BuddyPress Group Tinychat
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.54 ▼1.41
Dashboard /wp-admin3.31 ▼0.0349.02 ▼19.60
Posts /wp-admin/edit.php3.36 ▲0.0146.03 ▼7.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.66 ▼8.53
Media Library /wp-admin/upload.php3.24 ▲0.0138.18 ▼0.46

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: 2 new tables, 6 new options
New tables
wp_bp_group_tinychat
wp_bp_group_tinychat_online
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

BuddyPress Group Tinychat: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▲0.121.75 ▲0.1343.50 ▲0.87
Dashboard /wp-admin2,195 ▲185.52 ▼0.1082.96 ▼9.2438.97 ▼3.74
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0334.69 ▼3.8234.30 ▲0.01
Add New Post /wp-admin/post-new.php1,535 ▲718.01 ▼4.99647.02 ▼55.1368.43 ▲18.60
Media Library /wp-admin/upload.php1,394 ▼64.20 ▲0.0895.69 ▼2.5643.17 ▼2.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie tables were found after uninstall: 2 tables
    • wp_bp_group_tinychat_online
    • wp_bp_group_tinychat
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-group-tinychat/loader.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-group-tinychat/includes/bp-group-tinychat-core.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #4 (setting.)
  • Requires at least: Invalid plugin version format
The official readme.txt is a good inspiration

bp-group-tinychat/loader.php 85% from 13 tests

The main PHP file in "BuddyPress Group Tinychat" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bp-group-tinychat.php" instead of "loader.php")
  • Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "WordPress 3.1.0, BuddyPress 1.2.8")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin141 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24521141

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity5.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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
4 PNG files occupy 0.46MB with 0.29MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png114.02KB41.40KB▼ 63.69%
screenshot-4.png121.20KB46.35KB▼ 61.76%
screenshot-1.png71.23KB23.61KB▼ 66.85%
screenshot-2.png161.79KB55.53KB▼ 65.67%