83% wp-security-audit-log-add-on-for-bbpress

Code Review | WP Activity Log for bbPress

WordPress plugin WP Activity Log for bbPress scored83%from 54 tests.

About plugin

  • Plugin page: wp-security-audit...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 16, 2020
  • Latest release: Aug 9, 2023
  • Number of updates: 33
  • Update frequency: every 39.2 days
  • Top authors: WPWhiteSecurity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /6,791 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼7.75ms] Passed 4 tests

An overview of server-side resources used by WP Activity Log for bbPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.96 ▼11.55
Dashboard /wp-admin3.41 ▲0.0646.35 ▼9.41
Posts /wp-admin/edit.php3.52 ▲0.1647.84 ▲0.96
Add New Post /wp-admin/post-new.php6.01 ▲0.1293.96 ▼11.01
Media Library /wp-admin/upload.php3.33 ▲0.1037.23 ▲2.88

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Activity Log for bbPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7613.25 ▼1.041.53 ▼0.4343.16 ▲1.65
Dashboard /wp-admin2,228 ▲465.88 ▲0.02105.82 ▲1.6742.76 ▲4.27
Posts /wp-admin/edit.php2,111 ▲222.09 ▲0.0942.67 ▲0.6136.19 ▼1.78
Add New Post /wp-admin/post-new.php1,546 ▲1823.42 ▲5.19751.92 ▲109.2864.52 ▲2.32
Media Library /wp-admin/upload.php1,407 ▲164.25 ▲0.0293.48 ▼10.6040.99 ▼1.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-security-audit-log-add-on-for-bbpress/includes/wsal-functions.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-security-audit-log-add-on-for-bbpress/wsal-bbpress.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-security-audit-log-add-on-for-bbpress/wp-security-audit-log/custom-alerts.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Forms, entries, notifications and other bbPress plugin changes reported in the WordPress activity log.) image missing
You can take inspiration from this readme.txt

wp-security-audit-log-add-on-for-bbpress/wsal-bbpress.php 85% from 13 tests

This is the main PHP file of "WP Activity Log for bbPress" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-security-audit-log-add-on-for-bbpress.php" instead of "wsal-bbpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,857 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.73
Average class complexity48.50
▷ Minimum class complexity1.00
▷ Maximum class complexity149.00
Average method complexity6.22
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
▷ Static methods3538.46%
▷ Public methods6975.82%
▷ Protected methods11.10%
▷ Private methods2123.08%
▷ Named functions360.00%
▷ Anonymous functions240.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin