84% pmpro-bbpress

Code Review | bbPress Restrict Membership Forum & Private Replies for Members Only with Paid Memberships Pro

WordPress plugin bbPress Restrict Membership Forum & Private Replies for Members Only with Paid Memberships Pro scored84%from 54 tests.

About plugin

  • Plugin page: pmpro-bbpress
  • Plugin version: 1.7.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Jan 21, 2014
  • Latest release: Oct 13, 2023
  • Number of updates: 38
  • Update frequency: every 93.7 days
  • Top authors: strangerstudios (92.11%)andrewza (7.89%)dlparker1005 (5.26%)

Code review

54 tests

User reviews

10 reviews

Install metrics

3,000+ active /77,516 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.11MB] [CPU: ▼9.54ms] Passed 4 tests

This is a short check of server-side resources used by bbPress Restrict Membership Forum & Private Replies for Members Only with Paid Memberships Pro
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1341.85 ▲1.48
Dashboard /wp-admin3.43 ▲0.0849.56 ▼10.07
Posts /wp-admin/edit.php3.54 ▲0.1845.22 ▼9.39
Add New Post /wp-admin/post-new.php6.01 ▲0.1283.75 ▼19.22
Media Library /wp-admin/upload.php3.35 ▲0.1235.06 ▲0.52

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

Input-output and database impact 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_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by bbPress Restrict Membership Forum & Private Replies for Members Only with Paid Memberships Pro
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.111.76 ▲0.2243.25 ▲2.30
Dashboard /wp-admin2,198 ▲215.59 ▼0.0687.02 ▼1.2042.29 ▼2.39
Posts /wp-admin/edit.php2,103 ▼02.01 ▲0.0633.37 ▼4.2231.22 ▼2.00
Add New Post /wp-admin/post-new.php1,526 ▼223.40 ▲0.31663.38 ▼12.4262.31 ▲0.36
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.0494.67 ▼14.0242.51 ▼5.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Good news, no errors were detected

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
The following issues need your attention
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pmpro-bbpress/includes/options.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pmpro-bbpress/includes/options-membership-levels.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pmpro-bbpress/includes/options.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pmpro-bbpress/includes/shortcodes.php:71

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: discussion, pmpro, paid memberships pro, forum, bbpress

pmpro-bbpress/pmpro-bbpress.php Passed 13 tests

The main PHP script in "bbPress Restrict Membership Forum & Private Replies for Members Only with Paid Memberships Pro" version 1.7.4 is automatically included on every request by WordPress
104 characters long description:
Restrict access to bbPress for free or premium members by integrating bbPress with Paid Memberships Pro.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin698 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5121213615
PO File1335983

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin