WordPress website security audit

WordPress website security audit

11 min read
Guide

A WordPress security audit, the way I do it, is a written review of one site: its plugins and themes, user accounts, WordPress and server configuration, HTTP headers and backups. You get a document that lists what I found, how serious each finding is and how to fix it. I am Mariusz Szatkowski, a WordPress developer since 2006, and I do the audit myself. I do not run a security operations centre, sell round-the-clock monitoring or offer penetration testing as a service, and nobody can honestly promise you a site that will never be hacked.

#Who carries out the WordPress security audit?

I do, personally. WPPoland is the name I work under as a senior WordPress developer based in Gdynia, Poland. No team, no subcontractors: the person who reads your code and logs is the one who writes the report.

#What does a WordPress security audit include?

  • installed plugins and themes checked against known vulnerabilities, plus a read of custom code and abandoned plugins
  • user accounts: who has administrator access, application passwords, accounts nobody remembers creating
  • WordPress configuration: wp-config.php constants, salts, file editor, XML-RPC, REST user endpoints
  • server side: file permissions, PHP execution in uploads, HTTP security headers, TLS
  • backups: where they are, how long they are kept and whether a restore has ever been tested
  • AI plugins that give an external agent code execution, database or file access
  • if the site is already compromised: the likely entry point and the malware removal steps

#Where is the audit carried out?

Remotely, from Gdynia, for site owners in the UK, Ireland and elsewhere. Communication runs by email and in writing, so every finding and decision can be looked up later.

#How much does a WordPress security audit cost?

The price is individual and depends on the number of plugins, the amount of custom code and whether the site is already infected. Send a short description of the site and I reply with the scope and a written quote. Fixes from the report are quoted separately.

#How WordPress sites get hacked

Most attacks are automated: bots scan the web for known vulnerable versions and try them on every site they find. The site owner is rarely a chosen target.

#WordPress plugin vulnerabilities

The risk sits in plugins. Patchstack counted 11,334 new vulnerabilities in the WordPress ecosystem in 2025, about 91% of them in plugins, 9% in themes and 6 in core (Patchstack, State of WordPress Security in 2026). The shapes repeat:

  • REST endpoints registered with permission_callback => '__return_true', open to anyone
  • stored XSS through shortcodes or blocks that echo $_GET or post meta without escaping
  • file upload handlers that skip wp_check_filetype_and_ext() and a MIME allowlist
  • settings saves that trust the request and let a subscriber change options or roles

I check installed slugs and versions against the Patchstack and WPScan databases, then read the source of custom plugins and the theme for the patterns above. A database lookup alone misses code nobody has catalogued. AI-generated code ships these gaps often (missing nonces, missing capability checks, unsanitised input), so a site built with an AI tool may also need the AI-built website rescue work.

#Brute force on wp-login.php and XML-RPC

/wp-login.php and /xmlrpc.php see login attempts on most public sites. On XML-RPC, system.multicall lets one request carry many password attempts. If nothing on the site uses XML-RPC, it can be blocked; if Jetpack or the WordPress mobile app needs it, limit it at the firewall instead.

#WordPress user enumeration

?author=1 redirects to /author/<slug>/ and reveals a login name. The same comes from /wp-json/wp/v2/users on installs that never restricted the public users endpoint. On a hardened site both return 404 or an empty list.

#Plugin supply chain

The realistic risk is an abandoned plugin sold to a new owner who ships a tracker in the next update, or a commercial plugin whose own update server gets compromised. I list where each plugin updates from and flag plugins that have changed hands or stopped receiving updates.

#Are AI plugins with code execution a security risk?

A vulnerability scanner looks for bugs: outdated versions, known CVEs, missing validation. A different class of plugin gives an AI agent PHP execution, database queries and file operations on purpose, through MCP, a CLI bridge or a webhook. That is a documented feature, and in effect it is remote code execution for whoever holds the key. A CVE scanner reports such a plugin as clean, because there is no bug to report.

For each such plugin I check:

  1. whether the endpoint requires authentication and whether it is reachable from the public internet
  2. where the credentials live (wp-config.php, the options table, environment variables) and who can read them
  3. whether executed operations are logged in a form you can reconstruct after an incident

My default recommendation is to keep these plugins off production and use them on staging only, behind an IP allowlist.

#Hardening recommendations in the report

Hardening means constraints that make the next attack harder to land. These are the changes I most often recommend, roughly in this order.

wp-config.php constants. DISALLOW_FILE_EDIT turns off the code editor in the dashboard, and DISALLOW_FILE_MODS blocks plugin and theme installs where deployments go through Git. FORCE_SSL_ADMIN keeps the admin on HTTPS. The file should be readable by the web server user only where the host allows it.

