Skip to content

Comprehensive Improvements for OneDesign Plugin #20

@vishal4669

Description

@vishal4669

Description

This issue aims to address multiple improvements and fixes required in the OneDesign Plugin to enhance performance, maintainability, and consistency across the codebase.

Tasks

Error Handling and Logs

  • Address all existing error_logs issues.
  • Fix all 404 and 502 errors.

Code Quality and Standards

  • Resolve PHPCS violations across the plugin.
  • Add complete documentation to all functions, classes, REST endpoints, and settings.
  • Fix plugin checker warnings.

UI/UX & Functionality

  • Update the PHP-based settings page to use Gutenberg components.
  • Add a modal on plugin activation for site type selection (similar to other modules).
  • Add a Settings link on the plugins page for OneDesign to take users to the plugins settings page.

Code Optimization and Structure

  • Use Utils and Constants classes for repeated code, options, and transient names.
  • Update all dashboard/consumer site references with “Governing Site” and “Brand Site” terminology throughout the codebase.
  • Prefix all options with onedesign_ and set autoload = false.

Acceptance Criteria

  • No unresolved error logs or 404/502 responses remain.
  • Code fully passes PHPCS and plugin checker without warnings.
  • Documentation is complete and up-to-date.
  • Settings page rebuilt with modern Gutenberg components.
  • Activation modal implemented and tested.
  • Consistent terminology (“Governing Site”, “Brand Site”) across UI and code.
  • All reusable logic consolidated under Utils and Constants.
  • Option prefixes and autoload settings verified.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions