The file counter.php is simply a counter of visitors, nothing more.
I have another site with the same javascript counter.php and there Avast does not block my site, so the file counter.php is not the problem.
Ok, I deleted counter.php but Avast again blocked my website.
About the second javascript “test404page.js” this file does not exist on my website, maybe it’s something old archive from previous scans when my site was hacked but that was a year ago, I don’t know.
But I think that Avast blocked my website because of malware on other domains on same ip (thanks for your report).
I changed host provider and now the site is not blocked.
But it’s too bad, because only one site may cause problems for many sites on free or paid shared hosting.
I think this is a weakness of Avast, you should make an option to recognize different domains even if they are from the same ip.