78% bbpress-new-ui

Code Review | bbPress - New UI

WordPress plugin bbPress - New UI scored78%from 54 tests.

About plugin

  • Plugin page: bbpress-new-ui
  • Plugin version: 3.5.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 30, 2014
  • Latest release: Dec 12, 2016
  • Number of updates: 193
  • Update frequency: every 4.3 days
  • Top authors: daniluk4000 (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

60+ active /22,755 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
Installer ran successfully

Server metrics [RAM: ▼0.15MB] [CPU: ▼16.79ms] Passed 4 tests

Server-side resources used by bbPress - New UI
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1728.61 ▼10.04
Dashboard /wp-admin3.51 ▲0.2051.13 ▲4.77
Posts /wp-admin/edit.php3.48 ▲0.1237.87 ▼8.26
Add New Post /wp-admin/post-new.php4.80 ▼1.0943.15 ▼53.63
Media Library /wp-admin/upload.php3.43 ▲0.2036.79 ▲6.69
bbPress New UI /wp-admin/options-general.php?page=bbpress_new_ui3.3729.96

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options
recovery_mode_email_last_sent
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by bbPress - New UI
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,693 ▼5314.72 ▲0.451.08 ▼0.5822.61 ▼17.41
Dashboard /wp-admin2,224 ▲325.84 ▲0.8999.71 ▼11.5440.09 ▼0.61
Posts /wp-admin/edit.php1,093 ▼9931.14 ▼0.907.02 ▼29.6526.62 ▼4.25
Add New Post /wp-admin/post-new.php45 ▼1,4740.44 ▼23.130.09 ▼670.4710.65 ▼42.78
Media Library /wp-admin/upload.php1,400 ▲124.29 ▲0.1198.06 ▼0.4072.35 ▲28.11
bbPress New UI /wp-admin/options-general.php?page=bbpress_new_ui8622.1925.4826.97

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

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bbpress_new_ui
    • > Notice in wp-content/plugins/bbpress-new-ui/bbpress-new-ui.php+279
    Trying to access array offset on value of type bool

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
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-new-ui/inc/replyui/lock.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-new-ui/inc/adminui/replies.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bbpress-new-ui/inc/online-status/online.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-new-ui/inc/forumui/new-forum.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-new-ui/inc/adminui/replies.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-new-ui/inc/replyui/functions.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bbpress-new-ui/bbpress-new-ui.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can take inspiration from this readme.txt

bbpress-new-ui/bbpress-new-ui.php Passed 13 tests

The primary PHP file in "bbPress - New UI" version 3.5.0.2 is used by WordPress to initiate all plugin functionality
85 characters long description:
A great plugin completely changes the entire design of bbpress in light or dark color

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
There were no executable files found in this plugin8,630 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
CSS21721585,236
JSON1002,106
PHP9317249876
PO File77589286
SVG100126

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity15.00
▷ Minimum class complexity3.00
▷ Maximum class complexity36.00
Average method complexity4.23
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.73MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/img/forum-icon-sticky.png0.40KB0.38KB▼ 4.43%
Screenshots/screenshot-3.png209.69KB86.74KB▼ 58.63%
inc/img/locked-icon-white.png0.34KB0.30KB▼ 9.88%
Screenshots/screenshot-5.png107.66KB56.01KB▼ 47.97%
inc/img/locked-icon-dark.png0.34KB0.30KB▼ 9.88%