Review Blocks
Installable WordPress plugin: star-rating shortcode, nonce-protected AJAX voting, schema.org AggregateRating, clean uninstall.
★ 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.zipReadme
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=falsekeeps them out of front-end bootstrap. The storage class is the swap point if scale ever demands a table. - Security posture —
check_ajax_refereron every vote,sanitize_key/absinton inputs, escaped output throughout,ABSPATHguards on every file. - Uninstall hygiene —
register_uninstall_hookremoves 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