Secrets. Rotate the eight salts with the wordpress.org generator, which logs everyone out, and revoke application passwords that no documented integration uses.

Login. Two-factor login for administrators (the Two Factor plugin or Wordfence Login Security with TOTP), with a documented way to reset it over WP-CLI when a phone is lost. Login throttling at the edge as well as in PHP, for example a rate limit on POST requests to /wp-login.php.

File system. PHP execution disabled in /wp-content/uploads/ through an .htaccess rule or the nginx equivalent, directory listing off, xmlrpc.php blocked unless the site needs it.

Detection. A regular comparison of core and plugin files with the official checksums (wp core verify-checksums, wp plugin verify-checksums --all), and an alert when a new administrator account appears.

If you order the fixes, I apply them on staging first and then on production.

#Breach patterns I look for

The persistent admin user. A vulnerable form plugin lets an attacker create a user through an unprotected AJAX endpoint, with the administrator role and a harmless name like “Support”. Restoring last week’s backup does not help if the account was created earlier. I compare wp_users and wp_usermeta with a known clean state rather than trusting the list in the dashboard.

The uploads backdoor. A PHP file hidden somewhere like /wp-content/uploads/2024/03/.cache.php accepts a payload by POST and runs it. A partial restore of core and plugins leaves it in place. I search uploads for .php, .phtml and .phar files and check that PHP execution is disabled there at server level.

The leaked key. A .env file or a backup of wp-config.php sits in the web root or in a public repository, with SMTP or payment API keys inside. I check for .env, .env.backup, wp-config.php.bak and any file under the web root that contains DB_PASSWORD or _KEY.

#What you get after the audit

A written report, sent by email as a document:

  • every finding with its priority (critical, high, medium, low), where it was found and the evidence: a log line, a header, a file path, a CVE reference where one exists
  • a concrete fix for each finding, written so that your developer, or I, can apply it without guessing
  • a short list of what I could not check, and why (for example no server access or no logs)

Questions about the report go by email. If you order the fixes, I check each one again afterwards and mark it as closed in the report.

#What access the audit requires

  • A temporary WordPress administrator account with two-factor login, created for the audit and removed afterwards.
  • Read-only SFTP or SSH access. It lets me verify core files with WP-CLI, check permissions, read access.log and error.log, and look for files hidden in uploads. Without it, part of the site stays invisible and the report says so.
  • A list of integrations and important plugins, a few lines each: what it does and who relies on it.

Google Search Console access and any earlier audit report help too. Before I get access to a site with personal data, I sign a data processing agreement under Art. 28 GDPR.

#Hacked website: what to do in the first hour

  1. Delete nothing. Copy the files and the database as they are. Infected files are evidence of how the attacker got in.
  2. Change passwords from a clean device: WordPress admin, hosting, SFTP, database, payment and mail API keys. Log out every session.
  3. Take the site offline or enable maintenance mode if it serves malware, redirects visitors or collects form and payment data.
  4. Ask the host for access.log and error.log and how long they keep them. Without logs nobody can tell what was read.
  5. Check Google Search Console. An unknown owner is a common sign of a break-in; remove it once the copy is safe.
  6. Write down when you confirmed the breach. The notification deadline in the next section counts from there.

#How does a hack cleanup work?

I work on a copy first. I look for the entry point (logs, wp core verify-checksums, a diff of plugin and theme files), remove malware and backdoors from files and database, check administrator accounts and cron jobs, reinstall core and plugins from clean sources and rotate every secret. If Google flagged the site, you request a review in Search Console once it is clean. How long it takes depends on how much is infected and whether logs exist, so I estimate only after looking at the site. You get a written summary with what I found about possible data exposure.

#Do you have to report a data breach after a hack?

You are the controller, so the decision to notify is yours and your data protection officer’s, if you have one. My part is the facts a lawyer needs: whether personal data sat in the database or files, whether the attacker could reach it and since when.

  • Ireland and the rest of the EU. Article 33 GDPR requires the controller to notify the supervisory authority without undue delay and, where feasible, within 72 hours of becoming aware of the breach, unless it is unlikely to result in a risk to people’s rights and freedoms. In Ireland that authority is the Data Protection Commission, established by section 10 of the Data Protection Act 2018. Where the risk to people is high, Article 34 also requires telling them. Source: GDPR on EUR-Lex.
  • United Kingdom. The UK GDPR keeps the same rule in Article 33: notify the UK regulator without undue delay and, where feasible, within 72 hours, and document every breach, reported or not.

#When does a WordPress site need a security audit?

