Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲5.27MB] [CPU: ▼25.22ms] 75% from 4 tests
An overview of server-side resources used by BBP Core - Expand bbPress powered forums with useful features
The following require your attention
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.27MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.27 ▲5.81 | 32.77 ▼18.42 |
Dashboard /wp-admin | 9.29 ▲5.94 | 44.81 ▼15.89 |
Posts /wp-admin/edit.php | 9.29 ▲5.93 | 38.12 ▼10.02 |
Add New Post /wp-admin/post-new.php | 9.29 ▲3.40 | 36.64 ▼56.54 |
Media Library /wp-admin/upload.php | 9.29 ▲6.06 | 40.53 ▲7.22 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.29 | 39.93 |
Server storage [IO: ▲7.09MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 486 new files
Database: no new tables, 14 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
bbpc_installed |
bbpc_version |
recovery_mode_email_last_sent |
widget_theysaidso_widget |
can_compress_scripts |
widget_bbpc_forum_info |
theysaidso_admin_options |
fs_accounts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BBP Core - Expand bbPress powered forums with useful features
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,775 ▲28 | 14.29 ▲0.01 | 0.97 ▼0.83 | 10.41 ▼32.76 |
Dashboard /wp-admin | 2,300 ▲123 | 5.58 ▼0.09 | 97.13 ▲1.25 | 47.53 ▲6.22 |
Posts /wp-admin/edit.php | 1,165 ▼938 | 1.53 ▼0.48 | 8.44 ▼30.19 | 26.64 ▼11.39 |
Add New Post /wp-admin/post-new.php | 45 ▼1,482 | 0.41 ▼22.73 | 0.08 ▼708.57 | 11.40 ▼52.19 |
Media Library /wp-admin/upload.php | 1,505 ▲111 | 4.26 ▲0.08 | 101.34 ▲8.53 | 57.97 ▲16.00 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,111 | 1.71 | 27.67 | 31.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the bbpc-notify-review handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 14 options
- bbp_core_settings
- can_compress_scripts
- fs_debug_mode
- widget_recent-posts
- widget_bbpc_forum_info
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- bbpc_version
- fs_accounts
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=freemius
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the bbpc-notify-review handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/bbp-core/includes/Elementor/Search/keywords.php
- 54× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/bbp-core/includes/Elementor/inc/hero/ajax-search-results.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function features\\add_action() in wp-content/plugins/bbp-core/includes/features/bbp_solved_topic.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function admin\\menu\\add_action() in wp-content/plugins/bbp-core/includes/admin/menu/Delete_Topic.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function Admin\\add_action() in wp-content/plugins/bbp-core/includes/admin/menu/Create_Topic.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bbp-core/includes/features/bbpc_attachments/forms/attachments/meta_forum.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/bbp-core/includes/Elementor/inc/single-forum/single-forum-2.php:3
- > PHP Fatal error
Uncaught Error: Class 'CSF' not found in wp-content/plugins/bbp-core/includes/admin/settings/options/options_shortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function Admin\\add_action() in wp-content/plugins/bbp-core/includes/admin/menu/Create_Forum.php:9
- > PHP Fatal error
Uncaught Error: Class 'CSF' not found in wp-content/plugins/bbp-core/includes/admin/settings/options/options_appearance.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-core/includes/ajax_actions.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
bbp-core/bbp-core.php Passed 13 tests
This is the main PHP file of "BBP Core - Expand bbPress powered forums with useful features" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
90 characters long description:
Expand bbPress powered forums with useful features like - private reply, solved topics ...
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected97,923 lines of code in 419 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 261 | 11,541 | 19,047 | 47,095 |
JavaScript | 29 | 4,740 | 3,073 | 21,741 |
CSS | 39 | 941 | 829 | 13,063 |
Sass | 63 | 1,988 | 273 | 12,835 |
SVG | 24 | 0 | 2 | 2,131 |
HTML | 1 | 75 | 0 | 480 |
JSON | 1 | 0 | 0 | 364 |
Markdown | 1 | 68 | 0 | 214 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 44.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 144 | |
▷ Abstract classes | 4 | 2.78% |
▷ Concrete classes | 140 | 97.22% |
▷ Final classes | 1 | 0.71% |
Methods | 1,694 | |
▷ Static methods | 244 | 14.40% |
▷ Public methods | 1,277 | 75.38% |
▷ Protected methods | 29 | 1.71% |
▷ Private methods | 388 | 22.90% |
Functions | 177 | |
▷ Named functions | 173 | 97.74% |
▷ Anonymous functions | 4 | 2.26% |
Constants | 158 | |
▷ Global constants | 110 | 69.62% |
▷ Class constants | 48 | 30.38% |
▷ Public constants | 48 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon/folder-open.png | 6.57KB | 3.73KB | ▼ 43.21% |
assets/img/admin/pro-icon.png | 0.39KB | 0.29KB | ▼ 27.30% |
includes/features/bbpc_attachments/css/gfx/attachment.png | 3.09KB | 0.38KB | ▼ 87.53% |
includes/features/bbpc_attachments/css/gfx/icons.png | 7.71KB | 2.64KB | ▼ 65.75% |
assets/img/forums4.png | 47.24KB | 13.22KB | ▼ 72.01% |