84% bp-auto-group-join

Code Review | BP Auto Group Join

WordPress plugin BP Auto Group Join scored84%from 54 tests.

About plugin

  • Plugin page: bp-auto-group-join
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.5.1
  • WordPress version: 6.3.1
  • First release: Nov 16, 2015
  • Latest release: Oct 22, 2020
  • Number of updates: 15
  • Update frequency: every 120.5 days
  • Top authors: BuddyBoss (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /14,463 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by BP Auto Group Join
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.19 ▲3.81
Dashboard /wp-admin3.32 ▲0.0144.27 ▼3.34
Posts /wp-admin/edit.php3.37 ▲0.0148.44 ▼1.67
Add New Post /wp-admin/post-new.php5.90 ▲0.01102.99 ▲14.24
Media Library /wp-admin/upload.php3.24 ▲0.0133.43 ▼1.45

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for BP Auto Group Join
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.21 ▼1.174.79 ▲3.1943.95 ▼2.35
Dashboard /wp-admin2,210 ▲195.97 ▲1.0594.29 ▼9.4240.29 ▼1.39
Posts /wp-admin/edit.php2,093 ▲42.04 ▼0.0039.84 ▲3.7937.82 ▲2.93
Add New Post /wp-admin/post-new.php1,537 ▲1723.09 ▼0.28639.63 ▼37.2352.40 ▼6.47
Media Library /wp-admin/upload.php1,392 ▲44.23 ▲0.0193.28 ▼12.8344.58 ▼0.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bp-auto-group-join/includes/help-support.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

bp-auto-group-join/bp-auto-group-join.php Passed 13 tests

Analyzing the main PHP file in "BP Auto Group Join" version 1.0.4
47 characters long description:
Automatically join BuddyPress members to Groups

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,085 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PO File25978174

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity32.25
▷ Minimum class complexity24.00
▷ Maximum class complexity40.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods23.33%
▷ Public methods5591.67%
▷ Protected methods00.00%
▷ Private methods58.33%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin