78% bbp-jp-utility

Code Review | bbPress forum utility pack

WordPress plugin bbPress forum utility pack scored 78% from 54 tests.

About plugin

  • Plugin page: bbp-jp-utility
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: Nov 30, 2016
  • Latest release: Jul 1, 2020
  • Number of updates: 14
  • Update frequency: every 93.6 days
  • Top authors: enomoto celtislab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 8,330 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼10.82ms] Passed 4 tests

An overview of server-side resources used by bbPress forum utility pack
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3036.33 ▼6.06
Dashboard /wp-admin3.50 ▲0.2036.69 ▼13.01
Posts /wp-admin/edit.php3.56 ▲0.2138.87 ▼9.49
Add New Post /wp-admin/post-new.php5.75 ▼0.1476.85 ▼14.71
Media Library /wp-admin/upload.php3.51 ▲0.2831.80 ▲0.57
Forum utility pack /wp-admin/options-general.php?page=bbp-utility3.4833.44

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

bbPress forum utility pack: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8413.32 ▼1.481.69 ▼0.2047.96 ▼4.24
Dashboard /wp-admin2,216 ▲285.79 ▲0.88104.26 ▼13.9339.40 ▼8.50
Posts /wp-admin/edit.php2,099 ▲102.02 ▲0.0636.92 ▲0.9132.39 ▼3.69
Add New Post /wp-admin/post-new.php1,535 ▲1518.15 ▼5.03597.86 ▼59.9854.70 ▼13.33
Media Library /wp-admin/upload.php1,404 ▲194.22 ▲0.0496.55 ▼30.9242.03 ▼4.67
Forum utility pack /wp-admin/options-general.php?page=bbp-utility1,0472.1522.8130.51

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bbp-utility
    • > Notice in wp-content/plugins/bbp-jp-utility/bbp-sub-utility.php+152
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bbp-jp-utility/templates/form-custom-lost-pass.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bbp-jp-utility/templates/form-custom-signup.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bbp-jp-utility/templates/form-custom-user-login.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (bbPress forum utility pack setting.), #2 (Forum unsubscribe link)
The official readme.txt is a good inspiration

bbp-jp-utility/bbp-jp-utility.php 92% from 13 tests

The main file in "bbPress forum utility pack" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

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
No dangerous file extensions were detected1,784 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP51721861,511
PO File189100268
CSS1245

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity142.50
▷ Minimum class complexity67.00
▷ Maximum class complexity218.00
Average method complexity5.57
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods62
▷ Static methods711.29%
▷ Public methods62100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin