84% activity-log-tablepress

Code Review | WP Activity Log for TablePress

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

About plugin

  • Plugin page: activity-log-tabl...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 2, 2021
  • Latest release: Aug 9, 2023
  • Number of updates: 18
  • Update frequency: every 38.1 days
  • Top authors: WPWhiteSecurity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active /4,646 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.40ms] Passed 4 tests

Analyzing server-side resources used by WP Activity Log for TablePress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0844.06 ▼6.46
Dashboard /wp-admin3.40 ▲0.1050.86 ▲3.60
Posts /wp-admin/edit.php3.52 ▲0.1650.65 ▼2.75
Add New Post /wp-admin/post-new.php6.00 ▲0.1290.48 ▼11.47
Media Library /wp-admin/upload.php3.33 ▲0.1038.90 ▼0.93

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP Activity Log for TablePress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7613.17 ▼1.211.77 ▲0.0144.03 ▼1.80
Dashboard /wp-admin2,231 ▲794.87 ▼0.83101.96 ▼2.4537.13 ▼3.98
Posts /wp-admin/edit.php2,111 ▲192.19 ▲0.1838.32 ▼5.0334.74 ▼3.81
Add New Post /wp-admin/post-new.php1,549 ▲3023.36 ▲0.05621.71 ▼74.0847.10 ▼24.75
Media Library /wp-admin/upload.php1,410 ▲254.24 ▼0.01102.25 ▼15.7847.80 ▼0.53

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 4× PHP files trigger server-side errors or warnings 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 add_filter() in wp-content/plugins/activity-log-tablepress/includes/wsal-functions.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/activity-log-tablepress/wsal-tablepress.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/activity-log-tablepress/wp-security-audit-log/custom-alerts.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

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: wp activity log extension, activity log for wpforms, activity logs

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

This is the main PHP file of "WP Activity Log for TablePress" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,218 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP92304891,146
JavaScript13272

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity34.80
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity5.57
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods37
▷ Static methods1129.73%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin