Skip to content

v1.7.0 - Quick Wins: Auto-Save, Cache, i18n

Choose a tag to compare

@defcon1702 defcon1702 released this 14 Feb 23:07
· 3 commits to main since this release

πŸŽ‰ v1.7.0 - Quick Wins Release

✨ New Features

Auto-Save with Debouncing

  • Automatic saving after 500ms of inactivity
  • Visual indicators: "⏳ Speichert...", "βœ“ Gespeichert", "βœ— Fehler"
  • No more manual save clicks needed
  • Smooth UX with fadeIn animation

Plugin Internationalization (i18n)

  • template with all translatable strings
  • German translation (de_DE.po/.mo)
  • English translation (en_US.po/.mo)
  • Textdomain automatically loaded
  • Plugin UI now available in German and English

πŸš€ Performance Improvements

Transient Cache for Forms List

  • 5-minute cache for forms list
  • Performance boost: ~500ms β†’ ~10-20ms load time
  • Auto-invalidation after scan
  • Refresh parameter ?refresh=1 for bypass

Already Optimized

  • N+1 Query Fix: All translations loaded in single query (already in v1.6.x)
  • DB Indexes: Optimal indexes for all queries (already in v1.6.x)

πŸ“ Changed Files

  • admin/assets/js/admin.js: Auto-save logic + debouncing
  • admin/assets/css/admin.css: Save indicator styles
  • admin/class-rest-api.php: Transient cache for get_forms()
  • languages/: New .pot/.po/.mo files for i18n

πŸ”’ Security Note

REST API endpoints require manage_options capability (WordPress Admin only). Not accessible from outside.

ℹ️ Info

  • No breaking changes
  • Fully backward compatible
  • Tested on WordPress 5.8+ and PHP 7.4+

πŸ“¦ Installation

  1. Download wsform-ml.zip
  2. Upload to /wp-content/plugins/
  3. Activate in WordPress
  4. Ensure WS Form is installed

⚠️ Important

This plugin was entirely developed using AI (Cascade/Claude). Always test on staging environments before production use!


Full Changelog: CHANGELOG.md