78% bbp-style-pack

Code Review | bbp style pack

WordPress plugin bbp style pack scored78%from 54 tests.

About plugin

  • Plugin page: bbp-style-pack
  • Plugin version: 5.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4
  • WordPress version: 6.3.1
  • First release: Feb 3, 2015
  • Latest release: Dec 1, 2023
  • Number of updates: 1,336
  • Update frequency: every 2.4 days
  • Top authors: Robin W (97.31%)codejp3 (2.77%)

Code review

54 tests

User reviews

93 reviews

Install metrics

8,000+ active /694,367 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.24MB] [CPU: ▲6.97ms] Passed 4 tests

Analyzing server-side resources used by bbp style pack
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2647.59 ▲11.20
Dashboard /wp-admin3.54 ▲0.2456.77 ▲11.07
Posts /wp-admin/edit.php3.66 ▲0.3057.36 ▲9.85
Add New Post /wp-admin/post-new.php6.12 ▲0.2490.41 ▼4.24
Media Library /wp-admin/upload.php3.47 ▲0.2447.29 ▲15.25

Server storage [IO: ▲9.27MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 242 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by bbp style pack
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.67 ▲0.461.78 ▲0.2536.20 ▼6.05
Dashboard /wp-admin2,198 ▲215.63 ▼0.0096.91 ▼1.8841.79 ▼0.35
Posts /wp-admin/edit.php2,100 ▼31.96 ▲0.0039.05 ▼1.5635.37 ▼2.91
Add New Post /wp-admin/post-new.php1,526 ▼023.35 ▼0.38656.43 ▲69.1851.26 ▲0.26
Media Library /wp-admin/upload.php1,397 ▼34.24 ▲0.1496.73 ▼0.0243.90 ▲4.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
Please take a closer look at the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/bbp-style-pack/generator/class-generator-api.php
    • > /wp-content/plugins/bbp-style-pack/generator/class-rest-api.php
    • > /wp-content/plugins/bbp-style-pack/css/styles-quote.php
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'bspbbPressModToolsPlugin' not found in wp-content/plugins/bbp-style-pack/modtools/moderation.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'bspbbPressModToolsPlugin' not found in wp-content/plugins/bbp-style-pack/modtools/styles.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bbp-style-pack/css/styles.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bbp-style-pack/modtools/users.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'bspbbPressModToolsPlugin' not found in wp-content/plugins/bbp-style-pack/modtools/notifications.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'bspbbPressModToolsPlugin' not found in wp-content/plugins/bbp-style-pack/modtools/bbpress.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'bspbbPressModToolsPlugin' not found in wp-content/plugins/bbp-style-pack/modtools/report.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'bspbbPressModToolsPlugin' not found in wp-content/plugins/bbp-style-pack/modtools/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'bspbbPressModToolsPlugin' not found in wp-content/plugins/bbp-style-pack/modtools/scripts.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'bspbbPressModToolsPlugin' not found in wp-content/plugins/bbp-style-pack/modtools/settings.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: Screenshot #1 (a sample settings page) image not found
The official readme.txt is a good inspiration

bbp-style-pack/bbp-style-pack.php Passed 13 tests

The main PHP file in "bbp style pack" ver. 5.7.1 adds more information about the plugin and also serves as the entry point for this plugin
49 characters long description:
This plugin adds styling and features to bbPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected70,391 lines of code in 137 files:
LanguageFilesBlank linesComment linesLines of code
PO File69,63613,43138,249
PHP1016,0463,52429,301
JavaScript18141902,247
JSON820402
CSS45014192

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity25.82
▷ Minimum class complexity1.00
▷ Maximum class complexity114.00
Average method complexity4.61
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods116
▷ Static methods1512.93%
▷ Public methods9884.48%
▷ Protected methods10.86%
▷ Private methods1714.66%
Functions384
▷ Named functions38199.22%
▷ Anonymous functions30.78%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.58MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/replies-admin.png63.28KB19.77KB▼ 68.76%
images/lock.png1.86KB1.87KB0.00%
images/topic-counts.png52.94KB17.39KB▼ 67.16%
images/forum-description.PNG5.82KB3.99KB▼ 31.36%
images/folder_new.png3.09KB0.43KB▼ 86.12%