94% friends-for-bbpress

Code Review | Friends For bbPress

WordPress plugin Friends For bbPress scored 94% from 54 tests.

About plugin

  • Plugin page: friends-for-bbpress
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.3
  • WordPress version: 5.9.2
  • First release: Mar 3, 2015
  • Latest release: Sep 2, 2015
  • Number of updates: 17
  • Update frequency: every 10.8 days
  • Top authors: GraemeScott (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,900 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼303.13ms] Passed 4 tests

An overview of server-side resources used by Friends For bbPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0458.97 ▲10.76
Dashboard /wp-admin3.41 ▲0.0132.34 ▼5.91
Posts /wp-admin/edit.php3.65 ▲0.0134.91 ▼0.95
Add New Post /wp-admin/post-new.php6.88 ▼0.0991.97 ▼1,204.33
Media Library /wp-admin/upload.php3.30 ▲0.0024.05 ▼1.33

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Friends For bbPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,767 ▲4515.93 ▲0.366.35 ▲0.752.29 ▼0.07
Dashboard /wp-admin2,895 ▲416.13 ▼0.08115.71 ▼14.70157.77 ▲1.50
Posts /wp-admin/edit.php2,688 ▼03.23 ▼0.0061.22 ▼2.58132.57 ▼7.97
Add New Post /wp-admin/post-new.php1,661 ▼2916.02 ▼5.61408.42 ▼22.03156.66 ▼1.46
Media Library /wp-admin/upload.php1,698 ▼35.52 ▲0.05145.77 ▲2.58179.73 ▼6.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/friends-for-bbpress/friends.php:27

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt might help

friends-for-bbpress/friends.php 92% from 13 tests

"Friends For bbPress" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("friends-for-bbpress.php" instead of "friends.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 plugin214 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1536214

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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
There are no PNG files in this plugin