94% buddyboss-extended-add-on

Code Review | Buddyboss Extended Add-on

WordPress plugin Buddyboss Extended Add-on scored 94% from 54 tests.

About plugin

  • Plugin page: buddyboss-extende...
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.8
  • WordPress version: 5.9.2
  • First release: May 5, 2021
  • Latest release: Nov 8, 2021
  • Number of updates: 15
  • Update frequency: every 12.6 days
  • Top authors: jcatama (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 1,893 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.02MB] [CPU: ▼297.39ms] Passed 4 tests

This is a short check of server-side resources used by Buddyboss Extended Add-on
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0160.26 ▲2.39
Dashboard /wp-admin3.41 ▲0.0036.45 ▲0.10
Posts /wp-admin/edit.php3.64 ▲0.0041.50 ▼2.46
Add New Post /wp-admin/post-new.php6.90 ▼0.0997.46 ▼1,187.26
Media Library /wp-admin/upload.php3.29 ▲0.0026.94 ▲0.05

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Buddyboss Extended Add-on
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲2115.94 ▲0.245.44 ▼0.602.44 ▼0.31
Dashboard /wp-admin2,892 ▲346.12 ▼0.07118.31 ▼16.43152.89 ▼11.09
Posts /wp-admin/edit.php2,688 ▼33.24 ▼0.0061.10 ▼1.74136.86 ▼4.01
Add New Post /wp-admin/post-new.php1,752 ▲9120.95 ▲4.61434.59 ▲39.35152.82 ▲1.73
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.02139.41 ▼1.20183.66 ▼5.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bbp_is_user_subscribed_to_forum() in wp-content/plugins/buddyboss-extended-add-on/includes/templates/forum/template-unsubscribe-single.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/buddyboss-extended-add-on/includes/templates/bbpress/user-subscriptions.php:10

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: buddypress, forums, topics, learndash, discussions...

buddyboss-extended-add-on/buddyboss-extended-addon.php 85% from 13 tests

This is the main PHP file of "Buddyboss Extended Add-on" version 1.2.2, 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: Name the main plugin file the same as the plugin slug ("buddyboss-extended-add-on.php" instead of "buddyboss-extended-addon.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected1,164 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8167306590
Markdown11210553
CSS10021

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity19.00
▷ Minimum class complexity8.00
▷ Maximum class complexity38.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods312.00%
▷ Public methods1872.00%
▷ Protected methods00.00%
▷ Private methods728.00%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin