def METHOD_NAME(project_ids, state, credentials):
    """Returns the summary of recommendations on all the given projects.
  Args:
    project_ids: List(str) project to which recommendation is needed.
    state: state of recommendations
    credentials: client credentials.
  """
    recommender = build("recommender",
                        "v1",
                        credentials=credentials,
                        cache_discovery=False)
    def get_metric(project_id):
        recommendation_metric = common.get_recommendations(
            project_id,
            recommender=recommender,
            state=state,
            credentials=credentials)
        return accounts_can_made_safe(project_id, state, recommendation_metric)
    recommendation_stats = common.rate_limit_execution(get_metric, RATE_LIMIT,
                                                       project_ids)
    recommendation_stats_sorted = sorted(
        recommendation_stats, key=lambda metric: -sum(metric["stats"].values()))
    return recommendation_stats_sorted