wp-testing-core
Core WordPress testing procedures and patterns for browser-based plugin testing. Use when testing WordPress plugins, logging into WordPress admin, verifying plugin activation, or navigating WordPress UI.
Install
mkdir -p .claude/skills/wp-testing-core && curl -L -o skill.zip "https://mcp.directory/api/skills/download/282" && unzip -o skill.zip -d .claude/skills/wp-testing-core && rm skill.zipInstalls to .claude/skills/wp-testing-core
About this skill
WordPress Testing Core Procedures
This Skill provides foundational WordPress testing knowledge and procedures for browser automation testing.
WordPress Login Procedure
Standard WordPress Admin Login
URL Pattern: http://localhost:8082/wp-admin (or your WordPress URL + /wp-admin)
Steps:
- Navigate to WordPress admin URL
- Take snapshot to see login form state
- Locate username field (usually ID:
user_login) - Locate password field (usually ID:
user_pass) - Fill username: "admin"
- Fill password: "password"
- Click submit button (ID:
wp-submit) - Wait for dashboard to load
- Verify successful login (look for "Dashboard" in page title or admin bar)
Example Chrome DevTools Flow:
1. navigate_page(url: "http://localhost:8082/wp-admin")
2. take_snapshot() - Verify login form is visible
3. fill(uid: "username-field-uid", value: "admin")
4. fill(uid: "password-field-uid", value: "password")
5. click(uid: "submit-button-uid")
6. wait_for(text: "Dashboard")
7. take_snapshot() - Confirm admin dashboard loaded
Common Issues:
- If WordPress installation screen appears instead of login, WordPress needs setup
- If "Site Health" warnings appear, they can usually be ignored for testing
- If login fails, verify credentials in test.sh script or wp-config.php
Plugin Activation Verification
Via test.sh Script (Recommended for Setup)
Check plugin status:
cd /Users/mikkelfreltoftkrogsholm/Projekter/wp-plugins && ./test.sh plugins
Activate plugin:
cd /Users/mikkelfreltoftkrogsholm/Projekter/wp-plugins && ./test.sh activate [plugin-slug]
Deactivate plugin:
cd /Users/mikkelfreltoftkrogsholm/Projekter/wp-plugins && ./test.sh deactivate [plugin-slug]
Via Browser UI (For Verification)
URL: http://localhost:8082/wp-admin/plugins.php
Steps:
- Navigate to Plugins page
- Take snapshot to see plugin list
- Verify plugin appears in list
- Check if "Activate" or "Deactivate" link is present
- If showing "Activate", plugin is inactive
- If showing "Deactivate", plugin is active
Visual Indicators:
- Active plugins have white/light background
- Inactive plugins have grey background
- Recently activated plugins show notification banner
WordPress Admin Navigation Patterns
Admin Menu Structure
Common Menu Items:
- Dashboard (dashboard)
- Posts (edit.php)
- Media (upload.php)
- Pages (edit.php?post_type=page)
- Comments (edit-comments.php)
- Appearance (themes.php)
- Plugins (plugins.php)
- Users (users.php)
- Tools (tools.php)
- Settings (options-general.php)
Plugin Custom Menus: Plugins typically add menu items in two ways:
- Top-level menu (appears in main sidebar)
- Submenu under existing menu (e.g., under Settings)
URL Pattern for Plugin Pages:
/wp-admin/admin.php?page=[plugin-slug]
/wp-admin/admin.php?page=[plugin-slug]-settings
Settings Pages
Common Settings Submenus:
- General (options-general.php)
- Writing (options-writing.php)
- Reading (options-reading.php)
- Discussion (options-discussion.php)
- Media (options-media.php)
- Permalinks (options-permalink.php)
- Plugin settings often appear here
Testing Settings Pages:
- Navigate to Settings menu
- Click plugin's settings submenu
- Verify page loads without errors
- Check for proper nonce fields in forms
- Test save functionality (if needed)
WordPress Frontend Patterns
Post/Page Structure
Single Post URL Pattern:
http://localhost:8082/[post-slug]/
http://localhost:8082/?p=[post-id]
Archive/List Pages:
http://localhost:8082/blog/
http://localhost:8082/category/[category-slug]/
Testing Frontend Features:
- Create test post/page (or use existing)
- Navigate to post URL
- Take snapshot to see post content
- Verify plugin elements appear (buttons, widgets, etc.)
- Check console for JavaScript errors
- Test interactions (click buttons, etc.)
Creating Test Content
Via WP-CLI (Fastest):
cd /Users/mikkelfreltoftkrogsholm/Projekter/wp-plugins && ./test.sh wp post create --post_title="Test Post" --post_content="Test content for plugin testing" --post_status=publish
Via Browser:
- Navigate to Posts > Add New
- Enter title and content
- Click Publish button
- Note the post URL for testing
REST API Testing
WordPress REST API Patterns
Base URL: http://localhost:8082/wp-json/
Common Endpoints:
- Core API:
/wp-json/wp/v2/ - Plugin custom endpoints:
/wp-json/{namespace}/v1/
Testing REST Endpoints:
Method 1: Using evaluate_script (In Browser)
async () => {
const response = await fetch('/wp-json/seo-llm/v1/content/1/markdown');
const data = await response.json();
return {
status: response.status,
ok: response.ok,
data: data
};
}
Method 2: Using Bash (Command Line)
curl -s http://localhost:8082/wp-json/seo-llm/v1/content/1/markdown
What to Verify:
- Response status code (200, 404, 401, etc.)
- Response content-type (application/json)
- JSON structure matches expectations
- Error responses have proper format
- Authentication works (if required)
REST API Authentication
Public Endpoints:
- No authentication needed
- Test directly with fetch or curl
Protected Endpoints:
- May require nonce, cookie, or token
- If testing from logged-in browser, cookies should work
- Check plugin documentation for auth requirements
Console Error Checking
Monitoring JavaScript Errors
Get all console messages:
list_console_messages(types: ["error", "warn", "log"])
Filter to errors only:
list_console_messages(types: ["error"])
Common WordPress Console Errors:
- "jQuery is not defined" - jQuery loading issue
- "Uncaught ReferenceError" - Missing JavaScript dependency
- "404 for .js file" - Asset not enqueued or wrong path
- "Uncaught TypeError: Cannot read property" - JavaScript logic error
When to Worry:
- Critical errors preventing functionality
- 404s for plugin assets
- Security warnings
- Multiple repeated errors
When to Ignore:
- Browser extension errors
- Third-party tracking script issues
- Deprecated warnings (if plugin still works)
Network Request Analysis
Checking Asset Loading
List all network requests:
list_network_requests()
Filter to specific resource types:
list_network_requests(resourceTypes: ["script", "stylesheet"])
Common Resource Types:
- script - JavaScript files
- stylesheet - CSS files
- xhr - AJAX requests
- fetch - Fetch API requests
- document - HTML pages
What to Check:
- Plugin assets loaded successfully (200 status)
- No 404s for plugin files
- AJAX requests return expected data
- No excessive requests (performance issue)
Analyzing Failed Requests
Get specific request details:
get_network_request(reqid: [request-id])
Common Failure Patterns:
- 404 Not Found - File doesn't exist or wrong path
- 500 Internal Server Error - PHP error in plugin
- 403 Forbidden - Permission issue
- 0 status - Request blocked or CORS issue
Browser Automation Best Practices
Taking Snapshots
Always snapshot before interactions:
take_snapshot() - See what's on page now
fill(uid: "field-uid", value: "test")
click(uid: "button-uid")
take_snapshot() - See result of interaction
Use verbose mode for debugging:
take_snapshot(verbose: true) - Shows detailed element tree
Save snapshots for documentation:
take_snapshot(filePath: "/path/to/snapshot.txt")
Waiting for Dynamic Content
Wait for specific text to appear:
wait_for(text: "Success", timeout: 5000)
Common wait scenarios:
- After form submission (wait for success message)
- After AJAX request (wait for content to appear)
- After page navigation (wait for new page to load)
Handling Timeouts
Increase timeout for slow operations:
navigate_page(url: "...", timeout: 30000) - 30 seconds
When to use longer timeouts:
- WordPress admin pages can be slow
- First load after Docker start takes longer
- Pages with lots of plugins loading
Common WordPress Testing Patterns
Pattern 1: Verify Admin Menu Item
1. Login to WordPress admin
2. Take snapshot of admin sidebar
3. Look for plugin menu item text
4. Verify menu item is present
5. Click menu item
6. Verify settings page loads
Pattern 2: Test Frontend Button
1. Navigate to published post
2. Take snapshot to see post content
3. Locate plugin button (by text or ID)
4. Take screenshot of button for documentation
5. Click button
6. Verify expected action (modal opens, etc.)
7. Check console for errors
Pattern 3: Test Settings Form
1. Navigate to plugin settings page
2. Take snapshot of form
3. Verify all fields render correctly
4. Fill form fields with test data
5. Click Save button
6. Wait for success message
7. Verify settings were saved (reload page and check)
Pattern 4: Test REST API Endpoint
1. Use evaluate_script to call endpoint
2. Verify response status code
3. Check response data structure
4. Test error cases (invalid ID, etc.)
5. Verify authentication (if required)
WordPress-Specific Element Patterns
Common Element Selectors
Admin Elements:
- Admin bar: ID
wpadminbar - Main menu: ID
adminmenu - Content area: ID
wpbody-content - Submit buttons: class
button-primary - Form tables: class
form-table
Frontend Elements:
- Post content: class
entry-content - Post title: class
entry-title - Comments: ID
comments - Sidebar: ID
secondaryor classsidebar
Forms:
- Nonce fields: input with name ending in
_wpnonce - Submit buttons: type
submit - Settings: wrapped in
<table class="form-table">
Debugging WordPress Issues
Check WordPress Debug Log
cd /Users/mikkelfreltoftkrogsholm/Projekter/wp-plugins && ./test.sh debug
Common PHP Errors:
- F
Content truncated.
You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
pdf-to-markdown
aliceisjustplaying
Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.
Related MCP Servers
Browse all serversTest website accessibility and ensure WCAG compliance with Axe Accessibility, a web accessibility checker with detailed
Search and monitor WordPress.org Trac tickets across Core, Plugins, Themes, Meta, bbPress, BuddyPress & GlotPress — view
Scorecard: Evaluate and optimize LLM systems with thorough testing, actionable metrics, and performance insights to impr
Enhance software testing with Playwright MCP: Fast, reliable browser automation, an innovative alternative to Selenium s
Advanced MCP server enabling AI agents to autonomously run 150+ security and penetration testing tools. Covers reconnais
Supercharge browser tasks with Browser MCP—AI-driven, local browser automation for powerful, private testing. Inspired b
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.