QuizMaster — Online Quiz & Exam Script

Title: QuizMaster — Online Quiz & Exam Script

Price: $18

Category: PHP Scripts

Version: 1.2.4

Short description:

Self-hosted PHP quiz & exam script: timed multiple-choice + True/False quizzes, instant results, leaderboard and CSV export.

Tags: quiz, exam, online quiz, php script, test, assessment, multiple choice, true false, leaderboard, timed quiz, education, elearning, questionnaire, results, survey

Live demo: http://34-quizmaster.mangoraya.xo.je/

Overview

QuizMaster — Online Quiz & Exam PHP Script is a self-hosted quiz and exam tool in plain PHP with no framework and no monthly fee. Create timed multiple-choice and True/False quizzes, let visitors take them with a live countdown timer, and show instant results with a score, pass/fail and a full answer review. Top scorers appear on a public leaderboard, and the admin can export all graded results as a CSV. Every attempt is saved, so you can review results in the admin panel; each graded attempt issues its own private results link (one token opens that one attempt only — an email address alone never opens anyone’s records, and a link never opens another attempt made with the same email address).

Features

  • Unlimited quizzes with multiple-choice questions (4 options, one correct answer) and True/False questions — mix both types in one quiz
  • Public leaderboard: top 10 scores per quiz (best attempt per person), with medals for the top 3
  • Results CSV export in the admin panel (graded attempts only, optionally filtered to one quiz) — text fields are neutralised against CSV formula injection, so a name such as =1+1 stays literal text in spreadsheet software
  • Time limit per quiz and a pass score you set yourself — enforced server-side, so the browser timer cannot be bypassed
  • Explicit start step: the attempt (and the timer) starts only when the visitor presses “Start quiz” — starts are bounded (20/hour per browser session) and abandoned attempts expire after 24 hours
  • Grading snapshot: each attempt is graded against the questions, correct answers and pass mark as they were when it started — an admin edit mid-attempt cannot change the grading
  • Expiry policy: a submission after the deadline is recorded as EXPIRED, never graded and never shown as a failure — the visitor can start again. The deadline is checked before the name/email checks, so an auto-submit at expiry with empty name/email is still recorded as expired and returns the restart page
  • Public quiz page with a live JavaScript countdown timer and auto-submit
  • Instant results: score, percentage, pass/fail and answer review, plus a private results link (unguessable token) for that one attempt only — one token opens one attempt, never another attempt, even one made with the same email address
  • Results history for visitors (one private token link per graded attempt) and for the admin — admin results paginated through all submitted attempts, with a separate view for expired attempts; in the admin results table an expired attempt shows “Expired — not graded” with no score and an open (unsubmitted) attempt shows “In progress” with no score — neither is ever shown as Failed
  • Admin panel: dashboard, quiz CRUD, question manager, all results, password change, schema upgrade
  • Admin login with bcrypt-hashed passwords, CSRF protection, a regenerated session ID on login and throttling (5 failed attempts lock the login for 15 minutes) — no default password; the installer requires a strong password
  • SQLite database stored outside the document root by default (an instance-specific folder next to the web root), so the file is never web-reachable; on shared hosting that jails PHP to the web root, use data/app.sqlite inside the app folder instead — its protection is proven over HTTP against the real deployment before installing (the installer first proves it reached this app, then the real database file app.sqlite and its -wal/-shm/-journal sidecars must answer 403/404 at the full site address, path preserved), with the shipped .htaccess deny rule + guard file as the fallback layer and the verification marker bound to the version, site address, database path and verified public URLs
  • SQLite by default (zero setup) or MySQL via the installer (MySQL 5.7 / 8.0, MariaDB 10.4+)
  • Web installer that checks requirements, checks the setup key FIRST (before it creates anything — no lock, no storage folder, no database), and writes config.php only after every step succeeds

