{"id":15707093,"url":"https://github.com/bgrgicak/playground-tester","last_synced_at":"2025-05-12T19:26:56.145Z","repository":{"id":256381550,"uuid":"855074930","full_name":"bgrgicak/playground-tester","owner":"bgrgicak","description":"Check if plugins from WordPress.org are compatible with WordPress Playground. ","archived":false,"fork":false,"pushed_at":"2025-04-11T13:03:00.000Z","size":18108,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T14:13:30.180Z","etag":null,"topics":["wordpress-playground"],"latest_commit_sha":null,"homepage":"https://wordpress.org/playground/","language":"Shell","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/bgrgicak.png","metadata":{"files":{"readme":"README.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}},"created_at":"2024-09-10T09:04:19.000Z","updated_at":"2025-04-11T13:03:04.000Z","dependencies_parsed_at":"2024-10-16T21:50:25.777Z","dependency_job_id":"ea50e92c-8bea-4b47-971b-ef84ecf51db9","html_url":"https://github.com/bgrgicak/playground-tester","commit_stats":null,"previous_names":["bgrgicak/playground-tester"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgrgicak%2Fplayground-tester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgrgicak%2Fplayground-tester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgrgicak%2Fplayground-tester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgrgicak%2Fplayground-tester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bgrgicak","download_url":"https://codeload.github.com/bgrgicak/playground-tester/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253807410,"owners_count":21967360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["wordpress-playground"],"created_at":"2024-10-03T20:36:28.628Z","updated_at":"2025-05-12T19:26:56.135Z","avatar_url":"https://github.com/bgrgicak.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playground compatibility tester\n\n\u003e **Warning**\n\u003e This project is in development and tests are currently not running automatically.\n\nThis project tests if plugins and themes from WordPress.org are compatible with WordPress Playground.\n\nIf you are a plugin or theme developer you can find logs for your project in the `data/logs/(plugin|theme)/[first-letter]/[slug]` folder.\n\nYou can find how the error rate is changing over time in the [Playground Error Report](data/reports/playground_stats.md).\nTo see the exact errors generated Playground tests, check out [SQL Errors Report](data/reports/sql-errors.md) and [PHP Errors Report](data/reports/php-errors.md).\n\n## Overview\n\n- `update-available-themes-and-plugins.sh` - Updates the list of plugins and themes (soon) to test. The update runs daily.\n- `run-batch.sh` - Tests a batch of items that haven't been tested for the longest time. It runs continuously.\n   - `run-tests.sh` - Tests a single item and can run multiple tests.\n      - `generate-blueprint.sh` - Builds a base blueprint for the item.\n      - Test script are located in `tests/[test-name].sh`.\n      - Raw results are stored in `data/logs/(plugin|theme)/[slug]/[test-name]/error.log`.\n      - Parsed results are stored in `data/logs/(plugin|theme)/[slug]/[test-name]/error.json`.\n      - (Soon) A report for the plugin/theme is generated in `data/logs/(plugin|theme)/[slug]/[test-name]/report.md`.\n      - After every test run new logs are pushed to git.\n   - (Soon) `parser.sh` - Parses the logs and extracts errors. It runs at the end of `run-tests.sh`.\n- (Soon) `reporter.sh` - Generates a report from the logs. It runs daily and uses the current state of the logs.\n\n\n## Dependencies\n\n- Bash shell (available by default on most Unix-based systems, including Linux and macOS)\n- [`git`](https://git-scm.com/) version control system\n- [`jq`](https://stedolan.github.io/jq/): command-line JSON processor\n- [`node`](https://nodejs.org/en): JavaScript runtime\n- [`nvm`](https://github.com/nvm-sh/nvm): Node Version Manager\n\n## Installation\n\n1. Clone the repository:\n   ```\n   git clone --recurse-submodules --shallow-submodules https://github.com/bgrgicak/playground-tester.git\n   ```\n2. Install dependencies:\n   ```\n   ./scripts/install-dependencies.sh\n   ```\n3. Install Node.js dependencies:\n   ```\n   npm install\n   ```\n\n## Running scripts\n\n### Update available themes and plugins\n\n```\n./scripts/update-available-themes-and-plugins.sh\n```\n\n### Run a batch of tests\n\n#### Plugins\n\n```\n./scripts/run-batch.sh --batch-size 100 --plugins\n```\n\n#### Themes\n\n```\n./scripts/run-batch.sh --batch-size 100 --themes\n```\n\n#### Run in a loop\n\n```\nwhile sleep 2; do ./scripts/run-batch.sh --plugins --batch-size 100; done\n```\n\n### Generate reports\n\n```\n./scripts/generate-reports.sh\n```\n\n### Run unit tests\n\n```\n./scripts/unit-tests/test.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgrgicak%2Fplayground-tester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbgrgicak%2Fplayground-tester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgrgicak%2Fplayground-tester/lists"}