Custom Block Plugin Most Viewed

Hi.

I want to create a custom plugin based on the most galley (total view of primaryGalley) of the articles.
Can someone suggest which tables in OJS 3 database that should I retrieved by using query to accomplish that?

Is it possible to create time range such as most viewed by week time period?

Thank

See this thread:

Oke thank I am going to check it out.