WordPress Standards#2
Closed
jasperf wants to merge 24 commits into
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a comprehensive setup for the "Banner Iframe Plugin," including CI workflows, development tools, WordPress.org deployment scripts, and improved code quality and testing. Below are the most important changes grouped by theme:
CI and Development Environment Setup
.github/workflows/ci.ymlfor running tests across multiple PHP and WordPress versions, including steps for setting up dependencies and running PHPCS and PHPUnit.composer.jsonfor dependency management, including development tools like PHPCS, PHPUnit, and WordPress Coding Standards. Added custom scripts for code quality checks and testing.phpcs.xml.distto define WordPress coding standards for the project.phpunit.xmland a PHPUnit bootstrap file (tests/bootstrap.php) to enable unit testing for the plugin. [1] [2]WordPress.org Plugin Preparation
deploy.phpscript to automate preparing the plugin for deployment to the WordPress.org Plugin Directory.assets/README.mdto document required and optional assets for the WordPress.org plugin page.readme.txtfor the WordPress.org plugin repository, including plugin metadata, installation instructions, and changelog.Code Quality and Refactoring
includes/class-banner-iframe-settings.phpandincludes/class-banner-iframe.phpto improve readability and adhere to coding standards. [1] [2] [3]Testing
tests/test-banner-iframe.phpto verify the plugin's initialization.Additional Enhancements
package.jsonto manage JavaScript dependencies and scripts for linting and testing.README.mdfile to include development setup instructions and tools.