90% bp-simple-private

Code Review | BP Simple Private

WordPress plugin BP Simple Private scored90%from 54 tests.

About plugin

  • Plugin page: bp-simple-private
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Dec 7, 2015
  • Latest release: Dec 23, 2022
  • Number of updates: 54
  • Update frequency: every 47.7 days
  • Top authors: shanebp (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

800+ active /11,198 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.92ms] Passed 4 tests

An overview of server-side resources used by BP Simple Private
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.60 ▼5.10
Dashboard /wp-admin3.32 ▼0.0347.10 ▼17.82
Posts /wp-admin/edit.php3.37 ▲0.0148.50 ▼0.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.27 ▼12.39
Media Library /wp-admin/upload.php3.24 ▲0.0136.65 ▲4.64

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

BP Simple Private: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.29 ▼1.041.53 ▼0.4241.30 ▼0.59
Dashboard /wp-admin2,210 ▲225.83 ▼0.0399.06 ▼19.2340.15 ▼7.09
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0237.94 ▲1.3037.20 ▲1.94
Add New Post /wp-admin/post-new.php1,537 ▲2423.25 ▲5.47637.70 ▼7.3651.77 ▼5.89
Media Library /wp-admin/upload.php1,395 ▲44.21 ▼0.0897.95 ▼0.3845.21 ▲5.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: private, privacy, buddypress

bp-simple-private/loader.php 92% from 13 tests

"BP Simple Private" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bp-simple-private.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin351 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP513627292
PO File1243659

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected