10% wp-audit-log-logsentinel

Code Review | LogSentinel storage for WP Security Audit Log

WordPress plugin LogSentinel storage for WP Security Audit Log scored10%from 54 tests.

About plugin

  • Plugin page: wp-audit-log-logs...
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 22, 2017
  • Latest release: Aug 18, 2017
  • Number of updates: 12
  • Update frequency: every 4.8 days
  • Top authors: glamdring (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /693 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-includes/functions.php+6691
    file_get_contents(wp-content/plugins/wp-security-audit-log/wp-security-audit-log.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.87ms] Passed 4 tests

A check of server-side resources used by LogSentinel storage for WP Security Audit Log
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.95 ▼0.62
Dashboard /wp-admin3.31 ▲0.0050.79 ▼7.75
Posts /wp-admin/edit.php3.36 ▲0.0052.23 ▲1.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.68 ▼4.58
Media Library /wp-admin/upload.php3.23 ▲0.0041.79 ▲6.73

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for LogSentinel storage for WP Security Audit Log
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.011.91 ▼0.0144.41 ▲0.31
Dashboard /wp-admin2,195 ▲215.64 ▲0.0589.69 ▼15.2537.63 ▼9.00
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0236.31 ▼1.1133.01 ▼1.97
Add New Post /wp-admin/post-new.php1,526 ▼223.12 ▼0.10681.95 ▼21.6752.34 ▼2.46
Media Library /wp-admin/upload.php1,403 ▲94.37 ▲0.1897.93 ▼14.8644.24 ▼0.95

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WSAL_AbstractLogger' not found in wp-content/plugins/wp-audit-log-logsentinel/Loggers/LogSentinelLogger.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-audit-log-logsentinel/includes/options.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Requires at least: Version format is invalid
The official readme.txt is a good inspiration

wp-audit-log-logsentinel/wp-audit-log-logsentinel.php Passed 13 tests

The main PHP script in "LogSentinel storage for WP Security Audit Log" version 0.4 is automatically included on every request by WordPress
75 characters long description:
An addon to WP Security Audit Log Plugin to store events in LogSentinel.com

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 plugin210 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33715210

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity16.50
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods654.55%
▷ Protected methods00.00%
▷ Private methods545.45%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected