83% bbp-anonymous-subscriptions

Code Review | bbPress - Anonymous Subscriptions

WordPress plugin bbPress - Anonymous Subscriptions scored 83% from 54 tests.

About plugin

  • Plugin page: bbp-anonymous-sub...
  • Plugin version: 1.3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.1
  • WordPress version: 6.3.1
  • First release: Feb 15, 2016
  • Latest release: Nov 12, 2022
  • Number of updates: 34
  • Update frequency: every 72.4 days
  • Top authors: Ste_95 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

90+ active / 4,200 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.07ms] Passed 4 tests

Server-side resources used by bbPress - Anonymous Subscriptions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.07 ▼5.14
Dashboard /wp-admin3.31 ▲0.0147.29 ▼0.73
Posts /wp-admin/edit.php3.37 ▲0.0148.04 ▼0.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.89 ▼9.63
Media Library /wp-admin/upload.php3.24 ▲0.0133.16 ▼0.27

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for bbPress - Anonymous Subscriptions
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.18 ▼1.201.85 ▼0.0340.50 ▼11.05
Dashboard /wp-admin2,206 ▲154.83 ▼0.03107.60 ▲0.8637.23 ▼2.33
Posts /wp-admin/edit.php2,086 ▼62.02 ▲0.0134.23 ▼7.0430.00 ▼4.91
Add New Post /wp-admin/post-new.php1,528 ▲1418.51 ▲0.96642.82 ▲43.3363.54 ▲16.67
Media Library /wp-admin/upload.php1,382 ▼64.27 ▼0.0696.70 ▼1.4043.88 ▲1.42

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 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/bbp-anonymous-subscriptions/bbp-anonymous-subscriptions.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed: You can look at the official readme.txt

bbp-anonymous-subscriptions/bbp-anonymous-subscriptions.php 85% from 13 tests

The main PHP script in "bbPress - Anonymous Subscriptions" version 1.3.7 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: Prefix the domain path with a forward slash character ("/lang")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("lang")

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
Success! There were no dangerous files found in this plugin430 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File52535302
PHP164120128

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods685.71%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin