83% gd-forum-manager-for-bbpress

Code Review | GD Forum Manager for bbPress

WordPress plugin GD Forum Manager for bbPress scored 83% from 54 tests.

About plugin

  • Plugin page: gd-forum-manager-...
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 5.8.1
  • First release: Jun 22, 2020
  • Latest release: Feb 16, 2021
  • Number of updates: 16
  • Update frequency: every 15.1 days
  • Top authors: GDragoN (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,629 total downloads

Benchmarks

Plugin footprint Passed 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: ▼141.85ms] Passed 4 tests

Server-side resources used by GD Forum Manager for bbPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1144.86 ▲21.51
Dashboard /wp-admin3.06 ▲0.0045.04 ▼5.83
Posts /wp-admin/edit.php3.11 ▲0.0049.15 ▲2.87
Add New Post /wp-admin/post-new.php5.42 ▼0.0292.61 ▼564.60
Media Library /wp-admin/upload.php3.01 ▲0.0034.43 ▲0.17
GD Forum Manager /wp-admin/options-general.php?page=gd-forum-manager-for-bbpress2.7523.73

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 333 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for GD Forum Manager for bbPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.90 ▲0.3210.61 ▲0.9047.44 ▼2.46
Dashboard /wp-admin2,989 ▲525.96 ▲0.04142.07 ▼16.95118.73 ▼9.67
Posts /wp-admin/edit.php2,736 ▼32.70 ▲0.0167.26 ▲1.72104.71 ▲5.45
Add New Post /wp-admin/post-new.php1,670 ▼1319.14 ▲0.45388.18 ▼13.25108.63 ▼3.09
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.06159.44 ▼14.51132.03 ▲5.60
GD Forum Manager /wp-admin/options-general.php?page=gd-forum-manager-for-bbpress280.900.1811.40

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/gd-forum-manager-for-bbpress/forms/content-about-whatsnew.php
    • > /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/d4plib/forms/content-dashboard.php
    • > /wp-content/plugins/gd-forum-manager-for-bbpress/d4plib/forms/footer.php
  • 43× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > 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 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gd-forum-manager-for-bbpress/d4plib/forms/content-tools-import.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function gdfar_settings() in wp-content/plugins/gd-forum-manager-for-bbpress/forms/content-update.php:5
    • > PHP Warning
      include(GDFAR_PATHforms/dashboard/actions.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 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gd-forum-manager-for-bbpress/d4plib/forms/widget-extra.php:1
    • > 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 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gd-forum-manager-for-bbpress/d4plib/forms/content-about-translations.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gd-forum-manager-for-bbpress/d4plib/forms/fallback.php:2
    • > 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 6
    • > PHP Fatal error
      Uncaught Error: Class 'Dev4Press\\Generator\\Text\\Generator' not found in wp-content/plugins/gd-forum-manager-for-bbpress/d4plib/dev4press/generator/text/Randomizer.php:5

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, bulk edit, 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 for bbPress" version 2.0, 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 detected27,387 lines of code in 301 files:
LanguageFilesBlank linesComment linesLines of code
PHP1453,6641,53412,816
CSS461,042407,353
Sass4589634,266
JavaScript633361872,409
SVG100525
Markdown19018

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.41
Average class complexity15.86
▷ Minimum class complexity1.00
▷ Maximum class complexity148.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity65.00
Code structure
Namespaces31
Interfaces0
Traits4
Classes87
▷ Abstract classes2427.59%
▷ Concrete classes6372.41%
▷ Final classes23.17%
Methods780
▷ Static methods557.05%
▷ Public methods58074.36%
▷ Protected methods15219.49%
▷ Private methods486.15%
Functions148
▷ Named functions14799.32%
▷ Anonymous functions10.68%
Constants67
▷ Global constants2131.34%
▷ Class constants4668.66%
▷ Public constants46100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
d4plib/resources/css/flags/flags.png80.58KB26.01KB▼ 67.72%