Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/bp-mutual-friends/bp-mutual-friends.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; BP_Mutual_Friends has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼59.44ms] Passed 4 tests
Server-side resources used by BP Mutual Friends
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.40 ▼39.14 |
Dashboard /wp-admin | 2.11 ▼1.19 | 5.59 ▼46.91 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 6.86 ▼42.25 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 7.07 ▼109.47 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.49 ▼29.66 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by BP Mutual Friends
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.20 ▼1.44 | 2.27 ▲0.30 | 44.58 ▼2.15 |
Dashboard /wp-admin | 2,206 ▲18 | 4.99 ▼0.87 | 109.36 ▼15.90 | 43.85 ▼6.42 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.04 | 39.86 ▲3.52 | 34.54 ▼0.57 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.28 ▲4.74 | 668.57 ▲12.20 | 51.11 ▼8.92 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.14 ▼0.15 | 129.35 ▲22.61 | 53.48 ▲7.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/bp-mutual-friends/bp-mutual-friends.php+19
Methods with the same name as their class will not be constructors in a future version of PHP; BP_Mutual_Friends has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: buddypress friends, buddypress, mutual friends, socialnetwork, friends
bp-mutual-friends/bp-mutual-friends.php Passed 13 tests
The main file in "BP Mutual Friends" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
Create a new tab on a user's profile with Mutual Friend
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin211 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 27 | 44 | 195 |
PO File | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin