94% bbp-style-pack

Code Review | bbp style pack

WordPress plugin bbp style pack scored 94% from 54 tests.

About plugin

  • Plugin page: bbp-style-pack
  • Plugin version: 4.8.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 5.8.1
  • First release: Feb 3, 2015
  • Latest release: Aug 8, 2021
  • Number of updates: 1,011
  • Update frequency: every 2.4 days
  • Top authors: Robin W (100%)

Code review

54 tests

User reviews

84 reviews

Install metrics

9,000+ active / 419,258 total downloads

Benchmarks

Plugin footprint Passed 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.05MB] [CPU: ▼131.80ms] 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 /2.89 ▲0.1743.29 ▲20.74
Dashboard /wp-admin3.11 ▲0.0658.88 ▲9.59
Posts /wp-admin/edit.php3.16 ▲0.0654.80 ▲8.42
Add New Post /wp-admin/post-new.php5.47 ▲0.04112.52 ▼550.51
Media Library /wp-admin/upload.php3.06 ▲0.0539.50 ▲5.30

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 141 new files
Database: no new tables, no new options

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 /3,703 ▲10715.86 ▼0.018.85 ▼2.5247.64 ▼5.05
Dashboard /wp-admin2,973 ▲425.95 ▼0.01143.97 ▼15.02110.96 ▼4.78
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0068.49 ▲0.8094.63 ▲3.19
Add New Post /wp-admin/post-new.php1,581 ▼10217.76 ▲1.66446.70 ▲4.27124.67 ▲18.83
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.02159.80 ▲2.54126.18 ▲0.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% 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 50% 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
  • 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-style-pack/includes/buddypress.php:43
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-style-pack/includes/generate_css.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bbp-style-pack/includes/functions_unread.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bbp-style-pack/bbp-style-pack.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bbp_is_reply_edit() in wp-content/plugins/bbp-style-pack/templates/topicandreplyform5/form-reply.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-style-pack/includes/functions.php:95
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-style-pack/includes/settings.php:320
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bbp-style-pack/templates/templates1/loop-forums.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bbp-style-pack/includes/functions_email.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bbp-style-pack/includes/functions_bugs.php:28

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. 4.8.9 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 detected24,449 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code
PHP553,9901,60920,318
PO File21,3141,9593,981
JavaScript67461147
CSS1113

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.33
Average class complexity17.25
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity5.06
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions256
▷ Named functions256100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
6 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/la-widget.PNG53.54KB19.41KB▼ 63.74%
images/topic-description.PNG7.18KB4.72KB▼ 34.35%
images/lock.png1.86KB1.87KB0.00%
images/forum-description.PNG5.82KB3.99KB▼ 31.36%
images/folder_new.png3.09KB0.43KB▼ 86.12%