74% user-activity-tracking-and-log

Code Review | User Activity Tracking and Log

WordPress plugin User Activity Tracking and Log scored74%from 54 tests.

About plugin

  • Plugin page: user-activity-tra...
  • Plugin version: 4.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.4
  • WordPress version: 6.3.1
  • First release: Feb 10, 2016
  • Latest release: Nov 21, 2023
  • Number of updates: 131
  • Update frequency: every 21.7 days
  • Top authors: MooveAgency (77.86%)gaspar.nemes (22.9%)

Code review

54 tests

User reviews

25 reviews

Install metrics

3,000+ active /112,438 total downloads

Benchmarks

Plugin footprint 65% 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.80MB] [CPU: ▲0.48ms] 75% from 4 tests

A check of server-side resources used by User Activity Tracking and Log
It is recommended to improve the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 528.10ms on /wp-admin/admin.php?page=moove-activity-log)
PageMemory (MB)CPU Time (ms)
Home /4.29 ▲0.8242.15 ▲5.85
Dashboard /wp-admin4.11 ▲0.7752.48 ▼10.92
Posts /wp-admin/edit.php4.16 ▲0.8154.44 ▲4.20
Add New Post /wp-admin/post-new.php6.72 ▲0.83102.89 ▲2.81
Media Library /wp-admin/upload.php4.04 ▲0.8142.86 ▲10.36
User Activity Tracking /wp-admin/admin.php?page=moove-activity-log4.23528.10

Server storage [IO: ▲1.96MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 60 new files
Database: 1 new table, 10 new options
New tables
wp_moove_activity_log
New WordPress options
can_compress_scripts
moove_importer_has_extras
widget_theysaidso_widget
db_upgraded
moove_importer_has_database
uat_db_support_request_url
widget_recent-posts
moove_post_act
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for User Activity Tracking and Log
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲18313.44 ▼1.1610.04 ▲8.4838.35 ▲2.41
Dashboard /wp-admin2,250 ▲705.63 ▼0.0296.48 ▼3.6141.98 ▼4.06
Posts /wp-admin/edit.php2,155 ▲522.03 ▲0.0740.47 ▲1.4239.31 ▲4.27
Add New Post /wp-admin/post-new.php6,331 ▲4,80525.91 ▲2.89824.51 ▲233.6053.93 ▲4.52
Media Library /wp-admin/upload.php1,458 ▲554.25 ▲0.0697.14 ▼4.8942.03 ▼1.20
User Activity Tracking /wp-admin/admin.php?page=moove-activity-log5,8044.98171.61140.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_moove_activity_log
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • moove_post_act

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=moove-activity-log
    • > Console-api (warning) in wp-content/plugins/user-activity-tracking-and-log/assets/js/moove_activity_backend.js?ver=4.1.3+425:15
    no-filters

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: activity log, statistics, analytics, stats, time tracking

user-activity-tracking-and-log/moove-activity.php 92% from 13 tests

"User Activity Tracking and Log" version 4.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("user-activity-tracking-and-log.php" instead of "moove-activity.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin35,892 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript54,5559,39522,715
PHP365901,2235,524
CSS3130644,219
LESS17363,197
PO File184148237

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity56.67
▷ Minimum class complexity2.00
▷ Maximum class complexity202.00
Average method complexity5.79
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods122
▷ Static methods7259.02%
▷ Public methods122100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions65
▷ Named functions2436.92%
▷ Anonymous functions4163.08%
Constants2
▷ Global constants2100.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
10 PNG files occupy 0.31MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/sort_desc.png0.15KB0.25KB0.00%
assets/images/sort_both.png0.20KB0.29KB0.00%
assets/images/sort_asc.png0.16KB0.25KB0.00%
assets/images/icon.png1.45KB1.33KB▼ 7.95%
assets/images/gdpr-promo-wp.png302.79KB67.10KB▼ 77.84%