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.

by Shai · github.com/shaisolaris/wp-review-blocks

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/shaisolaris/wp-review-blocks/archive/refs/heads/main.zip

Readme

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 posturecheck_ajax_referer on every vote, sanitize_key/absint on inputs, escaped output throughout, ABSPATH guards on every file.
  • Uninstall hygieneregister_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

Read the full README on GitHub →