Architecture
Internal plugin architecture
Plugin Architecture
text
schemafy/
├── 1.0.1.php # Main plugin file
├── includes/
│ ├── class-baseo-core.php # Main orchestrator
│ ├── class-baseo-database.php # Database operations
│ ├── class-baseo-admin.php # Admin interface
│ ├── class-baseo-validator.php # JSON & schema validation
│ ├── class-baseo-schema-injector.php # Frontend injection
│ ├── class-baseo-seo-detector.php # SEO plugin detection
│ ├── class-baseo-seo-health.php # Health analyzer
│ ├── class-baseo-seo-analyzer.php # Content analysis
│ ├── class-baseo-rest-api.php # REST API
│ ├── class-baseo-meta-box.php # Editor meta box
│ ├── class-baseo-gutenberg.php # Gutenberg integration
│ ├── class-baseo-modular-scripts.php # Script management
│ ├── builders/
│ │ ├── class-baseo-field-generator.php # Form fields
│ │ └── class-baseo-schema-builder.php # Schema construction
│ ├── ajax-handler-save-update.php # Save/update handlers
│ └── ajax-handler-dashboard.php # Dashboard handlers
├── assets/
│ ├── css/ # Stylesheets
│ └── js/
│ ├── builder-app.js # Builder core
│ ├── admin-seo-health.js # SEO health UI
│ ├── gutenberg/ # Gutenberg sidebar
│ └── modules/ # 14 modular JS files
│ ├── admin-modular.js # Entry point
│ ├── core/init.js # Tab management
│ ├── dashboard/dashboard.js # Dashboard
│ ├── utilities/notifications.js # UI helpers
│ ├── bulk/bulk-manager.js # Bulk operations
│ ├── bulk/filters.js # Filters & sorting
│ ├── operations/schema-crud.js # CRUD operations
│ ├── operations/url-management.js # URL views
│ ├── operations/quick-actions.js # Cleanup tools
│ ├── editor/manual-editor.js # JSON editor
│ ├── editor/validation.js # Validation
│ ├── ai/ai-generator.js # AI generation
│ ├── builder/smart-builder.js # Visual builder
│ └── import-export/csv-handler.js # CSV tools
└── templates/
├── admin-page-new.php # Admin page
└── builder/
├── main-builder.php # Builder template
└── field-configs/ # 16 JSON configs (1 per type)Main Classes
| Class | Responsibility |
|---|---|
| BASEO_Core | Main orchestrator with dependency injection |
| BASEO_Database | CRUD operations on wp_baseo_custom_schemas |
| BASEO_Admin | Admin panel, AJAX handlers, tab management |
| BASEO_Validator | JSON, Schema.org and Google guidelines validation |
| BASEO_Schema_Injector | Schema, meta tag and social injection in wp_head |
| BASEO_SEO_Detector | Detects meta tags from Yoast, Rank Math, AIOSEO, etc. |
| BASEO_SEO_Health | 20-check analyzer with scoring |
| BASEO_SEO_Analyzer | Content analysis for Gutenberg sidebar |
| BASEO_REST_API | REST endpoints for external integrations |
| BASEO_Meta_Box | Meta boxes in the post editor |
| BASEO_Gutenberg | Gutenberg sidebar panel and meta fields |
| BASEO_Schema_Builder | Smart Builder visual interface |
| BASEO_Field_Generator | Dynamic field generation by type |
| BASEO_Sitemap | XML sitemap generation (video, image, core) |
| BASEO_Robots | robots.txt management and editing |
| BASEO_LLM | /llms.txt endpoint for AI crawlers |
| BASEO_Crawler_Logger | Bot visit logging in the database |
| BASEO_Validator | JSON-LD validation and Schema.org compliance |