protected function determineLighthouseState(array $values, array $opts)
    {
        $state = 'success';

        foreach ($values as $key => $info) {
            $required_score = isset($opts["$key-score"])
                ? ($opts["$key-score"] <= 100 ? $opts["$key-score"] : 100)
                : 50;

            if ($info['score'] < $required_score
                && $info['score'] !== $required_score) {
                return 'failure';
            }
        }

        return $state;
    }