78% buddypress-group-folders

Code Review | BuddyPress Group Folders

WordPress plugin BuddyPress Group Folders scored 78% from 54 tests.

About plugin

  • Plugin page: buddypress-group-...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 15, 2013
  • Latest release: Mar 17, 2013
  • Number of updates: 13
  • Update frequency: every 0.2 days
  • Top authors: Ruuttu (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active / 3,849 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.37ms] Passed 4 tests

An overview of server-side resources used by BuddyPress Group Folders
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.06 ▼3.45
Dashboard /wp-admin3.42 ▲0.1151.20 ▼1.65
Posts /wp-admin/edit.php3.53 ▲0.1744.91 ▼5.63
Add New Post /wp-admin/post-new.php6.00 ▲0.1185.04 ▼10.73
Media Library /wp-admin/upload.php3.34 ▲0.1141.23 ▲6.71
Group Folders /wp-admin/options-general.php?page=bp-gfold-admin3.3032.23

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

BuddyPress Group Folders: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.27 ▼1.091.78 ▼0.5744.58 ▲1.21
Dashboard /wp-admin2,210 ▲225.86 ▲0.02115.70 ▲3.5742.35 ▼5.91
Posts /wp-admin/edit.php2,093 ▲72.01 ▼0.0336.01 ▲2.1432.75 ▼1.74
Add New Post /wp-admin/post-new.php1,537 ▲423.21 ▼0.07645.33 ▼90.2155.13 ▼7.03
Media Library /wp-admin/upload.php1,395 ▲74.22 ▼0.0698.95 ▼17.3146.12 ▼2.05
Group Folders /wp-admin/options-general.php?page=bp-gfold-admin8612.0322.1926.48

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/buddypress-group-folders/bp-gfold-worker.php
    • > /wp-content/plugins/buddypress-group-folders/bp-gfold-download.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined index: ajax in wp-content/plugins/buddypress-group-folders/bp-gfold-worker.php on line 22
    • > PHP Notice
      Undefined index: bp-gfold-group-id in wp-content/plugins/buddypress-group-folders/bp-gfold-worker.php on line 23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: files, folders, groups, buddypress

buddypress-group-folders/bp-gfold.php 92% from 13 tests

The principal PHP file in "BuddyPress Group Folders" v. 1.5 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("buddypress-group-folders.php" instead of "bp-gfold.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,109 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP518775682
JavaScript1263173
PO File27478172
CSS14082

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity37.50
▷ Minimum class complexity9.00
▷ Maximum class complexity66.00
Average method complexity4.32
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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