When at least one of these is true: the site takes payments or stores personal data, nobody has rotated the salts or reviewed application passwords in the last 12 months, you took the site over from another developer or agency, or something looks wrong (admin emails you did not expect, search results showing pages you did not write, outbound mail flagged as spam).

If none of that applies and the site is a small brochure site on managed hosting with updates running, an audit can probably wait, and I will tell you so in my reply.

Send a short description through the contact form: the address, what the site handles and anything that worries you. Before that, you can look at the public side yourself: the WordPress site check fetches one address and reports measured numbers, with no email address required. Ongoing care after an audit is described under WordPress maintenance.

Recommendations from LinkedIn

Recommendations and reviews of working with WPPoland

Recommendations from people in the WordPress, WordCamp and e-commerce communities. They write about delivery on time, technical depth and a business-minded approach to site development.

Karolina Czapla

Karolina Czapla

Marketing Strategist, Performance & Digital Strategy

“Working with Mariusz on WordCamp has shown me how rare it is to combine deep technical skill with genuine leadership. He plans, coordinates and delivers with precision, while giving the team space to grow and contribute. When others say 'it can't be done', he quietly finds a way.”

Co‑organiser, WordCamp Gdynia 2024 & 2025

Anna Kamińska

Anna Kamińska

Talent Acquisition Specialist / HR People Partner

“Mariusz's portfolio speaks for itself. It reflects his precision, versatility and sense of responsibility. You can trust him to guide a project from idea to delivery, keep stakeholders informed and make sure things are done properly and on time.”

Worked on the same team

Sarah‑Luisa Kwolek

Sarah‑Luisa Kwolek

IT Project Management & Product Owner, Web/App

“For over two years I could always rely on Mariusz to handle WordPress tasks calmly and professionally, from styling and templating to third‑party integrations. He brings steadiness to the team and keeps the frontend side of projects under control.”

Mariusz was her client for WordPress work

Argert Boja

Argert Boja

Senior Full‑Stack Developer

“Mariusz is the teammate everyone hopes for: strong full‑stack WordPress skills, clear explanations and a positive attitude even under pressure. He moves easily between custom plugins, performance work and Gutenberg layouts while keeping the bigger picture in mind.”

Worked alongside Mariusz on WordPress projects

Varun Patil

Varun Patil

Growth & CRM Lead

“Beyond development, Mariusz understands SEO, analytics and growth. He talks directly with stakeholders, asks the right questions and ships solutions that move business metrics, from AMP to tracking to performance.”

Managed Mariusz on growth initiatives

Rafał Osiński

Rafał Osiński

Founder @ EasyTrips.pl, Senior WordPress Dev

“I've known Mariusz through the WordPress community for many years. He's reliable, deeply involved and consistently shows up, at meetups, WordCamps and in projects. If you care about long‑term collaboration and someone who treats your site like his own, he is the right person.”

WordPress community co‑organiser

Daniel Blossfeld

Daniel Blossfeld

Process Optimization & Digitalization Consultant

“I had the pleasure of working with Mariusz for almost three years. During that time, his WordPress development skills proved invaluable across a range of projects, from website builds to online member areas and even Shopify integrations. He's a reliable and capable developer.”

Mariusz was his client for WordPress work

Natalie Wiszczor

Natalie Wiszczor

CRM & E-Mail Marketing Manager

“I had the great pleasure of working with Mariusz for over 4 years in the technical field. During this time, he proved to be a competent and reliable colleague. What stood out in particular was his friendly nature and his remarkable perseverance in solving complex technical challenges. Even in stressful situations, he always kept a clear head and contributed significantly to a positive and productive working atmosphere with his upbeat attitude. 🙏🏻🚀”

Worked with Mariusz on different teams

Mark Chalklen

Mark Chalklen

Head of Design & Build at Itineris Limited

“Mariusz is a great member of the team, always happy to get stuck into any task and happy to learn new things. A great communicator and all round nice guy to work with. Hard to beat on our weekly Strava leader board though!”

Managed Mariusz directly

Jessica Di Pasquale

Jessica Di Pasquale

Leading SEO initiatives with data-driven growth strategies.

“Mariusz is a very skilled, patient and expert guy. Always ready to help and to fix errors, I really appreciated working with him. He is such a great colleague!”

Managed Mariusz directly

Biki John

Biki John

Content Marketing Aficionado & SEO Enthusiast

“It was great to work with Mariusz. I really appreciated his extensive knowledge of WordPress and how that came in handy whenever I needed support navigating the CMS. I commend Mariusz totally for his patience, good nature and expertise in his craft, he will be thoroughly missed by all.”

Worked with Mariusz on different teams

Rafal Borowiec

Rafal Borowiec

Software Developer, Consultant, Manager and Lecturer