Requirements

  • PHP 8.1 or newer with PDO and pdo_sqlite (SQLite mode) or pdo_mysql (MySQL mode).
  • MySQL 5.7 / 8.0 or MariaDB 10.4+ if you choose MySQL mode.
  • Apache, Nginx, or the PHP built-in server. A writable app folder (the SQLite database lives outside the document root by default).

Instructions

  1. Unzip main.zip and upload the files to your web hosting.
  2. Create a setup key: put a random string in a file named quizmaster-setup.key in the folder ABOVE the document root, then open http://your-domain/install.php in your browser and paste the same string into the “Setup key” field. The key is checked before the installer creates anything — without a matching key the install is refused immediately and nothing is created (an app-folder setup.key is accepted only when a self-test proves it cannot be downloaded, requiring an exact 403 answer from the real site address). The key file is deleted automatically after a successful install.
  3. Choose SQLite (recommended — the database is created outside the web root by default; on shared hosting that jails PHP to the web root, use data/app.sqlite inside the app folder instead and set the site address below, so the installer can prove the folder’s protection over HTTP against the real deployment — the real database file and its sidecars must answer 403/404) or MySQL (in MySQL mode the SQLite path is not used or validated at all) and enter your database details if needed.
  4. Choose your admin username and a strong password (at least 8 characters — there is no default password).
  5. Click “Install QuizMaster”, then delete install.php for security. The installer writes install.lock on success and will not run again while config.php exists.
  6. Log in at admin/login.php, create a quiz, add questions, and publish it.

Changelog

v1.2.4 — 2026-11-26 — Fixes: (1) the installer now checks the setup key FIRST, before acquiring the setup lock and before any filesystem modification, HTTP probe or database initialisation — an unauthorised request is refused immediately and creates nothing (no lock file, no storage folder, no database, no config), and a failed key check can no longer leave the installer part-way through setup. (2) SQLite protection is now proven against the REAL deployment: the probe first fetches the site’s own homepage and install.php and requires a 200 answer containing QuizMaster, so a 404 from an unrelated virtual host can never count as proof; it then probes the REAL database filename (app.sqlite) and its -wal, -shm and -journal sidecars at the full site address with the application path preserved, and only a 403/404 for every file counts — a 200 means the file is downloadable and anything else (redirect, error, timeout) is unverifiable and refused. The .protection-verified marker is now bound to the package version, the full site address, the resolved database path and the exact public URLs verified, so any configuration change invalidates it and forces a fresh probe. (3) The setup-key exposure self-test now trusts an in-web-root key only on an exact 403 answer from the real deployment — a 404, a redirect, an error page, a timeout or any other inconclusive answer refuses the key, instead of treating any response that differs from the key contents as protected. (4) Results CSV export now neutralises formula injection: text fields starting with =, +, -, @ (or after leading whitespace, a tab or a carriage return) are prefixed with a single quote, so a participant name such as =1+1 stays literal text in spreadsheet software instead of being executed as a formula. (5) MySQL installs no longer parse or validate the SQLite path at all — the SQLite storage-path requirements apply only when SQLite is selected, so a MySQL install on a host without DOCUMENT_ROOT reaches the MySQL connection instead of failing with a SQLite location error. (6) The Windows-drive-path check in the installer now recognises backslash drive paths as well as forward-slash ones. No schema change.

v1.2.3 — 2026-11-25 — Fixes: (1) the SQLite database is outside the document root by default again (an instance-specific folder next to the web root), so quiz data is never web-reachable; a database inside the web root is accepted only when its protection is proven over HTTP (probe files shaped like the database must answer 403/404), and the Nginx deny rule is now path-independent so it works on subdirectory installs too. (2) A fresh install needs the setup key again (quizmaster-setup.key, the same mechanism recover.php uses), so an anonymous visitor who reaches install.php first cannot claim the install; the key is deleted after a successful install. (3) The documentation no longer contradicts itself: the installer section now states the setup key IS required, matching the Features line and the code. (4) The documentation ZIP is regenerated from the shipped guide (v1.2.3), and support now routes through WPBay. No schema change.

