I am sure things like this can be done at the command-line using SOX’s “stat” effect - see http://www.hydrogenaudio.org/forums/index.php?showtopic=83319 for some ideas.
Steve has written a “Sample Printer” Nyquist plug-in but it cannot be run in a Chain and is not suitable for long files:
https://forum.audacityteam.org/t/sample-printer/14790/1 .
Gale