84% gd-bbpress-tools

Code Review | GD bbPress Tools

WordPress plugin GD bbPress Tools scored84%from 54 tests.

About plugin

  • Plugin page: gd-bbpress-tools
  • Plugin version: 3.4.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: May 9, 2012
  • Latest release: Jul 16, 2023
  • Number of updates: 94
  • Update frequency: every 44.9 days
  • Top authors: GDragoN (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

2,000+ active /136,767 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.94ms] Passed 4 tests

Analyzing server-side resources used by GD bbPress Tools
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0940.76 ▲3.24
Dashboard /wp-admin3.40 ▲0.0646.96 ▼13.84
Posts /wp-admin/edit.php3.51 ▲0.1645.39 ▼3.25
Add New Post /wp-admin/post-new.php5.98 ▲0.0983.92 ▼5.89
Media Library /wp-admin/upload.php3.32 ▲0.0942.36 ▲6.06

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
gd-bbpress-tools
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for GD bbPress Tools
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.07 ▼0.491.71 ▲0.2043.79 ▲2.67
Dashboard /wp-admin2,195 ▲155.62 ▼0.04103.60 ▲14.3744.21 ▲5.17
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0136.69 ▼0.8641.46 ▲1.70
Add New Post /wp-admin/post-new.php1,526 ▼222.78 ▼0.23641.44 ▼25.2162.36 ▲8.26
Media Library /wp-admin/upload.php1,403 ▼04.18 ▼0.0396.24 ▼9.8241.29 ▼3.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • gd-bbpress-tools
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 18× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bbp_is_user_home() in wp-content/plugins/gd-bbpress-tools/forms/tools/signature_bbpress.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gd-bbpress-tools/forms/tabs/about.php:11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/gd-bbpress-tools/forms/tabs/about.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gd-bbpress-tools/forms/more/toolbox.php:3
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/gd-bbpress-tools/forms/tabs/about.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/gd-bbpress-tools/forms/tabs/bbcode.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/gd-bbpress-tools/forms/panels.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/gd-bbpress-tools/forms/tabs/tools.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/gd-bbpress-tools/forms/tabs/views.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/gd-bbpress-tools/forms/tabs/tweaks.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
Please take inspiration from this readme.txt

gd-bbpress-tools/gd-bbpress-tools.php Passed 13 tests

The main PHP script in "GD bbPress Tools" version 3.4.1 is automatically included on every request by WordPress
140 characters long description:
Adds different expansions and tools to the bbPress plugin powered forums: BBCode support, signatures, various tweaks, custom views, quote...

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin3,177 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP25477592,810
Sass2310162
CSS4190143
JavaScript214262

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity18.00
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods107
▷ Static methods32.80%
▷ Public methods9285.98%
▷ Protected methods00.00%
▷ Private methods1514.02%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin