84% weaver-for-bbpress

Code Review | Turnkey bbPress by WeaverTheme

WordPress plugin Turnkey bbPress by WeaverTheme scored84%from 54 tests.

About plugin

  • Plugin page: weaver-for-bbpress
  • Plugin version: 1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Mar 13, 2017
  • Latest release: Jan 28, 2023
  • Number of updates: 18
  • Update frequency: every 119.0 days
  • Top authors: wpweaver (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /9,954 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Turnkey bbPress by WeaverTheme
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.10 ▼1.99
Dashboard /wp-admin3.32 ▲0.0152.15 ▲4.10
Posts /wp-admin/edit.php3.37 ▲0.0147.67 ▼12.98
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.06 ▼8.64
Media Library /wp-admin/upload.php3.24 ▲0.0138.52 ▼0.71

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Turnkey bbPress by WeaverTheme: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.81 ▲0.231.89 ▲0.0342.19 ▼0.31
Dashboard /wp-admin2,203 ▲185.82 ▲0.7999.30 ▼16.2240.19 ▼4.14
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0435.84 ▼8.5934.69 ▼0.63
Add New Post /wp-admin/post-new.php1,514 ▼1917.62 ▼5.79690.31 ▲3.1462.83 ▲11.45
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0094.77 ▼11.2843.06 ▼3.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/weaver-for-bbpress/weaver-for-bbpress.php on line 40
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/weaver-for-bbpress/weaver-for-bbpress.php on line 40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/weaver-for-bbpress/includes/wvrbbp-mentions.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/weaver-for-bbpress/includes/wvrbbp-private-reply.php:9
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/weaver-for-bbpress/weaver-for-bbpress.php on line 40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/weaver-for-bbpress/includes/wvrbbp-resolve.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/weaver-for-bbpress/templates/bbpress/content-single-user.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/weaver-for-bbpress/weaver-for-bbpress.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/weaver-for-bbpress/includes/wvrbbp-runtime-actions.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
4 plugin tags: options, style, forum, bbpress

weaver-for-bbpress/weaver-for-bbpress.php 92% from 13 tests

The main PHP file in "Turnkey bbPress by WeaverTheme" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin8,536 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
Sass12749932,964
CSS155592202,861
PHP199835292,575
JavaScript2648136

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity3.92
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods323.08%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions118
▷ Named functions118100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/donate-button.png5.83KB2.82KB▼ 51.57%
images/media-button.png1.00KB0.34KB▼ 66.31%
images/download.png1.50KB0.33KB▼ 77.72%