Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲4.57MB] [CPU: ▼116.02ms] Passed 4 tests
Analyzing server-side resources used by bbResolutions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.12 ▲5.29 | 67.72 ▲28.52 |
Dashboard /wp-admin | 8.14 ▲5.09 | 77.36 ▲27.00 |
Posts /wp-admin/edit.php | 8.14 ▲5.03 | 79.07 ▲22.94 |
Add New Post /wp-admin/post-new.php | 8.48 ▲3.05 | 118.53 ▼535.21 |
Media Library /wp-admin/upload.php | 8.14 ▲5.14 | 56.84 ▲21.19 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 8.14 | 55.83 |
bbResolutions /wp-admin/admin.php?page=bbresolutions | 8.14 | 56.67 |
Server storage [IO: ▲3.94MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 200 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_gdpr |
fs_accounts |
fs_debug_mode |
fs_active_plugins |
Browser metrics Passed 4 tests
An overview of browser requirements for bbResolutions
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,745 ▲108 | 15.72 ▲0.12 | 9.93 ▲0.38 | 49.99 ▼3.81 |
Dashboard /wp-admin | 3,011 ▲80 | 5.99 ▲0.02 | 144.18 ▼14.56 | 130.89 ▲16.53 |
Posts /wp-admin/edit.php | 2,787 ▲48 | 2.70 ▲0.01 | 68.31 ▼3.78 | 101.85 ▲11.40 |
Add New Post /wp-admin/post-new.php | 1,691 ▲8 | 17.86 ▼0.91 | 383.88 ▼11.96 | 106.13 ▼8.85 |
Media Library /wp-admin/upload.php | 1,856 ▲49 | 5.04 ▲0.01 | 172.23 ▲19.67 | 135.75 ▲7.37 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 1,465 | 2.09 | 56.41 | 77.83 |
bbResolutions /wp-admin/admin.php?page=bbresolutions | 1,335 | 2.29 | 61.61 | 109.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/bbresolutions/freemius/includes/class-freemius.php+8218
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 4 options in the database
- fs_debug_mode
- fs_gdpr
- fs_accounts
- fs_active_plugins
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/bbresolutions/freemius/templates/ajax-loader.php
- > /wp-content/plugins/bbresolutions/locales/index.php
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function bbResolutions\\add_action() in wp-content/plugins/bbresolutions/src/bbResolutions/src/bbpress/topic-actions.php:5
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/bbresolutions/freemius/templates/account/partials/addon.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/bbresolutions/freemius/templates/partials/network-activation.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function bbResolutions\\add_action() in wp-content/plugins/bbresolutions/src/bbResolutions/src/bbpress/widgets.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bbresolutions/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/bbresolutions/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/bbresolutions/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bbresolutions/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bbresolutions/main.php:39
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bbresolutions/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: bbpress, buddypress, support, helpdesk
bbresolutions/main.php 92% from 13 tests
The principal PHP file in "bbResolutions" v. 0.7 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bbresolutions.php" instead of "main.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin46,280 lines of code in 155 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 124 | 7,303 | 16,295 | 30,531 |
PO File | 13 | 6,990 | 8,500 | 15,298 |
JavaScript | 3 | 34 | 59 | 194 |
Markdown | 1 | 61 | 0 | 192 |
JSON | 3 | 0 | 0 | 51 |
CSS | 11 | 0 | 0 | 14 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,772)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 78.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,772.00 |
Average method complexity | 4.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,163 | |
▷ Static methods | 183 | 15.74% |
▷ Public methods | 821 | 70.59% |
▷ Protected methods | 15 | 1.29% |
▷ Private methods | 327 | 28.12% |
Functions | 111 | |
▷ Named functions | 110 | 99.10% |
▷ Anonymous functions | 1 | 0.90% |
Constants | 125 | |
▷ Global constants | 100 | 80.00% |
▷ Class constants | 25 | 20.00% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/bbresolutions.png | 9.16KB | 5.26KB | ▼ 42.58% |