If you know any scripting, that would be pretty easy to code up something. Simple enough that I would just make a bash script and use it.
yt-dlp <-- download file
ffmpeg <-- trim the file if you want to change start/end times
mpv <--- or whatever to play file
printf or echo <-- throw the stats into a data file
Then you could run whatever you want on your data file (sort/uniq/awk/etc) to get bespoke stats, most played, latest played, etc.
Otherwise, something like https://agrahn.gitlab.io/ABLoopPlayer/ gets you some of what you want, and seems to be able to export some of the info into a json file.