84% bp-multiple-forum-post

Code Review | BP Multiple Forum Post

WordPress plugin BP Multiple Forum Post scored84%from 54 tests.

About plugin

  • Plugin page: bp-multiple-forum...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Aug 31, 2016
  • Latest release: Oct 11, 2016
  • Number of updates: 3
  • Update frequency: every 13.0 days
  • Top authors: dan-jones (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,004 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.96ms] Passed 4 tests

An overview of server-side resources used by BP Multiple Forum Post
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0444.64 ▲7.59
Dashboard /wp-admin3.35 ▲0.0145.74 ▼12.18
Posts /wp-admin/edit.php3.40 ▲0.0443.28 ▼7.27
Add New Post /wp-admin/post-new.php5.93 ▲0.0479.89 ▼12.04
Media Library /wp-admin/upload.php3.27 ▲0.0437.05 ▲3.67

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for BP Multiple Forum Post
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.051.80 ▼0.0743.96 ▲1.55
Dashboard /wp-admin2,209 ▲175.90 ▲0.9697.42 ▼11.8940.14 ▼3.72
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0033.96 ▼3.2735.62 ▲3.12
Add New Post /wp-admin/post-new.php1,514 ▼517.73 ▼5.27673.52 ▼16.5452.28 ▼3.42
Media Library /wp-admin/upload.php1,385 ▼04.23 ▼0.07107.88 ▲11.8949.46 ▲5.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bp-multiple-forum-post/includes/activity-feed.php:86
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-multiple-forum-post/bp-multiple-forum-post.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Task' not found in wp-content/plugins/bp-multiple-forum-post/includes/class-bpmfp-async-duplicate-topic.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bp-multiple-forum-post/includes/email-notifications.php:24

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: buddypress, bbpress, cross-post, forums

bp-multiple-forum-post/bp-multiple-forum-post.php Passed 13 tests

"BP Multiple Forum Post" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
56 characters long description:
Allows users to post to multiple BP Group forums at once

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,181 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP693393581
Markdown21390571
JavaScript14020
CSS1109

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity10.00
▷ Minimum class complexity5.00
▷ Maximum class complexity15.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods436.36%
▷ Protected methods763.64%
▷ Private methods00.00%
Functions20
▷ Named functions1995.00%
▷ Anonymous functions15.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin