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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 60.26 ▲2.39 |
Dashboard /wp-admin | 3.41 ▲0.00 | 36.45 ▲0.10 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 41.50 ▼2.46 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.09 | 97.46 ▼1,187.26 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 26.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲21 | 15.94 ▲0.24 | 5.44 ▼0.60 | 2.44 ▼0.31 |
Dashboard /wp-admin | 2,892 ▲34 | 6.12 ▼0.07 | 118.31 ▼16.43 | 152.89 ▼11.09 |
Posts /wp-admin/edit.php | 2,688 ▼3 | 3.24 ▼0.00 | 61.10 ▼1.74 | 136.86 ▼4.01 |
Add New Post /wp-admin/post-new.php | 1,752 ▲91 | 20.95 ▲4.61 | 434.59 ▲39.35 | 152.82 ▲1.73 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.53 ▲0.02 | 139.41 ▼1.20 | 183.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 167 | 306 | 590 |
Markdown | 1 | 121 | 0 | 553 |
CSS | 1 | 0 | 0 | 21 |
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 code | 0.32 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 3 | 12.00% |
▷ Public methods | 18 | 72.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 28.00% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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