v1.2.2 — 2026-11-24 — Fixes: public pages now show a clear ‘not installed yet’ page (with a link to install.php) instead of an error when the app is not installed, and nothing is created before installation — no storage folder, no database file. The setup-key check no longer trusts the request Host header: its probe origin comes from the configured site address or a fixed loopback address, and an in-web-root key is now refused unless the probe proves it cannot be downloaded (an inconclusive probe refuses the key too); a key above the document root still works.

v1.2.1 — 2026-11-23 — Installer now works on shared hosting: no outside-web-root token, SQLite inside the app folder. The installer no longer needs a setup key (no key file outside the document root, no DOCUMENT_ROOT check, no “confirm this folder is outside the web root” step); the SQLite database is stored in the app’s data/ folder (data/app.sqlite), protected by the shipped data/.htaccess deny rule + guard index.php, and a successful install writes install.lock. No feature changes, no schema change.

v1.1.7 — 2026-11-23 — Review fixes: the listing description is now buyer-facing copy only — the title/price/development-hours block, the ‘Short description:’/’Full description:’ headings, the duplicated Tags line and the whole ‘Demo: Needs a PHP/MySQL server demo …’ sentence are removed, and no demo is claimed (the live preview URL is an optional field); the Overview, Features, Requirements, Installation/Setup and Changelog sections are unchanged, and every feature/requirement sentence still matches the shipped code. No schema change.

v1.1.6 — 2026-11-22 — Review fixes: the setup-key HTTP-exposure self-test no longer probes a fixed app-folder URL — quiz_setup_key_exposed() used to request quiz_url(‘setup.key’) for every candidate, so a key at another candidate path was accepted even while HTTP-retrievable; the self-test now probes each candidate at its own served URL (new quiz_setup_key_url()): a key in the app folder’s parent is requested as /quizmaster-setup.key and refused when retrievable (accepted only when denied), a key above the document root is still accepted without a probe, and the app-folder setup.key is still accepted only when denied at its own subdirectory URL. Documentation.txt INSTALLATION step 2 now states the per-candidate probing. No schema change.

v1.1.5 — 2026-11-22 — Review fixes: (1) ungraded attempts are no longer shown as “Failed” with a 0/0 score in Admin > Results — the Result and Score columns are now rendered from the attempt status (new quizmaster_attempt_display() helper): an expired attempt shows “Expired — not graded” with no score (“—”), an open attempt with no submission shows “In progress” with no score, and Passed/Failed with the real score appears only for submitted (graded) attempts; the same rule applies in the graded, expired and “all” views, and the “all” view now states the rule in a note. (2) The documented setup-key location is no longer gated on DOCUMENT_ROOT alone — quiz_setup_key_paths() also searches the parent of the application folder and the parent of the buyer-entered storage folder (from the install form, or from config.php), so the key is found on hosts that do not pass DOCUMENT_ROOT (for example PHP-FPM without it); a location that cannot be determined is now treated like an in-web-root one, so the HTTP-exposure self-test is applied to it instead of skipped, and a retrievable key is still refused; install.php shows the install form on such hosts even before a key file is found (the key is searched in the storage folder’s parent when the form is submitted), and the INSTALLATION, TROUBLESHOOTING and recover.php help text now state the full search order. No schema change.

v1.1.4 — 2026-11-21 — Review fixes: (1) Admin-login throttling no longer accumulates rows forever: the prune in quizmaster_record_login_attempt() now deletes throttling rows that no longer carry a live lock and have not been touched for 24 hours (locked_until NULL/empty/past AND updated_at older than a day), runs on every failed login so the table stays bounded by the rows touched in the last day, and explicitly excludes the current (ip, username) row so its UPDATE always finds its row; updated_at is now set explicitly in the UPDATE (MySQL refreshes it itself, SQLite does not), and the one-time migration to schema version 3 adds indexes on login_attempts (locked_until) and (updated_at) so the prune never scans the whole table. (2) Documentation corrected: ADMIN LOGIN and TROUBLESHOOTING no longer tell the buyer to create setup.key inside the app folder — both now say to create quizmaster-setup.key in the folder ABOVE the document root, the same location as INSTALLATION step 2, and the app-folder setup.key is mentioned only as the Apache-only fallback that is refused whenever it can be downloaded over HTTP (Nginx deny rule reference kept).

