83% bbp-members-only

Code Review | bbPress Members Only

WordPress plugin bbPress Members Only scored83%from 54 tests.

About plugin

  • Plugin page: bbp-members-only
  • Plugin version: 1.7.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 7, 2017
  • Latest release: Sep 9, 2023
  • Number of updates: 24
  • Update frequency: every 94.4 days
  • Top authors: zhuyi (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /11,225 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.04MB] [CPU: ▼7.10ms] 75% from 4 tests

A check of server-side resources used by bbPress Members Only
The following require your attention
  • CPU: The total CPU usage must kept under 500.00ms (currently 5,799.22ms on /wp-admin/admin.php?page=bpmemberoptionalsettings)
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.72 ▼1.22
Dashboard /wp-admin3.32 ▲0.0154.67 ▲0.53
Posts /wp-admin/edit.php3.18 ▼0.1837.26 ▼16.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.12 ▼10.11
Media Library /wp-admin/upload.php3.24 ▲0.0137.29 ▼0.13
Optional Settings /wp-admin/admin.php?page=bpmemberoptionalsettings4.525,799.22
bbPress Members Only /wp-admin/admin.php?page=bbpmemberonlyfree3.7442.01
Login Notification /wp-admin/admin.php?page=bbpmembersfreeloginnotification3.7435.34

Server storage [IO: ▲0.04MB] [DB: ▲0.10MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for bbPress Members Only
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲7414.34 ▼0.011.80 ▲0.1643.48 ▲1.23
Dashboard /wp-admin2,226 ▲495.50 ▼0.0996.34 ▲2.1541.97 ▲0.76
Posts /wp-admin/edit.php2,131 ▲311.95 ▼0.0133.00 ▼6.9535.50 ▼1.51
Add New Post /wp-admin/post-new.php1,551 ▲2523.03 ▼0.21729.00 ▲24.4468.55 ▲9.75
Media Library /wp-admin/upload.php1,431 ▲284.20 ▼0.03102.28 ▲1.4944.15 ▲0.57
Optional Settings /wp-admin/admin.php?page=bpmemberoptionalsettings1,1571.9921.7236.42
bbPress Members Only /wp-admin/admin.php?page=bbpmemberonlyfree1,1591.9923.6528.55
Login Notification /wp-admin/admin.php?page=bbpmembersfreeloginnotification1,1501.9923.2229.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • bbpmof_user_first_run_guide_bar
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 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 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
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/bbp-members-only/bbpmembersonlypagesettings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

bbp-members-only/bbp-members-only.php 92% from 13 tests

The primary PHP file in "bbPress Members Only" version 1.7.9 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 275 characters long)

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
Everything looks great! No dangerous files found in this plugin747 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP413158747

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/new.png3.48KB1.90KB▼ 45.54%