I have added a few more functions to the "_statisticsoutput_simpletext.php" and then the statistics start loading more slowly. The functions added rely on Python scripts.
For a better user experience, I want to add a "loading in progress" component while that page gets loaded. However I couldn't find the name of the page responsible to display survey's statistics.