“I had an opportunity to work with Mariusz for 7 months. He excels in technical optimization for search engines (SEO). Mariusz has also strong expertise in AMP development, GTM, and GA. Mariusz feels very comfortable with WordPress - he worked on a variety of WordPress related projects and tasks, including landing pages development, performance improvements and much more. If you are looking for a solid WordPress expert specializing in SEO, tracking, performance, and development - don't hesitate to get in touch with Mariusz.”

Managed Mariusz directly

Belinda Koch

Belinda Koch

Web-Tracking Analyst at TUI

“Mariusz is a great person to work with. He is extremely motivated to learn new things and share his knowledge, and is very knowledgeable on a wide range of topics. We worked together on digital analytics and tracking topics and I am very grateful for all the energy, support, and insights he brought to the projects.”

Worked with Mariusz on digital analytics and tracking topics

Ali Nezamolmaleki

Ali Nezamolmaleki

Growth, SEO, Analytical thinking, AMP

“Mariusz is an extremely talented person in his field of work. He is always capable of giving a new perspective to solve problems and to think out of the box in situations where everything seems to be locked. Working with him is always a pleasure because of his positive personality and can-do attitude.”

Worked with Mariusz on the same team

Karol Jakubcewicz

Karol Jakubcewicz

Front-end / JavaScript Developer

“Mariusz is an incredibly experienced WordPress developer and SEO/SEM specialist I've had the pleasure to work with for almost two years. As a pilot of the team responsible for AirHelp's website development, he's been one the key figures in charge of constant load time and page rank improvement. I admire his skills and knowledge vital for such complex, multilingual and highly customized WordPress project. Lots of experience, tons of positive attitude - I highly recommend cooperating with Mariusz in any web development project.”

Worked with Mariusz on the same team

Paweł Lewczuk

Paweł Lewczuk

Front-end developer, WordPress developer

“I collaborated with Mariusz on several projects and our cooperation was always exemplary. I believe there are many more joint projects ahead of us. Highly recommended!”

Mariusz was Paweł's client

Przemek Wroblewski

Przemek Wroblewski

Software Developer with 20+ years of experience

“I found Mariusz as someone with great expertise and profound knowledge of frontend solutions. Powerful, knowledgeable and accountable WordPress developer. Has an easiness to build interpersonal relations with others. He had vision to see the benefits and the passion to turn that into measurable results for AirHelp. Absolutely someone I'd want to have on my team.”

Worked with Mariusz on different teams

All recommendations on LinkedIn

Frequently asked questions

Questions about scope, delivery, pricing, and execution quality.

How do I know if my WordPress site has been hacked?#
Common signs: a browser warning such as 'Deceptive site ahead', a sudden drop in search traffic, admin accounts you did not create, pages or links you did not write (often Japanese keyword spam), redirects to other sites, PHP files where none should be (for example in uploads), and messages from your host about malware or outbound spam.
How often should a WordPress site be audited?#
After any security incident, when you take over a site from another developer, and when the site starts handling payments or personal data in a new way. Between audits, regular updates tested on staging and backups do more than a second audit would.
What are the most common WordPress security vulnerabilities?#
Plugins, by a wide margin. Patchstack counted 11,334 new vulnerabilities in the WordPress ecosystem in 2025: about 91% in plugins, 9% in themes and 6 in core. Typical classes are missing authorisation checks on REST and AJAX endpoints, cross-site scripting, file uploads that accept executable files, SQL injection in custom queries, and weak passwords exposed to brute force.
Can I do a WordPress security audit myself?#
Partly. A scanner such as Wordfence or a vulnerability feed such as Patchstack tells you which installed versions have known issues. What a scanner does not do is read custom code, check who holds administrator access, look at server headers and file permissions, or test whether your backups can actually be restored. That is the part I add.
What should I do immediately after a security breach?#
Copy files and database as they are before deleting anything, change every password from a clean device, put the site into maintenance mode if it serves malware or collects data, ask your host for access and error logs, and note when you confirmed the breach. The section on the first hour below covers each step.
What is included in a WordPress security audit report?#
A document listing each finding with its priority (critical, high, medium, low), where it was found, the evidence (a log line, a header, a file path), and a concrete fix your developer can apply. It also lists what I could not check and why.
Can you fix security issues found during the audit?#
Yes, as a separate order once you have read the report. You decide which findings to fix and in what order. After the fixes I check again that each one is closed and note it in the report.

See what your site shows in public

Give us the address of a site you run. We fetch it the way a browser would and show what follows from it, together with exactly what we read.

We fetch public pages at the address you give us, we never log in, and we store nothing beyond an anonymous counter of runs.