Fetch only data untill yesterday
Use WP cron instead of running a shutdown hook [Finishes #84364854]
Check if the WP cron runned, if not, run it now
Correct endate in fetching metrics
Fetch data from 00:05 every night with WP cron