84% bp-groups-suggestions

Code Review | BP Groups Suggestions

WordPress plugin BP Groups Suggestions scored84%from 54 tests.

About plugin

  • Plugin page: bp-groups-suggest...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 30, 2013
  • Latest release: Feb 8, 2023
  • Number of updates: 36
  • Update frequency: every 94.1 days
  • Top authors: lenasterg (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /6,006 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

This is a short check of server-side resources used by BP Groups Suggestions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.48 ▲2.67
Dashboard /wp-admin3.31 ▼0.0446.37 ▼15.93
Posts /wp-admin/edit.php3.36 ▲0.0045.49 ▼3.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.72 ▼19.04
Media Library /wp-admin/upload.php3.23 ▲0.0035.90 ▲0.98

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for BP Groups Suggestions
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.36 ▼0.021.79 ▲0.2043.35 ▲2.05
Dashboard /wp-admin2,195 ▲185.65 ▲0.0190.39 ▲0.5441.88 ▲0.90
Posts /wp-admin/edit.php2,097 ▼31.97 ▼0.0734.87 ▼6.7436.07 ▼1.96
Add New Post /wp-admin/post-new.php1,526 ▼223.15 ▼0.08685.62 ▲27.3575.58 ▲8.50
Media Library /wp-admin/upload.php1,400 ▼04.12 ▼0.12111.02 ▲13.0546.64 ▲1.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-groups-suggestions/groups/suggested-groups.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-groups-suggestions/loader.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (The "Suggested groups" tab on Groups Directory page.), #2 (Hide this Suggestion button on Group description (in case the group is on the suggested groups list).), #3 (Message on Group home page is the group, which is displayed in every visit after the group is removed from suggestion list.), #4 (Message on "Suggested groups" tab on Groups Directory page, in case none group is suggested), #5 (Widget settings)
You can take inspiration from this readme.txt

bp-groups-suggestions/loader.php 92% from 13 tests

"BP Groups Suggestions" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-groups-suggestions.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected917 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File24254123

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity21.00
▷ Minimum class complexity4.00
▷ Maximum class complexity38.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods1152.38%
▷ Public methods2095.24%
▷ Protected methods00.00%
▷ Private methods14.76%
▷ Named functions20100.00%
▷ Anonymous functions00.00%
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.16MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png17.90KB9.24KB▼ 48.38%
screenshot-1.png38.14KB17.28KB▼ 54.68%
screenshot-2.png50.68KB21.94KB▼ 56.71%
images/icon-tool.png0.96KB0.78KB▼ 18.88%
screenshot-5.png9.62KB5.16KB▼ 46.32%