83% bbpress-private-replies

Code Review | bbPress - Private Replies

WordPress plugin bbPress - Private Replies scored83%from 54 tests.

About plugin

  • Plugin page: bbpress-private-r...
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.7
  • WordPress version: 6.3.1
  • First release: Nov 15, 2012
  • Latest release: Oct 14, 2016
  • Number of updates: 28
  • Update frequency: every 51.0 days
  • Top authors: mordauk (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

500+ active /27,372 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.30MB] [CPU: ▼16.78ms] Passed 4 tests

Analyzing server-side resources used by bbPress - Private Replies
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.92 ▼4.30
Dashboard /wp-admin3.36 ▲0.0546.41 ▼4.54
Posts /wp-admin/edit.php3.33 ▼0.0339.72 ▼11.37
Add New Post /wp-admin/post-new.php4.65 ▼1.2443.73 ▼46.91
Media Library /wp-admin/upload.php3.28 ▲0.0534.86 ▼1.01

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

A check of browser resources used by bbPress - Private Replies
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,675 ▼6013.32 ▼1.351.13 ▼0.6718.89 ▼30.18
Dashboard /wp-admin2,209 ▲214.87 ▲0.01111.12 ▼6.4244.03 ▲1.21
Posts /wp-admin/edit.php1,076 ▼1,0131.14 ▼0.868.15 ▼29.6632.80 ▼1.31
Add New Post /wp-admin/post-new.php45 ▼1,4970.44 ▼17.770.08 ▼627.0412.32 ▼38.30
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.0297.20 ▲1.2069.87 ▲26.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • recovery_mode_email_last_sent

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-private-replies/bbp-private-replies.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: replies, pippinsplugins, bbpress, forums, mordauk...

bbpress-private-replies/bbp-private-replies.php 69% from 13 tests

This is the main PHP file of "bbPress - Private Replies" version 1.3.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bbpress-private-replies.php" instead of "bbp-private-replies.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected264 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP180147132
PO File52131129
CSS1133

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity3.42
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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
No PNG files were detected