72% gd-forum-manager-for-bbpress

Code Review | GD Forum Manager: plugin for WordPress and bbPress

WordPress plugin GD Forum Manager: plugin for WordPress and bbPress scored72%from 54 tests.

About plugin

  • Plugin page: gd-forum-manager-...
  • Plugin version: 2.5
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: Jun 22, 2020
  • Latest release: Nov 15, 2023
  • Number of updates: 33
  • Update frequency: every 37.7 days
  • Top authors: GDragoN (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,116 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.57ms] Passed 4 tests

Server-side resources used by GD Forum Manager: plugin for WordPress and bbPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0032.62 ▼8.97
Dashboard /wp-admin3.31 ▲0.0047.28 ▲1.55
Posts /wp-admin/edit.php3.36 ▲0.0048.78 ▲0.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.89 ▼10.06
Media Library /wp-admin/upload.php3.23 ▲0.0032.37 ▲0.23
GD Forum Manager /wp-admin/options-general.php?page=gd-forum-manager-for-bbpress3.0022.73

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for GD Forum Manager: plugin for WordPress and bbPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.67 ▼0.051.54 ▼0.2137.33 ▼8.64
Dashboard /wp-admin2,198 ▲215.63 ▼0.0593.17 ▼8.7642.14 ▼3.63
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0140.05 ▲3.6438.76 ▲1.52
Add New Post /wp-admin/post-new.php1,526 ▼424.00 ▲1.00606.17 ▼41.5155.47 ▲5.70
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.02100.04 ▼2.9244.57 ▲0.21
GD Forum Manager /wp-admin/options-general.php?page=gd-forum-manager-for-bbpress280.410.094.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
Please take a closer look at the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/gd-forum-manager-for-bbpress/forms/content-dashboard.php
    • > /wp-content/plugins/gd-forum-manager-for-bbpress/forms/dashboard/dev4press.php
    • > /wp-content/plugins/gd-forum-manager-for-bbpress/forms/content-about-whatsnew.php
  • 22× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      include(): Failed opening 'GDFAR_PATHforms/dashboard/actions.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gd-forum-manager-for-bbpress/forms/content-dashboard.php on line 5
    • > PHP Warning
      include(): Failed opening 'GDFAR_PATHforms/dashboard/dev4press.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gd-forum-manager-for-bbpress/forms/content-dashboard.php on line 8
    • > PHP Warning
      Use of undefined constant GDFAR_PATH - assumed 'GDFAR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gd-forum-manager-for-bbpress/forms/content-about-whatsnew.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gd-forum-manager-for-bbpress/forms/content-about-minor.php:2
    • > PHP Warning
      include(): Failed opening 'GDFAR_PATHforms/content-about-minor.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gd-forum-manager-for-bbpress/forms/content-about-whatsnew.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/gd-forum-manager-for-bbpress/gd-forum-manager-for-bbpress.php:37
    • > PHP Warning
      Use of undefined constant GDFAR_PATH - assumed 'GDFAR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gd-forum-manager-for-bbpress/forms/content-dashboard.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _ex() in wp-content/plugins/gd-forum-manager-for-bbpress/forms/manager/dialog-bulk.php:6
    • > PHP Warning
      include(GDFAR_PATHforms/dashboard/dev4press.php): failed to open stream: No such file or directory in wp-content/plugins/gd-forum-manager-for-bbpress/forms/content-dashboard.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gd-forum-manager-for-bbpress/forms/dashboard/actions.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=gd-forum-manager-for-bbpress
    • > Network (severe)
    wp-admin/options-general.php?page=gd-forum-manager-for-bbpress - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: dev4press, bbpress, edit, moderation, quick edit...

gd-forum-manager-for-bbpress/gd-forum-manager-for-bbpress.php 92% from 13 tests

This is the main PHP file of "GD Forum Manager: plugin for WordPress and bbPress" version 2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 168 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected37,785 lines of code in 355 files:
LanguageFilesBlank linesComment linesLines of code
PHP1814,3052,82017,238
CSS491,7274111,931
Sass51870265,152
JavaScript723351103,436
Markdown212028

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity17.06
▷ Minimum class complexity1.00
▷ Maximum class complexity151.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces39
Interfaces0
Traits3
Classes121
▷ Abstract classes4234.71%
▷ Concrete classes7965.29%
▷ Final classes22.53%
Methods1,235
▷ Static methods19715.95%
▷ Public methods92474.82%
▷ Protected methods25320.49%
▷ Private methods584.70%
Functions16
▷ Named functions1487.50%
▷ Anonymous functions212.50%
Constants55
▷ Global constants814.55%
▷ Class constants4785.45%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.06MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
d4plib/resources/vendor/flags/img/flag_placeholder.png0.09KB0.09KB0.00%
d4plib/resources/gfx/buy_me_a_coffee.png7.73KB7.79KB0.00%
d4plib/resources/vendor/flags/img/flags_responsive.png54.14KB57.01KB0.00%