=== FeraSurvey ===
Contributors: feradel
Tags: surveys, forms, feedback, block, shortcode
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 1.1.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed published FeraSurvey surveys in your posts and pages with a block or shortcode.

== Description ==

Embed published FeraSurvey surveys and forms in WordPress. Connect your site to your hosted workspace, choose a published survey, and place it on any page or post with the **FeraSurvey** block or a shortcode.

* Create surveys and forms in FeraSurvey. Use them for feedback, intake, registrations, or other structured responses.
* Publish once and share the survey with a reusable link or a WordPress embed.
* Let visitors respond anonymously or sign in when your survey requires it.
* Review submissions and run reports in your FeraSurvey workspace. WordPress displays the hosted responder, and survey answers and results stay in FeraSurvey.

You need a FeraSurvey workspace, WordPress 6.4 or later, PHP 8.0 or later, and a public HTTPS site.

= FeraSurvey Free and Starter =

**FeraSurvey Free is free forever.** There is no trial expiration, credit card requirement, or automatic overage charge. If you reach the Free result allowance, new results may pause until it resets or you choose to upgrade.

* **Hosted plan price** — Free is $0. Starter is $19 per month.
* **Survey results per usage period** — Free includes 50. Starter includes 150.
* **Workspace users** — Free includes 1. Starter includes 3.
* **Active surveys** — Free supports 3. Starter supports 5.
* **Generic public links and WordPress embeds** — Included with Free and Starter.
* **Invitation requests** — Starter includes 50. Free uses generic links.
* **Reporting** — Free includes HTML reports. Starter adds paid export formats.
* **Customer webhooks** — Included with Starter.

See the [side-by-side Free and Starter feature matrix](https://help.feradel.com/install-ferasurvey-on-wordpress/#plan-comparison).

Both plans support the same WordPress block and shortcode. The limits above apply to the hosted FeraSurvey workspace.

* [FeraSurvey product page and pricing](https://www.feradel.com/products/ferasurvey/)
* [Install, set up, and use FeraSurvey on WordPress](https://help.feradel.com/install-ferasurvey-on-wordpress/)
* [FeraSurvey product help](https://help.feradel.com/ferasurvey-documentation/)

= External services =

FeraSurvey is a service operated by Feradel. It supplies the hosted responder, survey data, authorization, and results. It is required to display and submit a survey.

* When an administrator starts a connection, `surveys.feradel.com` and `api.survey.feradel.com` receive the site and callback URLs, an installation identifier, software versions, and one-time authorization data. The manual connection option exchanges the same site information through the API. The optional Start Free link opens Feradel's registration page with the selected plan and a return URL.
* Once connected, WordPress sends signed installation requests to retrieve authorized survey links and workspace usage, check status, refresh or rotate the connection, or revoke it when disconnected or uninstalled. The installation secret is stored encrypted in WordPress. It stays on the server.
* When a visitor opens a page containing a published embed, their browser loads `surveys.feradel.com` with the survey code, installation identifier, and page return URL. The responder receives standard browser connection data, and it handles any sign-in and answers the responder submits. WordPress does not receive the answers or sign-in credentials.

See the [Feradel Terms of Use](https://www.feradel.com/terms-of-use/) and [Feradel Privacy Policy](https://www.feradel.com/privacy-policy/).

== Installation ==

1. In the WordPress dashboard, open **Plugins → Add New Plugin**, search for **FeraSurvey**, and select the plugin by Feradel. Click **Install Now**, then **Activate**. If you already downloaded the ZIP, use **Upload Plugin** on the same screen.
2. Open **Settings → FeraSurvey**. If you need a workspace, click **Start Free**, finish registration, and return to WordPress.
3. Click **Connect Existing FeraSurvey Account**, sign in to the intended workspace, and approve the site connection. Back in WordPress, check for **Connected**.
4. In FeraSurvey, publish your survey and create a generic public link that allows WordPress embedding. Back in **Settings → FeraSurvey**, click **Refresh connection data** and choose the published survey.
5. Edit a post or page. Add the **FeraSurvey** block and select the survey, or copy the shortcode from **Settings → FeraSurvey** and paste it into a **Shortcode** block.
6. Preview the HTTPS page and submit a test response as a visitor. Confirm the response appears in **Results** in FeraSurvey, then publish the page.

For troubleshooting and more detail, see the [step-by-step WordPress setup guide](https://help.feradel.com/install-ferasurvey-on-wordpress/).

== Frequently Asked Questions ==

= What if the authorization redirect is blocked? =

In Settings → FeraSurvey, expand **Redirect connection not working?**. Generate the short-lived installation code, approve it in FeraSurvey, then return to WordPress and check its status.

= Can I customize the shortcode? =

The settings screen provides a complete shortcode with your survey's public code. You can set `title` for an accessible frame label, `theme` to `auto`, `light`, or `dark`, and `auto_height="false"` with a fixed `height`.

= Why doesn't my survey appear in the picker? =

Publish a generic link, enable WordPress embedding, and select Refresh in the settings. If an older link has no retrievable public code, rotate it once in FeraSurvey.

= What happens when I remove the plugin? =

Deactivation preserves the connection. Uninstall removes local settings and caches and attempts to revoke the remote installation. Surveys, results, and WordPress content stay where they were.

= What does the plugin store in WordPress? =

WordPress stores the installation settings and encrypted credential. It temporarily caches published survey titles and codes, usage totals, and connection diagnostics. Survey answers, responder identities, and results stay in FeraSurvey.

= Where is the source code? =

The package includes all editable PHP, JavaScript, CSS, and SVG source. There is no compilation step.

== Changelog ==

= 1.1.3 =
* Tested with WordPress 7.1.5.
* Added connection data disclosures and translation support for editor and admin controls.
* Kept authorization notices out of URLs and fixed connection setup and uninstall on more WordPress configurations.
* Added a WordPress nonce to the browser connection callback, alongside the one-time authorization state.

= 1.1.2 =
* Improved status notice contrast on the settings screen.
