protected function findLighthouseScoreReportData(\SplFileInfo $path, array $selected)
    {
        $data = [];
        $json = json_decode(file_get_contents($path), true);

        foreach ($json['reportCategories'] as $report) {
            if (!isset($report['name']) || !isset($report['score'])) {
                continue;
            }
            $label = $report['name'];
            $key = Utility::cleanString(
                strtolower(strtr($label, ' ', '_')),
                '/[^a-zA-Z\_]/'
            );

            if (!in_array($key, $selected)) {
                continue;
            }

            $data[$key] = [
                'name' => $label,
                'score' => round($report['score'])
            ];
        }

        return $data;
    }