Basically what I said before. Create a page node callback. The link I posted has a basic skeleton for a callback function. Then inside of that function you need to write code to build the stats. You can refer to XenForo_ControllerAdmin_Stats for the code used by the stats page in the Admin CP.