84% bbp-private-groups

Code Review | Private groups

WordPress plugin Private groups scored84%from 54 tests.

About plugin

  • Plugin page: bbp-private-groups
  • Plugin version: 3.9.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: May 16, 2014
  • Latest release: Jul 12, 2023
  • Number of updates: 517
  • Update frequency: every 6.5 days
  • Top authors: Robin W (100%)

Code review

54 tests

User reviews

49 reviews

Install metrics

2,000+ active /140,054 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼10.79ms] Passed 4 tests

Analyzing server-side resources used by Private groups
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.36 ▲0.8947.70 ▲2.47
Dashboard /wp-admin4.18 ▲0.8856.51 ▲2.53
Posts /wp-admin/edit.php4.23 ▲0.8852.54 ▲1.68
Add New Post /wp-admin/post-new.php3.97 ▼1.9243.23 ▼49.84
Media Library /wp-admin/upload.php4.04 ▲0.8145.80 ▲8.43
bbp Private Groups /wp-admin/options-general.php?page=bbp-private-group-settings4.0141.36

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 11 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
recovery_mode_email_last_sent
widget_recent-comments
db_upgraded
widget_pg_topics_widget
can_compress_scripts
widget_pg_replies_widget
widget_recent-posts
widget_pg_activity_widget
...

Browser metrics Passed 4 tests

A check of browser resources used by Private groups
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.27 ▼0.231.67 ▼0.0344.33 ▼2.06
Dashboard /wp-admin2,193 ▲165.54 ▼0.1284.87 ▼21.3437.72 ▼6.46
Posts /wp-admin/edit.php2,107 ▲41.95 ▼0.0735.72 ▼1.3133.69 ▲0.75
Add New Post /wp-admin/post-new.php45 ▼1,4810.42 ▼23.020.39 ▼669.319.39 ▼55.82
Media Library /wp-admin/upload.php1,401 ▲14.16 ▼0.04104.88 ▼5.0784.33 ▲35.45
bbp Private Groups /wp-admin/options-general.php?page=bbp-private-group-settings1,0062.0128.0933.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 11 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • widget_pg_activity_widget
    • widget_pg_replies_widget
    • widget_recent-posts
    • widget_recent-comments
    • widget_pg_forums_widget
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-private-groups/includes/user-profile.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bbp-private-groups/includes/topics.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bbp-private-groups/bbp-private-groups.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-private-groups/includes/settings.php:398
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bbp-private-groups/includes/mark-as-read-filter.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bbp-private-groups/includes/search.php:143
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-private-groups/includes/pg_forum_widgets.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-private-groups/includes/functions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-private-groups/includes/meta-box.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bbp-private-groups/includes/shortcodes.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: forum, bbp, bbpress, private, groups

bbp-private-groups/bbp-private-groups.php 92% from 13 tests

The entry point to "Private groups" version 3.9.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 151 characters long)

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
Good job! No executable or dangerous file extensions detected5,466 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP271,6221,2134,392
PO File12733131,074

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity16.40
▷ Minimum class complexity10.00
▷ Maximum class complexity22.00
Average method complexity3.66
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods29
▷ Static methods413.79%
▷ Public methods2793.10%
▷ Protected methods00.00%
▷ Private methods26.90%
Functions102
▷ Named functions102100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin