AI SEO Content Generator
A WordPress plugin to generate SEO-optimized content using Google Gemini or DeepSeek API in WordPress 6.8 Gutenberg editor, with SEO guidance, caching, and content history.
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/dnduy/ai-seo-content-generator/archive/refs/heads/main.zipA powerful WordPress plugin that generates SEO-optimized content using Google Gemini or DeepSeek API in WordPress Gutenberg editor.
🚀 Features
Core Features
- Multi-AI Support: Google Gemini (1.5 Flash, 2.0 Flash) and DeepSeek V3
- SEO Optimization: Auto-generate SEO titles, meta descriptions, and keywords
- Gutenberg Integration: Seamless integration with WordPress block editor
- Content History: Track and manage all generated content
- Multi-language Support: Vietnamese, English, Korean
Advanced Features
- 🔐 Secure API Key Storage: Encrypted API keys in database
- ⚡ Smart Caching: 1-hour cache to reduce API calls and improve performance
- 🔄 Auto-Fallback: Automatically switches to alternative APIs when one fails
- 📊 Content Analytics: Word count, API usage tracking
- 🌐 Internationalization: Ready for translations
📋 Requirements
- WordPress 6.0+
- PHP 7.4+
- OpenSSL extension (recommended for encryption)
- API keys from:
- Google AI Studio for Gemini
- OpenRouter for DeepSeek
🛠 Installation
- Download the plugin files
- Upload to
/wp-content/plugins/ai-seo-content-generator/ - Activate the plugin through WordPress admin
- Configure API keys in
Settings > AI SEO Content
⚙️ Configuration
API Keys Setup
- Go to
Settings > AI SEO Content - Enter your API keys:
- Gemini API Key: Get from Google AI Studio
- DeepSeek API Key: Get from OpenRouter
- Keys are automatically encrypted before storage
Cache Management
- Content is cached for 1 hour by default
- Use "Clear Cache" button to force refresh
- Automatic cleanup of old cache entries
📝 Usage
Generating Content
- Open WordPress post/page editor (Gutenberg)
- Look for "Generate SEO Content" button in the post status panel
- Fill in the form:
- Primary Keyword: Main SEO keyword
- Content Prompt: Describe what you want
- Word Count: Approximate length
- Tone: Select writing style
- Language: Choose output language
- AI Model: Pick preferred AI
Content History
- View all generated content in
Posts > AI Content History - Browse by date, keywords, and API used
- Access full content and SEO metadata
🏗 Plugin Structure
ai-seo-content-generator/
├── ai-seo-content-generator.php # Main plugin file
├── assets/
│ ├── css/
│ │ └── style.css # Plugin styles
│ └── js/
│ └── block-editor.js # Gutenberg integration
├── includes/
│ ├── api-handler.php # API communication
│ └── database.php # Database operations
├── languages/ # Translation files
└── README.md # This file
🔧 Technical Features
Security
- API keys encrypted with AES-256-CBC
- Nonce verification for all requests
- Input sanitization and validation
- Capability checks for user permissions
Performance
- WordPress transients for caching
- Rate limiting (10 seconds between requests)
- Optimized database queries
- Lazy loading of components
Error Handling
- Multi-API fallback system
- Comprehensive error logging
- User-friendly error messages
- Graceful degradation
🎨 Customization
Supported Content Types
- Headings (H2-H6)
- Paragraphs
- Unordered lists
- Ordered lists
- Rich text formatting
Available Tones
- Neutral
- Informative
- Storytelling
- Professional
- Friendly
- Humorous
🔄 API Fallback Logic
- Primary: User-selected API
- Secondary: Alternative APIs in order
- Fallback: Automatic retry with different models
- Error Handling: Clear user feedback on failures
📊 Version History
v3.0 (Latest)
- ✅ Encrypted API key storage
- ✅ Content caching system
- ✅ Multi-API fallback
- ✅ Content history tracking
- ✅ Improved internationalization
- ✅ Better content parsing
v2.3
- Basic AI content generation
- Gutenberg integration
- SEO guidance
🤝 Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
📄 License
GPL2 - Same as WordPress
🆘 Support
For issues and support:
- Check the Issues page
- Review documentation
- Contact plugin author
🔮 Roadmap
- [ ] Custom prompts templates
- [ ] Bulk content generation
- [ ] WordPress Multisite support
- [ ] Integration with popular SEO plugins
- [ ] Content quality scoring
- [ ] A/B testing for content variations
Made with ❤️ for the WordPress community