Enterwell Contest
WP Plugin - Contest application form with drag & drop upload, duplicate checks, admin panel with CSV export, and confirmation emails.
by Aleksandar Đukić · github.com/aleksdjukic/wp-contest-plugin
★ 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/aleksdjukic/wp-contest-plugin/archive/refs/heads/main.zipEnterwell Contest - Plugin
Shortcode: [ewc_form]
Install
- Upload the
enterwell-contestfolder towp-content/plugins/. - Activate Enterwell Contest in WP Admin → Plugins.
- Create a page (npr. “Nagradna igra”) i u sadržaj ubaci:
[ewc_form].
Features
- Drag & drop upload (JPG/PNG/PDF, 5 MB)
- Client + server validacija
- Unique checks (email + broj računa) + DB unique index
- AJAX submit, success/error states, pristupačnost (ARIA live)
- Admin panel: Contest prijave (pregled + CSV export)
- Emailovi: potvrda kandidatu + obavijest adminu
Security
- Nonce zaštita
- MIME/size provjere
- Prepared queries (WPDB)
- Fajlovi idu kroz WordPress Media Library
Notes
- Admin email se čita iz
Settings → General → Administration Email Address. - CSV export: WP Admin → Contest prijave → Export CSV.
What could be added for production
- Server-side throttling po email/receipt
- REST endpoint + e2e testovi (Playwright) i PHP unit testovi
- i18n teksta (POT file)
reCAPTCHA v3
- Kreiraj site i secret key (Google reCAPTCHA v3).
- U WP Admin → Contest prijave → Postavke, upiši Site key i Secret key.
- Skripta se automatski uključuje, token se šalje i verifikuje server-side.
Changelog
See CHANGELOG.md for version history and notable changes.
Screenshots
1. Initial application form

2. Drag & drop file

3. File upload – failed

4. File upload – success

5. Error screen

6. Success screen
