Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼170.80ms] Passed 4 tests
Analyzing server-side resources used by BuddyPress Extended Friendship Request
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 34.74 ▲14.83 |
Dashboard /wp-admin | 3.09 ▲0.04 | 53.90 ▲8.50 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 44.86 ▲4.18 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 91.61 ▼694.63 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 31.56 ▼1.24 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for BuddyPress Extended Friendship Request
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,709 ▲113 | 15.99 ▲0.70 | 9.21 ▼5.06 | 49.54 ▲2.99 |
Dashboard /wp-admin | 2,967 ▲30 | 5.92 ▼0.25 | 176.95 ▲23.46 | 116.50 ▲5.74 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 69.50 ▲6.75 | 87.32 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,498 ▼2,079 | 18.82 ▲4.00 | 424.43 ▼48.76 | 112.64 ▲0.89 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▲0.01 | 177.52 ▲19.29 | 116.52 ▲4.23 |
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
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: buddypress, friendship, friends, social
buddypress-extended-friendship-request/bp-extended-friendship-request.php 92% from 13 tests
The main PHP file in "BuddyPress Extended Friendship Request" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("buddypress-extended-friendship-request.php" instead of "bp-extended-friendship-request.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,909 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 133 | 108 | 1,238 |
CSS | 3 | 0 | 9 | 328 |
PHP | 4 | 101 | 169 | 273 |
PO File | 2 | 19 | 26 | 70 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 2 | 10.53% |
▷ Public methods | 16 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 15.79% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin