68% stax-buddy-builder

Code Review | BuddyPress Builder for Elementor - BuddyBuilder

WordPress plugin BuddyPress Builder for Elementor - BuddyBuilder scored68%from 54 tests.

About plugin

  • Plugin page: stax-buddy-builder
  • Plugin version: 1.7.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jul 10, 2020
  • Latest release: Jul 7, 2023
  • Number of updates: 75
  • Update frequency: every 15.4 days
  • Top authors: staxwp (100%)

Code review

54 tests

User reviews

50 reviews

Install metrics

2,000+ active /76,311 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.52MB] [CPU: ▼4.11ms] Passed 4 tests

This is a short check of server-side resources used by BuddyPress Builder for Elementor - BuddyBuilder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5450.81 ▲1.54
Dashboard /wp-admin3.84 ▲0.4949.93 ▼15.64
Posts /wp-admin/edit.php3.89 ▲0.5351.51 ▲1.07
Add New Post /wp-admin/post-new.php6.42 ▲0.5394.29 ▼3.39
Media Library /wp-admin/upload.php3.76 ▲0.5341.12 ▲3.12

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 217 new files
Database: no new tables, 8 new options
New WordPress options
buddybuilder_db_version
widget_recent-posts
bp_nouveau_appearance
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by BuddyPress Builder for Elementor - BuddyBuilder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8014.23 ▼0.361.88 ▲0.0338.24 ▼4.70
Dashboard /wp-admin2,207 ▲305.55 ▼0.0284.47 ▼8.1640.31 ▼2.49
Posts /wp-admin/edit.php2,112 ▲122.08 ▲0.0539.18 ▲2.7137.69 ▼0.88
Add New Post /wp-admin/post-new.php1,547 ▲1918.02 ▼4.97604.45 ▼89.5466.46 ▲10.99
Media Library /wp-admin/upload.php1,415 ▲124.15 ▼0.01103.92 ▲0.1343.74 ▼2.31

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/stax-buddy-builder/vendor/appsero/client/src/Client.php+164
    require_once(wp-content/plugins/stax-buddy-builder/vendor/appsero/client/src/License.php): failed to open stream: No such file or directory
  • This plugin does not fully uninstall, leaving 9 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • bp_nouveau_appearance
    • widget_theysaidso_widget
    • buddybuilder_db_version
    • widget_recent-comments
    • recovery_mode_email_last_sent

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 25× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/stax-buddy-builder/templates/preview/buddypress/profile-group/type.php
    • > /wp-content/plugins/stax-buddy-builder/templates/preview/buddyboss/profile-group/navigation.php
    • > /wp-content/plugins/stax-buddy-builder/templates/preview/buddypress/profile-member/meta.php
    • > /wp-content/plugins/stax-buddy-builder/templates/preview/buddypress/profile-group/description.php
    • > /wp-content/plugins/stax-buddy-builder/templates/preview/buddypress/profile-group/status.php
    • > /wp-content/plugins/stax-buddy-builder/templates/preview/buddypress/groups-directory/filters.php
    • > /wp-content/plugins/stax-buddy-builder/templates/preview/buddypress/members-directory/filters.php
    • > /wp-content/plugins/stax-buddy-builder/templates/preview/buddypress/profile-group/name.php
    • > /wp-content/plugins/stax-buddy-builder/templates/preview/buddyboss/sitewide-activity/navigation.php
    • > /wp-content/plugins/stax-buddy-builder/templates/preview/buddypress/profile-member/buttons.php
  • 49× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/stax-buddy-builder/templates/preview/buddyboss/profile-group/leadership.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bpb_get_shortcode_str() in wp-content/plugins/stax-buddy-builder/templates/buddypress/activity/index.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bpb_is_buddyboss() in wp-content/plugins/stax-buddy-builder/templates/buddypress/groups/single/admin.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bpb_get_shortcode_str() in wp-content/plugins/stax-buddy-builder/templates/buddypress/members/single/home.php:9
    • > PHP Notice
      Undefined variable: show_home in wp-content/plugins/stax-buddy-builder/templates/preview/buddypress/profile-group/navigation.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/stax-buddy-builder/templates/preview/buddypress/profile-member/avatar.php:3
    • > PHP Notice
      Undefined variable: key in wp-content/plugins/stax-buddy-builder/admin/pages/templates/parts/settings-box.php on line 10
    • > PHP Warning
      require_once(wp-content/plugins/stax-buddy-builder/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/stax-buddy-builder/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bp_get_template_part() in wp-content/plugins/stax-buddy-builder/templates/buddypress/groups/single/messages.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/stax-buddy-builder/templates/preview/buddypress/sitewide-activity/form.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: bp builder, elementor buddypress, buddypress builder, buddypress, buddypress elementor...

stax-buddy-builder/loader.php 92% from 13 tests

The entry point to "BuddyPress Builder for Elementor - BuddyBuilder" version 1.7.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("stax-buddy-builder.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin33,172 lines of code in 170 files:
LanguageFilesBlank linesComment linesLines of code
PHP1474,3212,63625,916
CSS149093566,587
Markdown1820255
JavaScript3443122
JSON200108
XML161195
SVG10057
YAML16032

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity12.06
▷ Minimum class complexity1.00
▷ Maximum class complexity100.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces19
Interfaces0
Traits0
Classes70
▷ Abstract classes11.43%
▷ Concrete classes6998.57%
▷ Final classes34.35%
Methods504
▷ Static methods305.95%
▷ Public methods38676.59%
▷ Protected methods7715.28%
▷ Private methods418.13%
Functions50
▷ Named functions3264.00%
▷ Anonymous functions1836.00%
Constants20
▷ Global constants945.00%
▷ Class constants1155.00%
▷ Public constants11100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.07MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/group-avatar-28x28.png2.30KB0.60KB▼ 73.94%
(invalid) assets/img/member-avatar-32x32.png1.04KB0.00KB▼ 100.00%
(invalid) assets/img/member-avatar.png2.08KB0.00KB▼ 100.00%
assets/img/group-avatar-32x32.png2.46KB0.64KB▼ 74.21%
assets/img/group-avatar-50x50.png1.16KB0.72KB▼ 38.37%