{"id":30761684,"url":"https://github.com/vapvarun/wp-testing-framework","last_synced_at":"2026-05-03T10:32:38.999Z","repository":{"id":312376454,"uuid":"1043106859","full_name":"vapvarun/wp-testing-framework","owner":"vapvarun","description":"Universal WordPress Testing Framework - Test any plugin or theme","archived":false,"fork":false,"pushed_at":"2025-09-12T16:57:45.000Z","size":8781,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-12T18:43:53.332Z","etag":null,"topics":["automation","e2e-testing","phpunit","playwright","testing","unit-testing","wordpress","wordpress-plugin","wordpress-theme"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vapvarun.png","metadata":{"files":{"readme":"README-WINDOWS.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-23T06:39:22.000Z","updated_at":"2025-09-12T16:57:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"438740aa-e963-43c0-9492-53d14dcf3c8a","html_url":"https://github.com/vapvarun/wp-testing-framework","commit_stats":null,"previous_names":["vapvarun/wp-testing-framework"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vapvarun/wp-testing-framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapvarun%2Fwp-testing-framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapvarun%2Fwp-testing-framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapvarun%2Fwp-testing-framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapvarun%2Fwp-testing-framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vapvarun","download_url":"https://codeload.github.com/vapvarun/wp-testing-framework/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapvarun%2Fwp-testing-framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32566444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","e2e-testing","phpunit","playwright","testing","unit-testing","wordpress","wordpress-plugin","wordpress-theme"],"created_at":"2025-09-04T15:00:45.494Z","updated_at":"2026-05-03T10:32:38.993Z","avatar_url":"https://github.com/vapvarun.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WP Testing Framework - Windows Edition\nVersion 13.0 - Now with WordPress Plugin Check Integration!\n\n## 🚀 Quick Start for Windows Users\n\n### Prerequisites\n- Windows 10/11 with PowerShell 5.0+\n- PHP 7.4+ installed and in PATH\n- WordPress installation (Local WP, XAMPP, WAMP, etc.)\n- WP-CLI installed ([Download here](https://wp-cli.org/))\n\n### Optional but Recommended\n- Node.js 14+ for advanced analysis\n- Composer for dependency management\n- Git for version control\n\n## 📦 Installation\n\n### Method 1: Using Batch Files (Easiest)\n\n1. **Initial Setup:**\n   ```batch\n   setup.bat\n   ```\n\n2. **Install Plugin Check:**\n   ```batch\n   setup-plugin-check.bat\n   ```\n\n3. **Test a Plugin:**\n   ```batch\n   test-plugin.bat woocommerce\n   ```\n\n### Method 2: Using PowerShell\n\n1. **Open PowerShell as Administrator**\n\n2. **Set Execution Policy (if needed):**\n   ```powershell\n   Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser\n   ```\n\n3. **Run Setup:**\n   ```powershell\n   .\\setup.ps1\n   ```\n\n4. **Install Plugin Check:**\n   ```powershell\n   .\\tools\\setup-plugin-check.ps1\n   ```\n\n5. **Test a Plugin:**\n   ```powershell\n   .\\test-plugin.ps1 -PluginName \"woocommerce\"\n   ```\n\n## 🎯 Framework Phases (v13.0)\n\nThe framework now includes 13 comprehensive phases:\n\n1. **Setup \u0026 Directory Structure** - Environment preparation\n2. **Plugin Detection** - Extract plugin features and structure\n3. **Plugin Check Analysis** 🆕 - WordPress standards compliance\n4. **AI Analysis** - Uses Plugin Check data for smarter insights\n5. **Security Scan** - Vulnerability detection\n6. **Performance Analysis** - Speed and optimization checks\n7. **Test Generation** - Create PHPUnit tests\n8. **Visual Testing** - Screenshot capture and comparison\n9. **Integration Tests** - WordPress integration validation\n10. **Documentation** - Generate comprehensive docs\n11. **Consolidation** - Merge all reports\n12. **Live Testing** - Test with real data\n13. **Safekeeping** - Archive results\n\n## 🔧 Testing Modes\n\n### Full Analysis (Default)\n```batch\ntest-plugin.bat buddypress\n```\n\n### Quick Mode (Skip heavy phases)\n```batch\ntest-plugin.bat elementor quick\n```\n\n### Security Focus\n```batch\ntest-plugin.bat wordfence security\n```\n\n### Performance Focus\n```batch\ntest-plugin.bat w3-total-cache performance\n```\n\n## 📊 What's New in v13.0\n\n### WordPress Plugin Check Integration\n- **Phase 3** now runs WordPress Plugin Check analysis\n- Detects WordPress.org submission blockers\n- Identifies security and performance issues per WP standards\n- Results feed into AI analysis for smarter recommendations\n\n### Enhanced AI Analysis\n- AI now uses Plugin Check data for context\n- Prioritizes WordPress standards violations\n- Provides line-by-line fix recommendations\n\n### Windows Optimizations\n- Full PowerShell module support\n- Batch file launchers for ease of use\n- Windows-compatible path handling\n- Proper error handling for Windows environments\n\n## 🛠️ Troubleshooting\n\n### PowerShell Execution Policy Error\n```powershell\n# Run this command:\nSet-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process\n```\n\n### WP-CLI Not Found\n1. Download WP-CLI from https://wp-cli.org/\n2. Add to Windows PATH\n3. Restart terminal\n\n### PHP Not Found\n1. Install PHP from https://windows.php.net/download/\n2. Add PHP to Windows PATH:\n   - Right-click \"This PC\" → Properties\n   - Advanced system settings → Environment Variables\n   - Add PHP folder to PATH\n3. Restart terminal\n\n### Plugin Check Not Working\n```batch\n# Reinstall Plugin Check:\nwp plugin uninstall plugin-check --deactivate\nsetup-plugin-check.bat\n```\n\n## 📁 Output Location\n\nResults are saved to:\n```\nwp-content/uploads/wbcom-scan/\u003cplugin-name\u003e/\u003cyear-month\u003e/\n```\n\nKey files:\n- `plugin-check/` - WordPress standards compliance reports\n- `reports/` - Consolidated analysis reports\n- `analysis-requests/` - Claude/ChatGPT prompts\n- `generated-tests/` - PHPUnit test files\n\n## 🔍 Using Plugin Check Results\n\n### View Plugin Check Report\n```batch\n# Navigate to results folder\ncd wp-content\\uploads\\wbcom-scan\\\u003cplugin-name\u003e\\\u003cdate\u003e\\plugin-check\n\n# View the insights report\ntype plugin-check-insights.md\n```\n\n### Understanding Results\n- **Errors (Red)**: Must fix before WordPress.org submission\n- **Warnings (Yellow)**: Should fix for better quality\n- **Info (Blue)**: Best practice suggestions\n\n## 💡 Tips for Windows Users\n\n1. **Use Local WP**: Best WordPress development environment for Windows\n2. **Install Git Bash**: Provides Unix-like commands on Windows\n3. **Use VSCode**: Excellent editor with terminal integration\n4. **Enable WSL2**: Run Linux tools natively on Windows\n\n## 🐛 Common Issues\n\n### \"Access Denied\" Errors\n- Run as Administrator\n- Check file permissions\n- Disable antivirus temporarily\n\n### Path Too Long Errors\n- Enable long paths in Windows:\n  ```batch\n  reg add HKLM\\SYSTEM\\CurrentControlSet\\Control\\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1\n  ```\n\n### Composer/NPM Issues\n- Use Windows-specific installers\n- Run in Administrator mode\n- Check proxy settings if behind firewall\n\n## 📚 Additional Resources\n\n- [WP-CLI Handbook](https://make.wordpress.org/cli/handbook/)\n- [WordPress Plugin Check](https://wordpress.org/plugins/plugin-check/)\n- [WordPress Coding Standards](https://developer.wordpress.org/coding-standards/)\n- [PowerShell Documentation](https://docs.microsoft.com/powershell/)\n\n## 🤝 Support\n\nFor issues specific to Windows:\n1. Check this README first\n2. Review error messages carefully\n3. Try running as Administrator\n4. Report issues with Windows tag\n\n## 📝 Version History\n\n- **v13.0** - Added Plugin Check integration, improved Windows support\n- **v12.0** - Previous stable version\n- **v11.0** - Added AI analysis features\n\n---\n\n**Note**: This framework is optimized for WordPress plugin development on Windows. For best results, ensure all prerequisites are properly installed and configured.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvapvarun%2Fwp-testing-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvapvarun%2Fwp-testing-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvapvarun%2Fwp-testing-framework/lists"}