10% buddypress-groups-extras

Code Review | BuddyPress Groups Extras

WordPress plugin BuddyPress Groups Extras scored10%from 54 tests.

About plugin

  • Plugin page: buddypress-groups...
  • Plugin version: 3.6.10
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.6
  • WordPress version: 6.3.1
  • First release: May 16, 2011
  • Latest release: Dec 7, 2020
  • Number of updates: 110
  • Update frequency: every 31.8 days
  • Top authors: slaFFik (100%)

Code review

54 tests

User reviews

34 reviews

Install metrics

800+ active /76,043 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Error in wp-content/plugins/buddypress-groups-extras/bpge.php+109
    Uncaught Error: Call to undefined function add_blog_option() in wp-content/plugins/buddypress-groups-extras/bpge.php:109
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): bpge_activation()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(693): do_action()

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

Server-side resources used by BuddyPress Groups Extras
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.09 ▲0.04
Dashboard /wp-admin3.31 ▼0.0447.00 ▼18.86
Posts /wp-admin/edit.php3.36 ▲0.0047.09 ▲0.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.84 ▼15.34
Media Library /wp-admin/upload.php3.23 ▲0.0034.95 ▼2.71

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for BuddyPress Groups Extras
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.23 ▼1.352.16 ▲0.3536.98 ▼3.03
Dashboard /wp-admin2,206 ▲185.86 ▼0.02104.27 ▼8.6539.48 ▼4.27
Posts /wp-admin/edit.php2,086 ▼62.01 ▲0.0337.07 ▼0.3134.50 ▲1.98
Add New Post /wp-admin/post-new.php1,533 ▲223.30 ▲4.84622.32 ▼14.5052.86 ▼5.80
Media Library /wp-admin/upload.php1,391 ▼04.22 ▼0.0199.20 ▲0.2343.96 ▼0.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/buddypress-groups-extras/views/front/extras_fields_list.php
  • 30× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Trying to get property 'ID' of non-object in wp-content/plugins/buddypress-groups-extras/views/admin/set_list.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddypress-groups-extras/views/front/extras_top_menu.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'BP_Group_Extension' not found in wp-content/plugins/buddypress-groups-extras/core/loader.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'BPGE_ADMIN_TAB' not found in wp-content/plugins/buddypress-groups-extras/core/admin_tabs/poll.php:7
    • > PHP Notice
      Undefined variable: def_set_fields in wp-content/plugins/buddypress-groups-extras/views/front/extras_fields_import.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'BPGE_ADMIN_TAB' not found in wp-content/plugins/buddypress-groups-extras/core/admin_tabs/sets.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/buddypress-groups-extras/views/admin/set_field_add.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'BPGE_ADMIN_TAB' not found in wp-content/plugins/buddypress-groups-extras/core/admin_tabs/general.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddypress-groups-extras/views/front/extras_pages_list.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/buddypress-groups-extras/views/admin/set_add.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: pages, custom pages, groups, extend, sets...

buddypress-groups-extras/bpge.php 92% from 13 tests

This is the main PHP file of "BuddyPress Groups Extras" version 3.6.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("buddypress-groups-extras.php" instead of "bpge.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
Success! There were no dangerous files found in this plugin3,523 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP286985652,556
JavaScript312562515
CSS35819452

PHP code Passed 2 tests

Analyzing 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.35
Average class complexity33.86
▷ Minimum class complexity1.00
▷ Maximum class complexity161.00
Average method complexity4.77
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods61
▷ Static methods11.64%
▷ Public methods61100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
No PNG files were detected