From wordpress-expert
Reviews WordPress architecture patterns for themes, plugins, data models, and integrations. Useful for evaluating custom theme/plugin structure, data choices, and integration design.
npx claudepluginhub dr-robert-li/cowork-wordpress-expertThis skill uses the workspace's default tool permissions.
- Child theme properly configured (if extending a parent theme)
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
functions.php not bloated — heavy logic moved to includes/classesadd_theme_support()) appropriatedbDelta() and proper versioningdbDelta() for creation and updateswp_remote_get(), wp_remote_post())wp_mail() with proper hooks for SMTP configuration// Good: Using wp_remote_get with timeout and error handling
$response = wp_remote_get( 'https://api.example.com/data', [
'timeout' => 15,
'headers' => [
'Authorization' => 'Bearer ' . get_option('api_key')
]
] );
if ( is_wp_error( $response ) ) {
error_log( 'API request failed: ' . $response->get_error_message() );
return false;
}
$body = wp_remote_retrieve_body( $response );
$data = json_decode( $body );
// Cache the result
set_transient( 'api_data_cache', $data, HOUR_IN_SECONDS );
# Verify core files against official checksums
wp core verify-checksums
# Check WordPress version
wp core version
# List all plugins with version and status
wp plugin list --format=csv
# Verify plugin checksums (for plugins from wordpress.org)
wp plugin verify-checksums --all
# List all scheduled cron events
wp cron event list
# List cron schedules
wp cron schedule list
# Run overdue cron events
wp cron event run --due-now
# Optimize database tables
wp db optimize
# Repair database tables
wp db repair
# Check database size
wp db size --tables
# Export database
wp db export
# Delete expired transients
wp transient delete --expired
# Delete all transients (nuclear option)
wp transient delete --all
# List transients
wp transient list
# Flush rewrite rules
wp rewrite flush
# List all rewrite rules
wp rewrite list
# Check rewrite structure
wp rewrite structure
# Check autoloaded options size (performance impact)
wp db query "SELECT option_name, LENGTH(option_value) as size FROM wp_options WHERE autoload='yes' ORDER BY size DESC LIMIT 20;"
# Count orphaned transients
wp db query "SELECT COUNT(*) FROM wp_postmeta WHERE meta_key LIKE '_transient_%';"
# Count post revisions
wp db query "SELECT COUNT(*) FROM wp_posts WHERE post_type='revision';"
# Find large post meta entries
wp db query "SELECT post_id, meta_key, LENGTH(meta_value) as size FROM wp_postmeta ORDER BY size DESC LIMIT 20;"