WP Manifestindependent plugin directory
manifest / content / wp-review-blocks

Review Blocks

Installable WordPress plugin: star-rating shortcode, nonce-protected AJAX voting, schema.org AggregateRating, clean uninstall.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/shaisolaris/wp-review-blocks/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Review Blocks — WordPress Plugin

Real, installable WordPress plugin: a star-rating review box rendered by shortcode, AJAX voting with nonce verification, aggregate totals with schema.org AggregateRating JSON-LD, and clean uninstall.

Engineering notes

  • wp_options over a custom table — boxes are few and read-heavy; autoload=false keeps them out of front-end bootstrap. The storage class is the swap point if scale ever demands a table.
  • Security posture — check_ajax_referer on every vote, sanitize_key/absint on inputs, escaped output throughout, ABSPATH guards on every file.
  • Uninstall hygiene — register_uninstall_hook removes every option the plugin created.

Install

Copy the folder into wp-content/plugins/, activate, then place [review_box id="pricing-page"] in any content.

review-blocks.php            bootstrap: hooks, shortcode, AJAX endpoint, uninstall
includes/class-rb-storage.php   vote persistence (options, autoload off)
includes/class-rb-render.php    markup + JSON-LD + inline voting JS
assets/review-blocks.css        styles
readme.txt                      WordPress.org-format readme

Author

Shai

License

MIT