74% logdash-activity-log

Code Review | LogDash Activity Log

WordPress plugin LogDash Activity Log scored74%from 54 tests.

About plugin

  • Plugin page: logdash-activity-log
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.5-6.2
  • WordPress version: 6.3.1
  • First release: May 19, 2023
  • Latest release: Jul 19, 2023
  • Number of updates: 7
  • Update frequency: every 8.9 days
  • Top authors: deryck (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /432 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲1.05MB] [CPU: ▲22.41ms] Passed 4 tests

A check of server-side resources used by LogDash Activity Log
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.51 ▲1.0568.78 ▲28.22
Dashboard /wp-admin4.36 ▲1.0581.04 ▲25.65
Posts /wp-admin/edit.php4.47 ▲1.1179.27 ▲34.40
Add New Post /wp-admin/post-new.php6.97 ▲1.08117.08 ▲23.14
Media Library /wp-admin/upload.php4.26 ▲1.0344.30 ▲12.62
Settings /wp-admin/admin.php?page=logdash_settings4.2565.01
Activity Log /wp-admin/admin.php?page=logdash_activity_log4.4971.04

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 64 new files
Database: 3 new tables, 7 new options
New tables
wp_logdash_activity_log
wp_logdash_ip_info
wp_logdash_activity_meta
New WordPress options
widget_recent-posts
logdash_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for LogDash Activity Log
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲8514.44 ▲0.092.29 ▲0.5940.96 ▼2.48
Dashboard /wp-admin2,249 ▲715.95 ▲0.37119.37 ▲6.8289.57 ▲45.53
Posts /wp-admin/edit.php2,167 ▲673.08 ▲1.0447.32 ▲7.3455.49 ▲18.31
Add New Post /wp-admin/post-new.php1,573 ▲3823.32 ▲5.15712.95 ▲71.2834.89 ▼29.23
Media Library /wp-admin/upload.php1,446 ▲465.31 ▲1.10110.99 ▲6.6281.31 ▲37.10
Settings /wp-admin/admin.php?page=logdash_settings8872.6840.0528.05
Activity Log /wp-admin/admin.php?page=logdash_activity_log1,3332.6639.3232.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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 tables were found after uninstall: 3 tables
    • wp_logdash_ip_info
    • wp_logdash_activity_log
    • wp_logdash_activity_meta
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • logdash_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'LogDash\\Hooks\\HooksBase' not found in wp-content/plugins/logdash-activity-log/src/Hooks/Meta.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'LogDash\\Hooks\\HooksBase' not found in wp-content/plugins/logdash-activity-log/src/Hooks/Users.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'LogDash\\Hooks\\HooksBase' not found in wp-content/plugins/logdash-activity-log/src/Hooks/Themes.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'LogDash\\Hooks\\HooksBase' not found in wp-content/plugins/logdash-activity-log/src/Hooks/Taxonomies.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'LogDash\\Template\\Meta\\Label' not found in wp-content/plugins/logdash-activity-log/src/Template/Meta/Before.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'LogDash\\Template\\Meta\\LabelInterface' not found in wp-content/plugins/logdash-activity-log/src/Template/Meta/Label.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'LogDash\\Template\\Meta\\SpecificationInterface' not found in wp-content/plugins/logdash-activity-log/src/Template/Meta/Specification.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'LogDash\\Hooks\\HooksBase' not found in wp-content/plugins/logdash-activity-log/src/Hooks/Files.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'LogDash\\Template\\Meta\\Label' not found in wp-content/plugins/logdash-activity-log/src/Template/Meta/After.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/logdash-activity-log/views/admin/settings.template.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: user log, bbpress, audit log, user activity, activity log...

logdash-activity-log/logdash-activity-log.php Passed 13 tests

The primary PHP file in "LogDash Activity Log" version 1.1.3 is used by WordPress to initiate all plugin functionality
89 characters long description:
The ultimate solution for tracking activities and security issues on your WordPress site.

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 detected21,515 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
JSON40016,201
PHP441,2394684,338
PO File1240267601
Sass1512199
JavaScript336195
JSX112074
SVG1006
CSS1111

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity14.60
▷ Minimum class complexity1.00
▷ Maximum class complexity125.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces8
Interfaces2
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes00.00%
Methods222
▷ Static methods3415.32%
▷ Public methods19487.39%
▷ Protected methods31.35%
▷ Private methods2511.26%
Functions11
▷ Named functions00.00%
▷ Anonymous functions11100.00%
Constants114
▷ Global constants108.77%
▷ Class constants10491.23%
▷ Public constants104100.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
There were not PNG files found in your plugin