WordPress Quality Control & Assurance 3 — Questions and Answers
Question 1: Which tool is specifically designed to detect accessibility issues in WordPress themes during QA?
- Query Monitor
- WP Accessibility Checker (Correct answer)
- Debug Bar
- Health Check & Troubleshooting
Correct answer: WP Accessibility Checker
WP Accessibility Checker scans pages for WCAG and accessibility issues directly within the WordPress admin.
Question 2: A client reports a white screen of death after a plugin update. What is the fastest QA step to isolate the cause?
- Restore a database backup
- Rename the plugin folder via FTP to deactivate it (Correct answer)
- Reinstall WordPress core files
- Clear the object cache
Correct answer: Rename the plugin folder via FTP to deactivate it
Renaming a plugin's folder via FTP forces WordPress to deactivate it without needing admin access, quickly isolating the conflict.
Question 3: Which WordPress coding standard tool is recommended for automated PHP code quality checks before committing?
- ESLint
- PHP_CodeSniffer with WordPress-Coding-Standards ruleset (Correct answer)
- PHPStan only
- Psalm
Correct answer: PHP_CodeSniffer with WordPress-Coding-Standards ruleset
PHP_CodeSniffer with the WordPress Coding Standards ruleset enforces WordPress-specific coding conventions automatically.
Question 4: What is the role of the wp_schedule_event() function in a quality assurance testing scenario?
- It schedules unit test runs via WP-CLI
- It sets up recurring cron tasks whose execution can be verified in tests (Correct answer)
- It logs scheduled hook failures to debug.log
- It registers REST API endpoints on a schedule
Correct answer: It sets up recurring cron tasks whose execution can be verified in tests
wp_schedule_event() registers recurring cron events, and QA tests can verify these hooks fire at the correct intervals.
Question 5: During load testing a WordPress site, which metric most directly indicates database bottleneck?
- Time to First Byte (TTFB) spikes with high query count (Correct answer)
- Increased JavaScript bundle size
- HTTP 429 responses from the server
- High CSS render-blocking score
Correct answer: Time to First Byte (TTFB) spikes with high query count
TTFB spikes correlated with high SQL query counts point to database processing as the primary bottleneck.
Question 6: Which WP-CLI command verifies the integrity of WordPress core files against official checksums?
- wp core verify-checksums (Correct answer)
- wp core check-update
- wp core validate
- wp core integrity-check
Correct answer: wp core verify-checksums
wp core verify-checksums downloads official checksums and compares them against local core files to detect tampering.
Question 7: In WordPress QA, what does the 'Health Check & Troubleshooting' plugin's 'Troubleshooting Mode' do?
- Disables all plugins for all users site-wide
- Disables plugins and switches themes only for the logged-in tester (Correct answer)
- Enables error logging to a remote endpoint
- Forces WordPress into maintenance mode
Correct answer: Disables plugins and switches themes only for the logged-in tester
Troubleshooting Mode deactivates plugins and switches to a default theme only for the logged-in user, leaving the live site unaffected.
Which tool is specifically designed to detect accessibility issues in WordPress themes during QA?