10% buddypress-friends-on-line

Code Review | BuddyPress Friends On-Line

WordPress plugin BuddyPress Friends On-Line scored 10% from 54 tests.

About plugin

  • Plugin page: buddypress-friend...
  • Plugin version: 0.4.3.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 4, 2009
  • Latest release: Jun 1, 2014
  • Number of updates: 41
  • Update frequency: every 46.2 days
  • Top authors: slaFFik (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 22,306 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/buddypress-friends-on-line/bpfol-custom-widget.php+8
    Methods with the same name as their class will not be constructors in a future version of PHP; FOL_Widget has a deprecated constructor

Server metrics [RAM: ▼1.71MB] [CPU: ▼48.13ms] Passed 4 tests

A check of server-side resources used by BuddyPress Friends On-Line
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.187.90 ▼33.97
Dashboard /wp-admin2.30 ▼1.018.93 ▼38.62
Posts /wp-admin/edit.php2.30 ▼1.0613.48 ▼36.95
Add New Post /wp-admin/post-new.php2.30 ▼3.599.59 ▼82.96
Media Library /wp-admin/upload.php2.30 ▼0.938.63 ▼21.85

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_fol-widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for BuddyPress Friends On-Line
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.47 ▲0.101.77 ▼0.1937.22 ▼9.35
Dashboard /wp-admin2,206 ▲184.84 ▼1.04110.33 ▲8.0442.20 ▼3.58
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0135.16 ▼6.0631.15 ▼3.27
Add New Post /wp-admin/post-new.php1,542 ▲2818.27 ▲0.67611.66 ▼78.6350.17 ▼10.58
Media Library /wp-admin/upload.php1,391 ▲64.20 ▼0.0199.80 ▼1.2842.03 ▼2.13

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
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in FOL_Widget is deprecated since version 4.3.0! Use __construct() instead.
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_fol-widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/buddypress-friends-on-line/bpfol-widget-template.php on line 24
    • > PHP Notice
      Undefined variable: instance in wp-content/plugins/buddypress-friends-on-line/bpfol-widget-template.php on line 1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/buddypress-friends-on-line/bpfol-widget-template.php on line 24
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/buddypress-friends-on-line/bpfol-custom-widget.php:8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/buddypress-friends-on-line/bpfol-widget-template.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-friends-on-line/bp-friends-on-line.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: Version format is invalid
  • Tested up to: Version format is invalid
The official readme.txt is a good inspiration

buddypress-friends-on-line/bp-friends-on-line.php 85% from 13 tests

"BuddyPress Friends On-Line" version 0.4.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("buddypress-friends-on-line.php" instead of "bp-friends-on-line.php")
  • Description: The description should be shorter than 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin294 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP31535157
PO File34154137

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin