Try ready-made solutions like www.optiviewer.info, there is a score, statistics on the page with an average score + you can control everything through the admin panel. Basically, everything on the basic request.
P.S.
As for the top of pages - better check with support.
P.S.
As for the top of pages - better check with support.