---
title: "analyze_wordpress for a hosted site: inventory, health and findings (updates are offered as safe changes to test on staging)"
method: GET
path: "/projects/{projectId}/wordpress/analysis"
tags: ["WordPress"]
---

# analyze_wordpress for a hosted site: inventory, health and findings (updates are offered as safe changes to test on staging)

`GET /projects/{projectId}/wordpress/analysis`

## Request

- Base URL: `https://hostingsurge.com/api/v1`
- URL: `https://hostingsurge.com/api/v1/projects/{projectId}/wordpress/analysis`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-hs_session`

## Path parameters

- `projectId` string, uuid, required

## Response `200`

Analysis

- object
  - `site` object, required
    - `kind` 'hosted' | 'external', required
    - `projectId` string, uuid, nullable, required
    - `connectionId` string, uuid, nullable, required
    - `url` string, nullable, required
    - `name` string, nullable, required
  - `inventory` object, nullable, required
    - `core` object, required
      - `version` string, nullable, required
      - `updateVersion` string, nullable, required
    - `plugins` object[], required
      - `file` string, required
      - `slug` string, required
      - `name` string, required
      - `version` string, required
      - `active` boolean, required
      - `networkActive` boolean
      - `updateVersion` string, nullable, required
      - `autoUpdate` boolean
      - `requiresPhp` string
    - `mustUsePlugins` object[]
      - `file` string, required
      - `name` string, required
      - `version` string, required
    - `dropIns` string[]
    - `themes` object[], required
      - `stylesheet` string, required
      - `name` string, required
      - `version` string, required
      - `active` boolean, required
      - `parent` string, nullable
      - `updateVersion` string, nullable, required
      - `autoUpdate` boolean
    - `checkedAt` string, nullable: ISO-8601 timestamp
  - `health` object, nullable, required
    - `php` object, required
      - `version` string, nullable, required
      - `sapi` string
      - `memoryLimit` string
      - `maxExecutionTime` number
      - `uploadMaxFilesize` string
      - `extensions` string[]
    - `wordpress` object, required
      - `version` string, nullable, required
      - `debug` boolean
      - `debugLog` boolean
      - `debugDisplay` boolean
      - `disallowFileEdit` boolean
      - `cronDisabled` boolean
      - `objectCache` boolean
      - `memoryLimit` string
      - `https` boolean
      - `environment` string
    - `siteHealth` object, required
      - `available` boolean, required
      - `tests` object[], required
        - `test` string, required
        - `status` 'good' | 'recommended' | 'critical' | 'error', required
        - `label` string, required
        - `badge` string
        - `description` string, required
      - `skipped` number
    - `errorLog` object, required
      - `available` boolean, required
      - `source` string, nullable, required
      - `lines` string[], required
      - `fatalErrors` number, required
      - `sizeBytes` number, required
  - `findings` object[], required
    - `id` string, required: Stable code, e.g. core_update, plugin_update, php_eol, debug_display, fatal_errors, site_health_critical
    - `severity` 'critical' | 'warning' | 'info', required
    - `title` string, required
    - `detail` string, required
    - `action` object, nullable, required
      - `kind` 'plugin_update' | 'theme_update' | 'core_update', required
      - `slug` string
      - `version` string
  - `summary` object, required
    - `critical` number, required
    - `warning` number, required
    - `info` number, required
  - `unavailable` string[], required: What could not be read, and why
  - `analyzedAt` string, required: ISO-8601 timestamp

## Other responses

- `400`: Invalid request (code invalid_request)
- `401`: Missing or invalid session/token (code unauthorized)
- `402`: A paid add-on (code upgrade_required)
- `403`: Authenticated but not permitted (code forbidden)
- `404`: Not found or not visible to the caller (code not_found)
- `409`: Conflicting state (code conflict)
- `429`: Too many requests (code rate_limited)
- `501`: Not available on this server (code not_configured)
- `503`: The site or the engine did not answer (code provider_unavailable)

---

[API](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api.md) · [All operations](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/revisions/4d08337cdff1?raw)
