10% wp-bulletin-board

Code Review | WP Bulletin Board

WordPress plugin WP Bulletin Board scored10%from 54 tests.

About plugin

  • Plugin page: wp-bulletin-board
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Sep 25, 2012
  • Latest release: Mar 19, 2013
  • Number of updates: 46
  • Update frequency: every 3.8 days
  • Top authors: codebycarter (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

100+ active /30,345 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/wp-bulletin-board/wp-bb.php+111
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.84MB] [CPU: ▼36.24ms] Passed 4 tests

This is a short check of server-side resources used by WP Bulletin Board
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1344.29 ▲4.88
Dashboard /wp-admin3.14 ▼0.2024.68 ▼25.47
Posts /wp-admin/edit.php3.14 ▼0.2525.08 ▼27.16
Add New Post /wp-admin/post-new.php3.14 ▼2.7824.85 ▼86.96
Media Library /wp-admin/upload.php3.14 ▼0.1227.35 ▼5.36
Tools /wp-admin/admin.php?page=wpbb_admin_tools3.1431.63
Role Permissions /wp-admin/admin.php?page=wpbb_admin_role_permissions3.1424.49
Create Subforum /wp-admin/admin.php?page=wpbb_admin_subforums3.1425.08
WPBB Settings /wp-admin/options-general.php?page=wpbb_settings_page3.1423.89
FAQ & Support /wp-admin/admin.php?page=wpbb_admin_help3.1424.94
Create Forum /wp-admin/admin.php?page=wpbb_admin_forums3.1426.20
Create Category /wp-admin/admin.php?page=wpbb_admin_categories3.1426.32
WPBB Settings /wp-admin/admin.php?page=wpbb_settings_page3.1427.15
Create Topic /wp-admin/admin.php?page=wpbb_admin_topics3.1423.30
WPBB /wp-admin/admin.php?page=wpbb_admin3.1432.80

Server storage [IO: ▲0.34MB] [DB: ▲0.01MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • There were 1 file (0.35KB) illegally modified outside of "wp-content/plugins/wp-bulletin-board/" and "wp-content/uploads/"
    • (new file) wp-content/themes/twentytwentyone/wpbb-template.php
Filesystem: 52 new files
Database: 5 new tables, 11 new options
New tables
wp_wpbb_topics_unread
wp_wpbb_categories
wp_wpbb_posts
wp_wpbb_topics
wp_wpbb_messages
New WordPress options
theysaidso_admin_options
wpbb_twitter_options
widget_theysaidso_widget
db_upgraded
wpbb_facebook_options
wpbb_options
can_compress_scripts
wpbb_guest_options
widget_recent-posts
widget_recent-comments
...

Browser metrics Passed 4 tests

An overview of browser requirements for WP Bulletin Board
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,963 ▲21713.63 ▼0.679.52 ▲7.6641.11 ▼3.61
Dashboard /wp-admin2,264 ▲764.85 ▼0.9997.49 ▼10.7238.32 ▼3.88
Posts /wp-admin/edit.php2,141 ▲522.00 ▲0.0037.57 ▼2.0333.53 ▼4.78
Add New Post /wp-admin/post-new.php6,296 ▲4,78221.55 ▼2.06898.13 ▲252.9463.55 ▲9.74
Media Library /wp-admin/upload.php1,446 ▲614.21 ▼0.1195.04 ▼0.8745.62 ▲3.50
Tools /wp-admin/admin.php?page=wpbb_admin_tools8462.0625.0429.68
Role Permissions /wp-admin/admin.php?page=wpbb_admin_role_permissions9912.0325.8425.24
Create Subforum /wp-admin/admin.php?page=wpbb_admin_subforums1,1772.0622.0929.65
WPBB Settings /wp-admin/options-general.php?page=wpbb_settings_page1,3371.6823.2027.25
FAQ & Support /wp-admin/admin.php?page=wpbb_admin_help9262.0121.9828.23
Create Forum /wp-admin/admin.php?page=wpbb_admin_forums1,1732.0621.5828.02
Create Category /wp-admin/admin.php?page=wpbb_admin_categories8602.0624.1327.30
WPBB Settings /wp-admin/admin.php?page=wpbb_settings_page1,3201.7122.7927.00
Create Topic /wp-admin/admin.php?page=wpbb_admin_topics1,6126.57123.0654.87
WPBB /wp-admin/admin.php?page=wpbb_admin8242.0523.8225.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5453
    Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpbb_admin
    • > User deprecated in wp-includes/functions.php+5453
    Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-bulletin-board/php/twitter/wpbb-twitter.php
  • 36× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wpbb_goback1() in wp-content/plugins/wp-bulletin-board/php/wpbb-view-message.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-bulletin-board/wp-bb.php:41
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-bulletin-board/php/wpbb-forum.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-bulletin-board/php/facebook/wpbb-facebook.php:7
    • > PHP Notice
      Undefined variable: wpbb_twitter_options in wp-content/plugins/wp-bulletin-board/php/twitter/wpbb-twitter.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wpbb_goback1() in wp-content/plugins/wp-bulletin-board/php/wpbb-delete-topic.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wpbb_goback1() in wp-content/plugins/wp-bulletin-board/php/wpbb-create-topic.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/wp-bulletin-board/php/wpbb-reply-topic.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wpbb_goback1() in wp-content/plugins/wp-bulletin-board/php/wpbb-message-user.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function absint() in wp-content/plugins/wp-bulletin-board/php/wpbb-view-forum-topic.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
You can look at the official readme.txt

wp-bulletin-board/wp-bb.php 92% from 13 tests

The primary PHP file in "WP Bulletin Board" version 1.1.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-bulletin-board.php" instead of "wp-bb.php")

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
Success! There were no dangerous files found in this plugin8,035 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP351,0801,0557,703
CSS26971326
JavaScript1016

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions67
▷ Named functions67100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/light/sticky-topic.png0.57KB0.49KB▼ 14.87%
images/dark/old-topic.png3.09KB0.29KB▼ 90.48%
images/dark/create-reply.png4.19KB1.17KB▼ 72.11%
images/light/new-topic.png0.45KB0.36KB▼ 20.56%
images/dark/locked-topic.png0.55KB0.40KB▼ 26.79%