I have been asked if in the sidebar the most read blog articles for the current week can be displayed and have a link to the blog article

I found this topic: viewtopic.php?f=8&t=8913 and saw KK's code but it needs to go in the snippet called blog_sidebar.html so was bit confused by it and also unsure how to tweak it to show the most read blog articles for the current week

Do I just activate the addon and put KK's code in the blog_sidebar.html file?