1 December 2026 Security & Webdev Read time: approx. 4 min

WordPress / PHP Website or Store Security Audit – What to Check?

Business websites, blogs, and online stores built on PHP and WordPress are prime targets for automated scanners and opportunistic attacks. In practice, compromises rarely rely on exotic zero-day exploits—most often they start with an outdated component, an abandoned plugin, overly permissive file permissions, or a flaw in application logic. For an e-commerce store, customer records, orders, and payment flows raise the stakes even higher.

A security review does not need to take weeks to make a real difference. A focused audit helps uncover high-impact gaps quickly, prioritize fixes sensibly, and close the entry points most commonly used to hijack admin panels, inject malicious code, or exfiltrate data.

1. Updates, Plugins, Themes, and Dependencies

Both in WordPress and in custom PHP applications (or libraries/packages), unpatched code is one of the easiest ways in:

  • Core, themes, and plugins (WordPress): apply updates consistently, and remove unused plugins or themes—even an inactive plugin can contain vulnerable files or exposed endpoints.
  • PHP dependencies and third-party scripts: audit composer/vendor packages, external scripts, and integrations (payment gateways, analytics, forms) to eliminate outdated or unnecessary components.
  • Server stack (PHP, web server, database): stay on a supported PHP version, review php.ini settings, and avoid exposing unnecessary version banners or enabling risky functions where not needed.

2. Access Control, Authentication, and Admin Areas

Compromising an administrator account—or hosting/FTP/database credentials—gives an attacker broad control over content, redirects, and stored data:

  • Strong passwords and 2FA/MFA: enforce strong, unique passwords and two-factor/multi-factor authentication for admin and editor accounts, as well as hosting, SFTP/SSH, and database panels.
  • Account and role cleanup: remove accounts belonging to former team members or contractors and follow least privilege—not every user needs full administrative rights.
  • Brute-force and abuse protection: rate-limit login attempts, protect login, registration, and checkout/contact forms against automated abuse, and monitor failed authentication attempts.

3. PHP Code, Inputs, Database, and File Uploads

In custom PHP code and extensions, how you handle untrusted input, database queries, and uploaded files is critical:

  • SQL Injection and XSS: use parameterized queries / prepared statements (such as PDO or MySQLi) instead of concatenating variables into SQL strings, and properly escape output in HTML/templates.
  • CSRF, authorization, and path safety: protect state-changing forms and actions against CSRF, verify permissions server-side on every action (not just hiding UI buttons), and guard against path traversal or file inclusion issues.
  • File uploads and permissions: validate uploaded file types/extensions strictly, prevent script execution inside upload directories, and keep file/directory permissions sensible rather than defaulting to overly open permissions like 777.

4. Transport Security, Server Config, and Backups

Application security also depends on how the web layer is configured and how cleanly you can recover if something goes wrong:

  • HTTPS and security headers: enforce TLS across the site, redirect HTTP to HTTPS, keep certificates valid, and configure sensible security headers (such as X-Content-Type-Options, clickjacking protection, Referrer-Policy, and a tailored Content-Security-Policy).
  • Hiding sensitive files and configs: block public web access to configuration files, database dumps, version-control metadata, or logs, and review .htaccess or web server rules carefully.
  • Backups and file integrity awareness: keep regular backups of files and databases isolated from routine compromise, and monitor unexpected file changes in web directories so tampering is spotted early.

How to Prioritize Without Getting Overwhelmed

Group findings into critical (exploitable code flaws, vulnerable plugins, missing 2FA on admin accounts, exposed config files or database dumps), important (stale accounts/roles, HTTP security headers, rate limiting, upload hardening), and ongoing improvements (regular reviews, automated checks, incremental hardening).

A security audit is not a one-time checkbox. On WordPress and PHP projects, treat it like routine technical maintenance: review core items periodically and check what changed whenever you deploy new code, plugins, or integrations.

Need help with technical documentation, infrastructure or security?

If you want to organize your IT documentation, run a security audit or need engineering support, feel free to get in touch.

Contact me