Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.30ms] Passed 4 tests
An overview of server-side resources used by BP Block Users
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 42.31 ▲5.18 |
Dashboard /wp-admin | 3.07 ▲0.01 | 51.15 ▼0.09 |
Posts /wp-admin/edit.php | 3.13 ▲0.01 | 44.81 ▼1.56 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 92.74 ▼568.78 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 35.31 ▲1.23 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by BP Block Users
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲131 | 15.81 ▲0.23 | 8.38 ▼0.74 | 48.12 ▲3.29 |
Dashboard /wp-admin | 2,973 ▲42 | 5.89 ▼0.01 | 147.76 ▼6.68 | 118.24 ▼1.53 |
Posts /wp-admin/edit.php | 2,736 ▼0 | 2.68 ▲0.00 | 72.05 ▲7.91 | 96.54 ▲4.07 |
Add New Post /wp-admin/post-new.php | 1,498 ▼83 | 18.84 ▲4.44 | 390.23 ▼1.87 | 117.01 ▼0.86 |
Media Library /wp-admin/upload.php | 1,807 ▲74 | 5.02 ▲0.00 | 153.06 ▼8.88 | 123.62 ▼1.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bp-block-users/templates/buddypress/members/single/settings/block-user.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: buddypress, block, bp, block users, users
bp-block-users/bp-block-users.php Passed 13 tests
"BP Block Users" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
96 characters long description:
Allows BuddyPress administrators to block users indefinitely, or for a specified period of time.
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
Success! There were no dangerous files found in this plugin1,646 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 563 | 1,740 | 1,585 |
Markdown | 1 | 35 | 0 | 61 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 17.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 16 | 19.05% |
▷ Public methods | 55 | 65.48% |
▷ Protected methods | 21 | 25.00% |
▷ Private methods | 8 | 9.52% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 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
No PNG files were detected