10% bp-mutual-friends

Code Review | BP Mutual Friends

WordPress plugin BP Mutual Friends scored10%from 54 tests.

About plugin

  • Plugin page: bp-mutual-friends
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.3
  • WordPress version: 6.3.1
  • First release: Aug 25, 2015
  • Latest release: Aug 26, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: suiteplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,014 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.40 ▼39.14
Dashboard /wp-admin2.11 ▼1.195.59 ▼46.91
Posts /wp-admin/edit.php2.11 ▼1.256.86 ▼42.25
Add New Post /wp-admin/post-new.php2.11 ▼3.787.07 ▼109.47
Media Library /wp-admin/upload.php2.11 ▼1.125.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.20 ▼1.442.27 ▲0.3044.58 ▼2.15
Dashboard /wp-admin2,206 ▲184.99 ▼0.87109.36 ▼15.9043.85 ▼6.42
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0439.86 ▲3.5234.54 ▼0.57
Add New Post /wp-admin/post-new.php1,538 ▲1023.28 ▲4.74668.57 ▲12.2051.11 ▼8.92
Media Library /wp-admin/upload.php1,385 ▼34.14 ▼0.15129.35 ▲22.6153.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:
LanguageFilesBlank linesComment linesLines of code
PHP12744195
PO File10016

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 code0.34
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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