Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.53MB] [CPU: ▼1.88ms] Passed 4 tests
A check of server-side resources used by Block, Suspend, Report for BuddyPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 38.89 ▼2.13 |
Dashboard /wp-admin | 3.89 ▲0.58 | 48.11 ▼0.31 |
Posts /wp-admin/edit.php | 3.94 ▲0.58 | 47.10 ▲1.73 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.52 | 83.56 ▼6.79 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 40.72 ▲3.89 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.00 | 38.74 |
Server storage [IO: ▲3.73MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 233 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_debug_mode |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
fs_accounts |
widget_theysaidso_widget |
fs_active_plugins |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Block, Suspend, Report for BuddyPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲113 | 14.45 ▲0.15 | 1.63 ▼0.17 | 32.17 ▼10.29 |
Dashboard /wp-admin | 2,251 ▲63 | 5.84 ▲0.91 | 99.55 ▼3.69 | 44.77 ▲6.45 |
Posts /wp-admin/edit.php | 2,140 ▲51 | 1.99 ▼0.02 | 36.34 ▲2.80 | 36.79 ▲2.97 |
Add New Post /wp-admin/post-new.php | 1,550 ▲31 | 18.54 ▼4.58 | 606.66 ▼36.23 | 52.47 ▼12.71 |
Media Library /wp-admin/upload.php | 1,439 ▲54 | 4.29 ▲0.05 | 98.60 ▼27.85 | 44.05 ▼4.14 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,097 | 1.72 | 23.77 | 28.15 |
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
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/bp-toolkit/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- fs_debug_mode
- fs_accounts
- fs_active_plugins
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-toolkit/includes/bp-toolkit-email-functions.php:44
- > 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: suspend, report, moderation, block, buddypress
bp-toolkit/bp-toolkit.php Passed 13 tests
The entry point to "Block, Suspend, Report for BuddyPress" version 3.6.1 is a PHP file that has certain tags in its header comment area
92 characters long description:
Block, Suspend, Report for BuddyPress provides enhanced moderation for your BuddyPress site.
Code Analysis 97% from 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
There were no executable files found in this plugin42,976 lines of code in 176 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 144 | 8,972 | 19,682 | 38,050 |
Sass | 2 | 517 | 28 | 1,878 |
CSS | 17 | 56 | 27 | 1,755 |
JavaScript | 7 | 157 | 77 | 1,188 |
SVG | 5 | 2 | 1 | 70 |
XML | 1 | 0 | 0 | 35 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 79.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 63 | |
▷ Abstract classes | 2 | 3.17% |
▷ Concrete classes | 61 | 96.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,474 | |
▷ Static methods | 200 | 13.57% |
▷ Public methods | 1,072 | 72.73% |
▷ Protected methods | 18 | 1.22% |
▷ Private methods | 384 | 26.05% |
Functions | 146 | |
▷ Named functions | 145 | 99.32% |
▷ Anonymous functions | 1 | 0.68% |
Constants | 150 | |
▷ Global constants | 103 | 68.67% |
▷ Class constants | 47 | 31.33% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/preapproval.png | 28.53KB | 11.34KB | ▼ 60.25% |
admin/assets/images/main.png | 22.32KB | 9.49KB | ▼ 57.50% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |