84% wp-discussion-board

Code Review | Discussion Board - WordPress Forum Plugin

WordPress plugin Discussion Board - WordPress Forum Plugin scored84%from 54 tests.

About plugin

  • Plugin page: wp-discussion-board
  • Plugin version: 2.5.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 4, 2016
  • Latest release: Sep 7, 2023
  • Number of updates: 166
  • Update frequency: every 16.9 days
  • Top authors: Catapult_Themes (84.34%)MattGeri (12.05%)mej (4.22%)Otto42 (1.2%)

Code review

54 tests

User reviews

36 reviews

Install metrics

3,000+ active /126,389 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.97MB] [CPU: ▲6.97ms] Passed 4 tests

An overview of server-side resources used by Discussion Board - WordPress Forum Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.17 ▲0.7140.74 ▲0.95
Dashboard /wp-admin4.36 ▲1.0656.66 ▲10.33
Posts /wp-admin/edit.php4.48 ▲1.1258.08 ▲8.81
Add New Post /wp-admin/post-new.php6.94 ▲1.05105.04 ▲11.73
Media Library /wp-admin/upload.php4.28 ▲1.0545.35 ▲7.79
All Topics /wp-admin/edit.php?post_type=discussion-topics4.3342.19
Getting Started /wp-admin/edit.php?post_type=discussion-topics&page=getting_started4.3037.66
Settings /wp-admin/edit.php?post_type=discussion-topics&page=discussion_board4.3146.11
Add New /wp-admin/post-new.php?post_type=discussion-topics4.5256.94

Server storage [IO: ▲0.77MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 12 new options
New WordPress options
ctdb_install_date
ctdb_design_settings
db_upgraded
ctdb_options_settings
widget_recent-posts
can_compress_scripts
ctdb_user_settings
ctdb_done_redirect
theysaidso_admin_options
ctdb_wizard_done
...

Browser metrics Passed 4 tests

Discussion Board - WordPress Forum Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲17913.68 ▼0.884.87 ▲2.8940.73 ▼2.18
Dashboard /wp-admin2,248 ▲634.85 ▼0.0496.67 ▼19.8841.49 ▼6.41
Posts /wp-admin/edit.php2,131 ▲392.05 ▲0.0439.19 ▼4.4336.22 ▼0.70
Add New Post /wp-admin/post-new.php1,561 ▲2823.02 ▼0.26617.04 ▼89.2049.12 ▼5.52
Media Library /wp-admin/upload.php1,427 ▲424.22 ▼0.0495.36 ▼22.1342.17 ▼4.16
All Topics /wp-admin/edit.php?post_type=discussion-topics1,1431.9633.7629.91
Getting Started /wp-admin/edit.php?post_type=discussion-topics&page=getting_started9822.0424.9653.15
Settings /wp-admin/edit.php?post_type=discussion-topics&page=discussion_board2,0877.22145.0272.14
Add New /wp-admin/post-new.php?post_type=discussion-topics2,5797.65170.6365.93

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 12 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • ctdb_options_settings
    • ctdb_wizard_done
    • ctdb_user_settings
    • widget_theysaidso_widget
    • ctdb_install_date
    • ctdb_done_redirect
    • db_upgraded
    • ...

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
Please take a closer look at the following
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Trait 'WPDiscussionBoard\\Traits\\Singleton' not found in wp-content/plugins/wp-discussion-board/includes/classes/class-bootstrap.php on line 21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPDiscussionBoard\\Admin\\get_option() in wp-content/plugins/wp-discussion-board/templates/admin/getting-started.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPDiscussionBoard\\plugin_dir_url() in wp-content/plugins/wp-discussion-board/includes/config/config.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-discussion-board/templates/archive-discussion-topics.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-discussion-board/templates/single-discussion-topics.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPDiscussionBoard\\Admin\\esc_html_e() in wp-content/plugins/wp-discussion-board/templates/admin/free-license-form.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/wp-discussion-board/templates/comments-classic-forum.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-discussion-board/includes/helpers/deprecated.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: forum wordpress, wordpress forum, wordpress forum plugin, wordpress forum plugin free, forum plugin

wp-discussion-board/wp-discussion-board.php Passed 13 tests

The entry point to "Discussion Board - WordPress Forum Plugin" version 2.5.1 is a PHP file that has certain tags in its header comment area
70 characters long description:
Discussion Board is an easy way to add a forum to your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin8,258 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP361,1251,6875,083
PO File37861,0392,376
CSS3830717
Markdown235058
XML10113
JavaScript21111

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity27.78
▷ Minimum class complexity1.00
▷ Maximum class complexity156.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces3
Interfaces0
Traits1
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods169
▷ Static methods21.18%
▷ Public methods16497.04%
▷ Protected methods42.37%
▷ Private methods10.59%
Functions71
▷ Named functions6084.51%
▷ Anonymous functions1115.49%
Constants12
▷ Global constants758.33%
▷ Class constants541.67%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/discussion-board-banner-ad.png32.51KB12.49KB▼ 61.58%
assets/images/singularity-banner-ad.png161.84KB66.44KB▼ 58.95%