Fix remaining Markdown line lengths for Codacy compliance

- Break long lines in wiki documentation files
- Improve readability of README.md
- Update PR-DESCRIPTION.md for better formatting
- Fix code-review.md long lines
This commit is contained in:
2025-11-24 21:57:57 +00:00
parent 3b73654202
commit a44826e75e
7 changed files with 73 additions and 23 deletions

View File

@@ -79,13 +79,18 @@ When reviewing code, check for the following:
## Automated Code Review Tools
This project uses several automated code review tools to maintain high code quality standards. These tools are free to use for public repositories and should be integrated into any new repositories based on this template.
This project uses several automated code review tools to maintain high quality standards.
**Important**: Before pushing your code, run the local code quality checks as described in the [Code Quality Checks Workflow](./code-quality-checks.md) to catch issues early.
These tools are free for public repositories and should be integrated into new repositories.
**Important**: Before pushing, run local code quality checks as described in
[Code Quality Checks Workflow](./code-quality-checks.md) to catch issues early.
### 1. CodeRabbit
[CodeRabbit](https://www.coderabbit.ai/) is an AI-powered code review tool that provides automated feedback on pull requests.
[CodeRabbit](https://www.coderabbit.ai/) is an AI-powered code review tool.
It provides automated feedback on pull requests.
* **Integration**: Add the CodeRabbit GitHub App to your repository
* **Benefits**: Provides AI-powered code reviews, identifies potential issues, and suggests improvements
@@ -93,7 +98,9 @@ This project uses several automated code review tools to maintain high code qual
### 2. CodeFactor
[CodeFactor](https://www.codefactor.io/) continuously monitors code quality and provides feedback on code style, complexity, and potential issues.
[CodeFactor](https://www.codefactor.io/) continuously monitors code quality.
It provides feedback on code style, complexity, and potential issues.
* **Integration**: Add the CodeFactor GitHub App to your repository
* **Benefits**: Provides a grade for your codebase, identifies issues, and tracks code quality over time
@@ -101,7 +108,9 @@ This project uses several automated code review tools to maintain high code qual
### 3. Codacy
[Codacy](https://www.codacy.com/) is a code quality tool that provides static analysis, code coverage, and code duplication detection.
[Codacy](https://www.codacy.com/) is a code quality tool.
It provides static analysis, code coverage, and code duplication detection.
* **Integration**: Add the Codacy GitHub App to your repository
* **Benefits**: Provides a grade for your codebase, identifies issues, and tracks code quality over time
@@ -117,7 +126,9 @@ This project uses several automated code review tools to maintain high code qual
### 5. PHP Mess Detector
[PHP Mess Detector](https://phpmd.org/) is a tool that looks for potential problems in your code such as possible bugs, suboptimal code, overcomplicated expressions, and unused parameters, variables, and methods.
[PHP Mess Detector](https://phpmd.org/) looks for potential problems in your code.
It detects bugs, suboptimal code, overcomplicated expressions, and unused code.
* **Integration**: Included in the project's composer.json and GitHub Actions workflow
* **Benefits**: Identifies code smells, complexity issues, unused code, naming problems, and more

View File

@@ -4,7 +4,9 @@ This document explains how to use WordPress Playground for testing our plugin.
## What is WordPress Playground?
[WordPress Playground](https://wordpress.org/playground/) is a project that runs WordPress entirely in the browser using WebAssembly. This means:
[WordPress Playground](https://wordpress.org/playground/) is a project that runs WordPress entirely in the browser.
It uses WebAssembly, which means:
* No server required - WordPress runs in the browser
* Fast startup times
@@ -19,11 +21,15 @@ The easiest way to test our plugin with WordPress Playground is to use the onlin
2. Multisite testing: [Open in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/main/playground/multisite-blueprint.json&_t=2)
These links will automatically set up WordPress with multisite enabled, WP_DEBUG enabled, and both the Plugin Toggle and Kadence Blocks plugins activated.
These links automatically set up WordPress with multisite enabled and WP_DEBUG enabled.
Both the Plugin Toggle and Kadence Blocks plugins are pre-activated.
## WP-CLI Commands for WordPress Playground
WordPress Playground supports WP-CLI commands, which can be used to interact with WordPress programmatically. Here are some useful commands for testing:
WordPress Playground supports WP-CLI commands for programmatic interaction.
Here are some useful commands for testing:
### General Commands
@@ -136,7 +142,9 @@ python -m http.server 8888 --directory playground
### Using wp-now
Alternatively, you can use [wp-now](https://github.com/WordPress/playground-tools/tree/trunk/packages/wp-now), a tool from the WordPress Playground team that makes it easy to run WordPress locally:
Alternatively, you can use [wp-now](https://github.com/WordPress/playground-tools/tree/trunk/packages/wp-now).
This tool from the WordPress Playground team makes it easy to run WordPress locally:
```bash
# Install wp-now globally
@@ -159,11 +167,15 @@ This will start a local WordPress instance with your plugin installed and activa
## Customizing Blueprints
You can customize the blueprints to suit your testing needs. See the [WordPress Playground Blueprints documentation](https://wordpress.github.io/wordpress-playground/blueprints/) for more information.
You can customize the blueprints to suit your testing needs.
See the [WordPress Playground Blueprints documentation](https://wordpress.github.io/wordpress-playground/blueprints/) for details.
## WordPress Playground JavaScript API
WordPress Playground provides a JavaScript API that allows you to programmatically interact with WordPress. This is useful for automated testing and CI/CD integration.
WordPress Playground provides a JavaScript API for programmatic interaction with WordPress.
This is useful for automated testing and CI/CD integration.
### Basic Usage
@@ -236,7 +248,9 @@ describe('Plugin Tests', () => {
## CI/CD Integration
We have a GitHub Actions workflow that uses WordPress Playground for testing. See `.github/workflows/playground-tests.yml` for more information.
We have a GitHub Actions workflow that uses WordPress Playground for testing.
See `.github/workflows/playground-tests.yml` for details.
### Example GitHub Actions Workflow
@@ -281,4 +295,6 @@ jobs:
## Performance Testing
We also use the [WP Performance Tests GitHub Action](https://github.com/marketplace/actions/wp-performance-tests) for performance testing. This action tests our plugin against various WordPress versions and PHP versions to ensure it performs well in different environments.
We also use [WP Performance Tests GitHub Action](https://github.com/marketplace/actions/wp-performance-tests).
This action tests our plugin against various WordPress and PHP versions to ensure good performance.

View File

@@ -4,7 +4,9 @@ This document outlines how to set up and run tests for our plugin in both single
## Overview
Our plugin is designed to work with both standard WordPress installations and WordPress Multisite. This testing framework allows you to verify functionality in both environments.
Our plugin is designed to work with both standard WordPress installations and WordPress Multisite.
This testing framework allows you to verify functionality in both environments.
## Setting Up the Test Environment
@@ -92,7 +94,9 @@ We use `@wordpress/env` and Cypress for testing our plugin.
## Continuous Integration
We use GitHub Actions to automatically run tests on pull requests. The workflow is defined in `.github/workflows/wordpress-tests.yml` and runs tests in both single site and multisite environments.
We use GitHub Actions to automatically run tests on pull requests.
The workflow is defined in `.github/workflows/wordpress-tests.yml` and runs tests in both environments.
## Writing Tests

View File

@@ -138,7 +138,9 @@ The easiest way to test our plugin with WordPress Playground is to use the onlin
2. Multisite testing: [Open in WordPress Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wpallstars/wp-plugin-starter-template-for-ai-coding/main/playground/multisite-blueprint.json&_t=2)
These links will automatically set up WordPress with multisite enabled, WP_DEBUG enabled, and both the Plugin Toggle and Kadence Blocks plugins activated.
These links automatically set up WordPress with multisite enabled and WP_DEBUG enabled.
Both the Plugin Toggle and Kadence Blocks plugins are pre-activated.
#### Local Testing with HTML Files
@@ -206,7 +208,8 @@ We have GitHub Actions workflows for running tests in CI/CD:
### Error Checking and Feedback Loops
For detailed information on how to check for code quality issues and get feedback from automated tools, see the [Error Checking and Feedback Loops](Error-Checking-Feedback-Loops.md) documentation.
For information on code quality issues and automated tool feedback, see the
[Error Checking and Feedback Loops](Error-Checking-Feedback-Loops.md) documentation.
### Debugging

View File

@@ -1,6 +1,10 @@
# Add Comprehensive Testing Framework for Single Site and Multisite
This PR adds a comprehensive testing framework for our WordPress plugin template that allows testing in both single site and multisite WordPress environments. The focus is purely on testing functionality, not on adding any multisite-specific features to the plugin itself.
This PR adds a comprehensive testing framework for our WordPress plugin template.
It allows testing in both single site and multisite WordPress environments.
The focus is purely on testing functionality, not on adding multisite-specific features.
## Changes
@@ -48,4 +52,9 @@ Detailed documentation is available in the [Testing Framework](.wiki/Testing-Fra
## Inspiration
This implementation was inspired by the e2e testing approach mentioned in [wp-multisite-waas issue #55](https://github.com/superdav42/wp-multisite-waas/issues/55), but focuses specifically on testing our plugin in different WordPress environments without adding any of the domain mapping or other multisite-specific functionality from that plugin.
This implementation was inspired by the e2e testing approach in
[wp-multisite-waas issue #55](https://github.com/superdav42/wp-multisite-waas/issues/55).
It focuses on testing our plugin in different WordPress environments.
It does not add domain mapping or other multisite-specific functionality from that plugin.

View File

@@ -229,7 +229,9 @@ Customize the includes/core.php file to implement your core functionality and th
### Is this template compatible with WordPress multisite?
Yes, this template is fully compatible with WordPress multisite installations. We have a comprehensive testing framework that allows you to verify functionality in both single site and multisite environments.
Yes, this template is fully compatible with WordPress multisite installations.
We have a testing framework that allows you to verify functionality in both environments.
You can test multisite compatibility in two ways:
@@ -241,7 +243,8 @@ You can test multisite compatibility in two ways:
npm run setup:multisite
```
For more details on our testing approach, see the [Testing Framework](.wiki/Testing-Framework.md) and [Playground Testing](.wiki/Playground-Testing.md) documentation.
For more details on our testing approach, see the [Testing Framework](.wiki/Testing-Framework.md)
and [Playground Testing](.wiki/Playground-Testing.md) documentation.
## Support & Feedback

View File

@@ -1,6 +1,10 @@
# Multisite Support
This directory contains placeholder files for multisite-specific functionality. When developing a plugin based on this template, you can extend these files or create additional classes in this directory to implement multisite features.
This directory contains placeholder files for multisite-specific functionality.
When developing a plugin based on this template, you can extend these files.
Create additional classes in this directory to implement multisite features.
## Usage