90% forum-qa-discussion-board

Code Review | Video Forum / QA / Discussion Board

WordPress plugin Video Forum / QA / Discussion Board scored90%from 54 tests.

About plugin

  • Plugin page: forum-qa-discussi...
  • Plugin version: 1.2.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.3
  • WordPress version: 6.3.1
  • First release: Mar 13, 2023
  • Latest release: Sep 28, 2023
  • Number of updates: 11
  • Update frequency: every 18.3 days
  • Top authors: videowhisper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /315 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.47MB] [CPU: ▲0.40ms] Passed 4 tests

Server-side resources used by Video Forum / QA / Discussion Board
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4840.96 ▼0.48
Dashboard /wp-admin3.77 ▲0.4748.09 ▼1.93
Posts /wp-admin/edit.php3.89 ▲0.5349.93 ▲3.71
Add New Post /wp-admin/post-new.php6.35 ▲0.4788.29 ▲2.23
Media Library /wp-admin/upload.php3.70 ▲0.4738.62 ▲1.76
All Forums /wp-admin/edit.php?post_type=forum3.7539.90
Documentation /wp-admin/admin.php?page=forum-qa-discussion-board-doc3.6632.91
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=forum3.6934.58
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=topic3.6935.03
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=forum3.6940.90
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=message3.6932.55
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=topic3.7038.02
Options /wp-admin/admin.php?page=forum-qa-discussion-board3.6535.36
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=message3.7038.73
All Messages /wp-admin/edit.php?post_type=message3.7538.84

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Video Forum / QA / Discussion Board
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,006 ▲27113.59 ▼0.811.80 ▲0.0341.14 ▼4.39
Dashboard /wp-admin2,346 ▲1585.85 ▲0.96101.09 ▼18.1443.75 ▼3.88
Posts /wp-admin/edit.php2,235 ▲1462.06 ▲0.0236.84 ▼4.0534.57 ▼0.11
Add New Post /wp-admin/post-new.php1,634 ▲12017.56 ▼0.33690.52 ▲41.9161.61 ▲3.87
Media Library /wp-admin/upload.php1,534 ▲1464.27 ▲0.02103.15 ▲7.5345.92 ▲3.40
All Forums /wp-admin/edit.php?post_type=forum1,2501.9333.3034.55
Documentation /wp-admin/admin.php?page=forum-qa-discussion-board-doc9382.0322.6131.12
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=forum1,4562.1526.3934.31
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=topic1,4502.1528.4333.20
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=forum1,5892.1526.8636.12
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=message1,4502.1527.0931.52
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=topic1,5892.1528.2135.65
Options /wp-admin/admin.php?page=forum-qa-discussion-board1,0582.0323.0532.58
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=message1,5892.1528.2537.31
All Messages /wp-admin/edit.php?post_type=message1,2501.9332.5636.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • VWforumQAoptions
    • widget_theysaidso_widget
    • category_children
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: qa, forum, board, discussion

forum-qa-discussion-board/forum-qa-discussion-board.php 92% from 13 tests

The main PHP file in "Video Forum / QA / Discussion Board" ver. 1.2.6 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 691 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin11,268 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,299
PHP34701121,860
JavaScript21920104
Markdown1304
CSS10101

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity109.00
▷ Minimum class complexity10.00
▷ Maximum class complexity251.00
Average method complexity9.31
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces1
Interfaces0
Traits2
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods39
▷ Static methods3589.74%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
scripts/semantic/themes/default/assets/images/flags.png27.46KB29.21KB0.00%