v1.1.3 — 2026-11-21 — Review fixes: (1) MySQL install fixed — TEXT columns (quizzes.description, attempts.answers, attempts.snapshot) no longer carry a literal DEFAULT ” on MySQL (MySQL 5.7/8.0 and MariaDB reject it); driver-specific DDL defines them with no literal default and the application always inserts explicit values; regression check included (tests/regression-mysql-ddl.php) running quizmaster_schema(‘mysql’) and quizmaster_migrate(). (2) Private results token scoped to ONE attempt: results.php matches the token hash against the attempt row itself and returns only that single graded attempt — never every attempt for an email address. (3) Expiry before identity checks: result.php evaluates the deadline before the name/email checks, so an auto-submit at expiry with empty name/email is recorded as EXPIRED with the restart page; quiz.php treats an open attempt with a past deadline as expired and shows the intro/restart form instead of a zero-timer form.

v1.1.2 — 2026-11-20 — Review fixes: admin-login lockout fixed for timezones — lock expiry stored in UTC and parsed as UTC, so the 15-minute lock lasts the full 15 minutes in any PHP timezone; unlocked accounts store NULL instead of an empty string; attempt timestamps (started_at, deadline, submitted_at) are now UTC throughout, so the 24-hour prune and the server-side deadline share one clock. Setup key moved out of the web root (quizmaster-setup.key outside the document root; an app-folder setup.key is accepted only when it cannot be downloaded over HTTP — installer/recover.php self-test it; shipped app-root .htaccess denies *.key/*.lock/*.tmp-* on Apache, Nginx rule documented). MySQL installs no longer require any storage-folder proof. SQLite installs on a host without DOCUMENT_ROOT accept an explicit “I confirm this folder is outside the web root” confirmation, while a proven in-docroot path is still refused. Setup lock file is never deleted on release.

v1.1.1 — 2026-11-20 — Review fixes: database now lives in a folder ABOVE the document root (installer proves the path and refuses in-docroot locations, no in-app fallback); setup-key authorization for the installer and recover.php (serialized setup, atomic config publish); MySQL DDL outside any transaction with transactional seeding (MySQL 5.7/8.0, MariaDB 10.4+); private results history via unguessable token (email alone never opens records, no email in URLs, no-store); expiry policy — late submissions recorded as EXPIRED, never graded or shown as failures, with explicit restart; explicit start step with 20 starts/hour bound and 24h prune of abandoned attempts; grading snapshot so admin edits mid-attempt cannot change grading; recover.php password recovery that preserves quizzes/questions/attempts; one-time versioned migration (stored schema version) via install.php or Admin > Schema upgrade; admin login with regenerated session ID, secure cookie defaults, 15-minute lock after 5 failures and HTTP warning; full programmatic labels including <fieldset> grouping for quiz questions.

v1.1.0 — 2026-11-18 — Marketplace review fixes: database stored outside the web root; no default admin password (installer requires a strong password + working Change password page); failed installs no longer lock the app; time limits enforced server-side; only published quizzes accept submissions; admin Results paginated through all attempts; associated form labels; Troubleshooting + support route added.

v1.0.0 — 2026-11-17 — Initial release.

Changelog:

v1.2.4 — 2026-11-26 — Fixes: (1) the installer now checks the setup key FIRST, before acquiring the setup lock and before any filesystem modification, HTTP probe or database initialisation — an unauthorised request is refused immediately and creates nothing (no lock file, no storage folder, no database, no config), and a failed key check can no longer leave the installer part-way through setup. (2) SQLite protection is now proven against the REAL deployment: the probe first fetches the site's own homepage and install.php and requires a 200 answer containing QuizMaster, so a 404 from an unrelated virtual host can never count as proof; it then probes the REAL database filename (app.sqlite) and its -wal, -shm and -journal sidecars at the full site address with the application path preserved, and only a 403/404 for every file counts — a 200 means the file is downloadable and anything else (redirect, error, timeout) is unverifiable and refused. The .protection-verified marker is now bound to the package version, the full site address, the resolved database path and the exact public URLs verified, so any configuration change invalidates it and forces a fresh probe. (3) The setup-key exposure self-test now trusts an in-web-root key only on an exact 403 answer from the real deployment — a 404, a redirect, an error page, a timeout or any other inconclusive answer refuses the key, instead of treating any response that differs from the key contents as protected. (4) Results CSV export now neutralises formula injection: text fields starting with =, +, -, @ (or after leading whitespace, a tab or a carriage return) are prefixed with a single quote, so a participant name such as =1+1 stays literal text in spreadsheet software instead of being executed as a formula. (5) MySQL installs no longer parse or validate the SQLite path at all — the SQLite storage-path requirements apply only when SQLite is selected, so a MySQL install on a host without DOCUMENT_ROOT reaches the MySQL connection instead of failing with a SQLite location error. (6) The Windows-drive-path check in the installer now recognises backslash drive paths as well as forward-slash ones. No schema change.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Loading...
WPBay support Support by Digishop

Digishop supports this product through WPBay

Questions are handled in WPBay's private ticket system, keeping your purchase details and support conversation together.

Go to My Downloads

After purchase, open this item in My Downloads and choose Get Support.

What support includes

  • Answers to product-related questions
  • Help with reported bugs and issues
  • Guidance for included third-party assets

What support does not include

  • Customizations or new features
  • Installation or setup services
Script

Maintenance snapshot

See recent updates, compatibility, support, and developer activity.

  • Updated 7 days ago
  • Developer active recently
  • WPBay support available
  • Documentation available

Snapshot updated 11 hours ago

View details Hide details

Maintenance details

This is maintenance data. It does not measure product quality or sales.

  • Last update Updated 7 days ago
  • Compatibility Not used for scripts
  • Releases 13 releases in the 17 days since listing
  • Developer activity Developer active recently
  • Support No recent support tickets to measure
  • Docs and demo Documentation available · Changelog available · No demo listed

Health remained stable during the last 90 days.

How this snapshot works

Script Health

The score is out of 100 and uses data WPBay can check. Ratings, popularity, and sales are not used.

Last update 35 points

Scripts receive full recency points under 45 days, then step down at 120, 240, 365, and 545 days.

Compatibility Not scored

Scripts do not use WordPress or PHP, so compatibility is not scored.

Releases 20 points

One release earns 14, two or three earn 18, and four or more earn 20. Each accepted product ZIP counts once; reprocessing the same upload and listing-only edits do not count.

Developer activity 20 points

Based on WPBay login and dashboard activity. Exact last-login dates are never shown.

Support 15 points

There are no recent WPBay tickets to measure.

Docs and demo 10 points

Documentation: 3. Changelog: 1. Working demo or preview: 6.

Score ranges

  • 90–100 Excellent
  • 75–89 Healthy
  • 60–74 Fair
  • 40–59 Needs attention
  • 0–39 Limited

Long gaps

WPBay also checks for long gaps between updates, developer activity, support replies, and releases. Buyers do not see this score.

  • Time since update 45 points
  • Last developer activity 30 points
  • WordPress compatibility Not scored
  • Support replies 15 points
  • Fewer releases 10 points

Pricing Plans 

$18
1 Site

Prices are in US dollars and exclude taxes

  • Marketplace Pillar
    5
View Store
  • Last Updated 27 Nov 2026
  • Type Script
Compare with similar scripts

© All Rights Reserved - Digishop
Contact WPBay Market's Help Team