public static function report_performance_check_enablestats() {
        global $CFG;
        $issueresult = new report_performance_issue();
        $issueresult->issue = 'report_performance_check_enablestats';
        $issueresult->name = get_string('enablestats', 'admin');

        if (!empty($CFG->enablestats)) {
            $issueresult->statusstr = get_string('enabled', 'report_performance');
            $issueresult->status = self::REPORT_PERFORMANCE_WARNING;
            $issueresult->comment = get_string('check_enablestats_comment_enable', 'report_performance');
        } else {
            $issueresult->statusstr = get_string('disabled', 'report_performance');
            $issueresult->status = self::REPORT_PERFORMANCE_OK;
            $issueresult->comment = get_string('check_enablestats_comment_disable', 'report_performance');
        }

        $issueresult->details = get_string('check_enablestats_details', 'report_performance');
        $issueresult->configlink = new moodle_url('/admin/search.php', array('query' => 'enablestats'));
        return $issueresult;
    }