90% bbpress-wp-tweaks

Code Review | bbPress WP Tweaks

WordPress plugin bbPress WP Tweaks scored90%from 54 tests.

About plugin

  • Plugin page: bbpress-wp-tweaks
  • Plugin version: 1.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Jan 14, 2012
  • Latest release: Apr 11, 2023
  • Number of updates: 34
  • Update frequency: every 120.8 days
  • Top authors: veppa (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

2,000+ active /70,902 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.19MB] [CPU: ▼5.61ms] Passed 4 tests

A check of server-side resources used by bbPress WP Tweaks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1938.50 ▼5.53
Dashboard /wp-admin3.51 ▲0.1749.24 ▼18.80
Posts /wp-admin/edit.php3.62 ▲0.2750.43 ▲3.80
Add New Post /wp-admin/post-new.php6.09 ▲0.20103.35 ▼1.91
Media Library /wp-admin/upload.php3.43 ▲0.2045.25 ▲9.34
bbPress WP Tweaks /wp-admin/options-general.php?page=bbpress-wp-tweaks3.4033.21

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by bbPress WP Tweaks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.23 ▼0.432.37 ▲0.6040.10 ▼4.02
Dashboard /wp-admin2,202 ▲255.55 ▼0.0687.15 ▼13.2837.46 ▼0.90
Posts /wp-admin/edit.php2,104 ▲221.96 ▼0.0340.23 ▲2.8436.94 ▼2.78
Add New Post /wp-admin/post-new.php1,546 ▲2018.13 ▼5.50674.36 ▼36.3965.99 ▲12.63
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.04111.40 ▲15.3349.72 ▲8.25
bbPress WP Tweaks /wp-admin/options-general.php?page=bbpress-wp-tweaks7902.0026.6028.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 97% 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 require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt might help

bbpress-wp-tweaks/bbpress-wp-tweaks.php Passed 13 tests

Analyzing the main PHP file in "bbPress WP Tweaks" version 1.4.4
98 characters long description:
Adds bbPress forum specific sidebar, wrapper, widgets, user columns, login links and other tweaks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,629 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP12293621,088
PO File3234270526
CSS151015

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity45.00
▷ Minimum class complexity18.00
▷ Maximum class complexity97.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods55
▷ Static methods814.55%
▷ Public methods55100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin