94% activity-log-tablepress

Code Review | WP Activity Log for TablePress

WordPress plugin WP Activity Log for TablePress scored 94% from 54 tests.

About plugin

  • Plugin page: activity-log-tabl...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 5.9.2
  • First release: Nov 2, 2021
  • Latest release: Jan 29, 2022
  • Number of updates: 6
  • Update frequency: every 17.7 days
  • Top authors: WPWhiteSecurity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 409 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼290.19ms] Passed 4 tests

An overview of server-side resources used by WP Activity Log for TablePress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0754.21 ▲4.64
Dashboard /wp-admin3.51 ▲0.1036.31 ▲2.22
Posts /wp-admin/edit.php3.74 ▲0.0940.24 ▲3.35
Add New Post /wp-admin/post-new.php6.97 ▲0.0095.83 ▼1,164.65
Media Library /wp-admin/upload.php3.39 ▲0.0924.60 ▼1.67

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WP Activity Log for TablePress: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,810 ▲5616.01 ▲0.316.78 ▲0.482.31 ▼0.31
Dashboard /wp-admin2,910 ▲496.28 ▲0.12117.89 ▼19.08158.78 ▼7.25
Posts /wp-admin/edit.php2,686 ▲13.28 ▲0.0466.60 ▲4.12138.29 ▼5.73
Add New Post /wp-admin/post-new.php1,682 ▼9116.07 ▼5.80408.71 ▼51.77158.80 ▲2.11
Media Library /wp-admin/upload.php1,727 ▲325.58 ▲0.07141.73 ▲3.03185.15 ▼0.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WSAL_AbstractSensor' not found in wp-content/plugins/activity-log-tablepress/wp-security-audit-log/custom-sensors/WSAL_Sensors_TablePress.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/activity-log-tablepress/wsal-tablepress.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/activity-log-tablepress/wp-security-audit-log/custom-alerts.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/activity-log-tablepress/includes/wsal-functions.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 93% 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
3 plugin tags: activity logs, activity log for wpforms, wp activity log extension

activity-log-tablepress/wsal-tablepress.php 85% from 13 tests

This is the main PHP file of "WP Activity Log for TablePress" version 1.0.0, 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: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("activity-log-tablepress.php" instead of "wsal-tablepress.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
No dangerous file extensions were detected777 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity38.67
▷ Minimum class complexity24.00
▷ Maximum class complexity54.00
Average method complexity5.35
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
There are no PNG files in this plugin