Skip to content

rpnunez/wp-ai-scheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,718 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Post Scheduler

AI Post Scheduler is a WordPress plugin that automates editorial workflows with AI-generated content. It integrates with Meow Apps AI Engine to create, schedule, review, and monitor posts through a WordPress admin interface.

About

This project is designed for teams that want repeatable, auditable content automation inside WordPress. The plugin supports both template-driven generation and author/topic workflows, with history tracking and scheduled execution via WordPress cron.

Core goals:

  • Reduce manual work in content planning and drafting.
  • Keep AI generation configurable through reusable admin tools.
  • Preserve visibility with logs, review flows, and system status checks.

Features

  • Template-based post generation with reusable prompt variables.
  • Voice and article-structure management for consistent output.
  • AI-assisted topic research and scoring.
  • Flexible scheduling for automated generation workflows.
  • Author and topic pipelines for persona-driven content.
  • Generated-post review and component regeneration tools.
  • History logging and observability for AI calls and lifecycle events.
  • Admin notifications and system-status tooling.

Dependencies

Runtime dependencies:

  • WordPress.
  • Meow Apps AI Engine plugin (required for generation).

Development dependencies:

  • Composer.
  • PHPUnit.
  • Docker (recommended for local development).

Requirements

  • PHP 8.2+
  • WordPress 5.8+
  • MySQL/MariaDB

Project Structure

The plugin code lives in ai-post-scheduler/.

ai-post-scheduler/
├── ai-post-scheduler.php    # Plugin bootstrap
├── includes/                # Core PHP classes (controllers, services, repositories)
├── templates/               # Admin templates
├── assets/                  # Admin CSS/JS
├── tests/                   # PHPUnit tests
└── readme.txt               # WordPress plugin readme

Development

Quick Start (Docker, Recommended)

Requires Bash — run from Git Bash, WSL2, or a Mac/Linux terminal.

./start-dev.sh

This provisions WordPress, database services, plugin activation, and debugging support.

Local URLs:

See docs/DEV.md for full setup details and docs/DEV_HANDBOOK.md for a quick-reference card.

Daily Workflow

# Start services
make up

# Follow logs
make logs

# Open a shell in the app container
make shell

# Stop services
make down

Manual/Non-Docker Setup

Debugging (VS Code)

  1. Start the Docker environment.
  2. Press F5 in VS Code.
  3. Select Listen for Xdebug (Docker).

Testing

Run test commands from ai-post-scheduler/:

cd ai-post-scheduler

# Full test suite
composer test

# Verbose output
composer test:verbose

# Coverage
composer test:coverage

# Single test file
vendor/bin/phpunit tests/test-template-processor.php

Canonical Docker-backed workflow:

bash scripts/run-wp-tests-docker.sh
bash scripts/run-wp-tests-docker.sh coverage

For agent-session PHPUnit bootstrap behavior and troubleshooting, see TESTING.md.

Performance Benchmarks

The project includes performance benchmarking to detect regressions:

cd ai-post-scheduler

# Run performance benchmark
php bin/benchmark.php --wp-core-dir=/tmp/wordpress

# Run with baseline comparison
php bin/benchmark.php \
  --wp-core-dir=/tmp/wordpress \
  --baseline-file=../.github/performance-baseline.json \
  --fail-on-regression

Performance benchmarks run automatically in CI on pull requests and fail PRs when thresholds are exceeded. See docs/PERFORMANCE.md for details.

Documentation

Contributing

  1. Create a branch.
  2. Make focused changes.
  3. Run tests.
  4. Open a pull request.

License

GPLv2 or later.

About

Automated Post Writer

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors