# WordPress Public Audit for Agencies (`slimjones/wordpress-public-audit`) Actor

Evidence-backed public audit of authorized WordPress sites: detected core/plugin/theme versions with confidence, Wordfence advisory matching, security headers, TLS, performance and SEO basics — one JSON row per site. Non-WordPress targets are never charged.

- **URL**: https://apify.com/slimjones/wordpress-public-audit.md
- **Developed by:** [Slim Jones](https://apify.com/slimjones) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$20.00 / 1,000 audited sites

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## WordPress Public Audit for Agencies

Enter a WordPress site URL and get back an **evidence-backed public audit** as stable JSON: the detected WordPress core, plugin and theme versions — each with the evidence it came from and a confidence level — matched against the **Wordfence Intelligence** vulnerability feed, plus security headers, TLS, performance basics and SEO basics.

Built for WordPress maintenance agencies and automation consultants who need to baseline client sites and feed the results into tickets, reports and workflows (n8n, Make, CRMs) — without installing a scanner or handing over admin credentials.

### What you get

**Default dataset — one summary row per requested site.** A row is always emitted, even for failed or non-WordPress targets, so batches reconcile. Each row includes:

- `status`: `completed`, `partial`, `not_wordpress`, `blocked`, `unreachable`, `robots_disallowed` or `invalid_input`
- Detected WordPress version and a component inventory (`components[]`): type, slug, name, `observedVersion`, `versionConfidence` (`high` / `medium` / `low`), the detection methods and the evidence behind every claim
- Advisory results: `matchedAdvisoriesCount`, `applicabilityUnknownCount`, and per-component `advisoryEvaluationStatus`
- `securityHeaders`, `tls` (validity, issuer, expiry, HTTP→HTTPS behaviour), `performanceBasics` (timing, page weight, compression, asset counts — measured from the actor's location), `seoBasics` (title, description, canonical, robots, H1, sitemap)
- `findings[]` and a `coverage` object that states what the audit could and could not see

**Findings dataset (named `findings`)** — one row per finding, linked by `auditId`, ready for ticketing or CSV export. Optional per-site HTML reports can be stored in the run's key-value store.

### Honest limitations — read this first

This is an **external, unauthenticated** audit of public evidence only:

- It can only detect components that are visible in public pages and files. A plugin that is installed but never enqueued or exposed **will not appear**. "Not observed" never means "not installed", and the output says so.
- A version taken from an asset's `?ver=` parameter is weak evidence and is labelled `low` confidence. Strong evidence (the plugin's own `readme.txt` stable tag, a theme's `style.css` version, the generator meta tag) is labelled `high`.
- If a component's version cannot be observed, published advisories for it are reported as **applicability unknown** — never as "the site is vulnerable".
- If the vulnerability feed cannot be loaded, the audit is marked `partial` with advisory checking `unavailable` — never as "zero vulnerabilities".
- There is deliberately **no 0–100 score**. Counts, evidence and coverage are defensible; an opaque grade is not.

### Vulnerability data

Advisory matching uses the **Wordfence Intelligence** feed (free for personal and commercial use). Supply your own free Wordfence API key (wordfence.com account → Integrations) in the input to enable it; the feed snapshot is cached for 24 hours and its timestamp is recorded in every row. WPScan data is not used.

Vulnerability data: Wordfence Intelligence, © Defiant Inc., Community Edition. CVE® data © The MITRE Corporation.

### Safety and authorization

Only audit sites you own or are authorized to audit — the run refuses to start without the authorization confirmation in the input. The actor uses an identified user-agent, respects `robots.txt` by default, enforces request/page/time/size caps per site, and refuses private, loopback, link-local and cloud-metadata destinations. It sends no credentials, no exploit payloads and performs no enumeration or brute force.

### Input

| Field | Notes |
| --- | --- |
| `siteUrl` | The site to audit. WordPress in a subdirectory is fine. |
| `additionalUrls` | More sites in the same run. |
| `authorizationConfirmed` | Required checkbox. |
| `maxSites` / `maxPagesPerSite` / `maxRequestsPerSite` | Caps (defaults 20 / 3 / 20). |
| `checks` | Toggle modules: plugins, themes, known vulnerabilities, headers, TLS, performance, SEO. |
| `wordfenceApiKey` | Optional; enables advisory matching. |
| `generateHtmlReport` | Optional human-readable report per site. |

### Pricing

**$0.02 per successfully audited WordPress site** (pay per event). A site counts as audited when WordPress is detected and the audit completes or completes partially. Blocked, unreachable, robots-disallowed and non-WordPress targets produce a diagnostic row and are **never charged**. You never pay per finding — a clean site received the same service.

### Example

Input:

```json
{
  "siteUrl": "https://example.com",
  "authorizationConfirmed": true
}
```

Summary row (abridged):

```json
{
  "status": "completed",
  "billable": true,
  "wordpressDetected": true,
  "wordpressVersion": "6.7.2",
  "detectedPluginsCount": 4,
  "matchedAdvisoriesCount": 1,
  "coverage": { "versionCoverage": 0.8, "advisoryCheckStatus": "ok" }
}
```

# Actor input Schema

## `additionalUrls` (type: `array`):

More sites to audit in the same run. One summary row is emitted per site; you are charged only for successfully audited WordPress sites.

## `authorizationConfirmed` (type: `boolean`):

Required. The run refuses to start without this confirmation. The audit is unauthenticated and reads only publicly available pages and files.

## `checks` (type: `object`):

Toggle audit modules. WordPress detection always runs.

## `generateHtmlReport` (type: `boolean`):

Stores a human-readable HTML report per audited site in the run's key-value store (key html-report-<auditId>).

## `maxConcurrency` (type: `integer`):

How many sites to audit at the same time.

## `maxPagesPerSite` (type: `integer`):

Homepage plus up to this many same-site pages are sampled for component evidence.

## `maxRequestsPerSite` (type: `integer`):

Hard cap on HTTP requests made against each site, including probes for plugin/theme versions.

## `maxSites` (type: `integer`):

Cap on the number of sites audited in one run.

## `requestTimeoutSecs` (type: `integer`):

Timeout applied to each individual HTTP request.

## `respectRobotsTxt` (type: `boolean`):

If a site's robots.txt disallows this audit user-agent, the site is reported as robots_disallowed and not audited (and not charged).

## `siteUrl` (type: `string`):

The WordPress site to audit, e.g. https://example.com. WordPress installed in a subdirectory is fine — enter that URL.

## `wordfenceApiKey` (type: `string`):

Free key from your wordfence.com account (Account → Integrations). Used only to download the Wordfence vulnerability feed for advisory matching. Without a key, audits still run but are marked partial with advisory checking unavailable.

## Actor input object example

```json
{
  "additionalUrls": [],
  "authorizationConfirmed": false,
  "checks": {
    "knownVulnerabilities": true,
    "performanceBasics": true,
    "plugins": true,
    "securityHeaders": true,
    "seoBasics": true,
    "themes": true,
    "tls": true,
    "wordpress": true
  },
  "generateHtmlReport": false,
  "maxConcurrency": 2,
  "maxPagesPerSite": 3,
  "maxRequestsPerSite": 20,
  "maxSites": 20,
  "requestTimeoutSecs": 20,
  "respectRobotsTxt": true,
  "siteUrl": "https://example.com"
}
```

# Actor output Schema

## `dataset` (type: `string`):

The dataset containing one audit summary row per requested site.

## `datasetItems` (type: `string`):

Direct link to the audit summary rows as clean JSON.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "siteUrl": "https://example.com"
};

// Run the Actor and wait for it to finish
const run = await client.actor("slimjones/wordpress-public-audit").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "siteUrl": "https://example.com" }

# Run the Actor and wait for it to finish
run = client.actor("slimjones/wordpress-public-audit").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "siteUrl": "https://example.com"
}' |
apify call slimjones/wordpress-public-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,slimjones/wordpress-public-audit"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/q2WlE1POABOo7V8c9/builds/B1pVhbVEeGdnwFeQw/openapi.json
