Quizzin WordPress Plugin for Quiz Creation

WordPress Plugin Week

Quizzin WordPress Plugin lets you add quizzes to your blog. This plugin is designed to be as easy to use as possible. Quizzes, questions and answers can be added from the admin side. This will appear in your post if you add a small HTML comment in your post.

Welcome to Plugin week – in Plugin week, I release a new WordPress Plugin each day, every day for one week. This is the sixth (and final) plugin in that series. The plugins released so far are…

Note 1: Quzzin is a beta plugin(as are most of the plugins released in the Plugin Week) – so watch out for bugs. And trust me, there will be quite a few.


  • Download the zipped file.
  • Extract and upload the folder to /wp-contents/plugins/ folder
  • Go to the Plugin management page of WordPress admin section and enable the Quizzin plugin
  • Go to the Quizzin Management page(Tools > Manage Quiz) to create or edit Quizzes
  • After creating the quiz, create a new post and add the HTML comment [QUIZZIN 1] in it. Here the ‘1’ should be the ID of the quiz to be inserted.

Usin’ Quizzin Plugin

This plugin is pretty straight forward – after enabling the plugin, go to the Manage Quiz page(Manage > Manage Quiz). All the existing quizzes will be show here. You also have the option of creating a new quiz – or editing an existing one.

Quizzin WordPress Plugin - Manage

Click on the ‘Create new Quiz’ link to create a new quiz – you have to fill in three fields – the quiz name, the description and the Final Screen.

Quizzin WordPress Plugin - Create

The ‘Final screen’ field is very important – you can customize the result of the quiz using this. Basically, what you fill in here will be shown when a user completes the quiz. You can use several variables here. For example, if you put in the text ‘%%SCORE%%’, it will be replaced by the score the user got in the quiz.

The other possible variables are…

Variable Value
%%SCORE%% The number of correct answers
%%TOTAL%% Total number of questions
%%PERCENTAGE%% Correct answer percentage
%%GRADE%% 1-10 value. 1 is 10% or less, 2 is 20% or less, and so on.
%%WRONG_ANSWERS%% Number of answers you got wrong
%%RATING%% A rating of your performance – it could be ‘Failed'(0-39%), ‘Just Passed'(40%-50%), ‘Satisfactory’, ‘Competent’, ‘Good’, ‘Excellent’ and ‘Unbeatable'(100%)
%%QUIZ_NAME%% The name of the quiz
%%DESCRIPTION%% The text entered in the description field.

Once you have filled out this form, you will be taken to the next page where you can manage your questions. Click on the ‘Create new Question’ to add your questions and answers. You have to select one of the answers as the correct one.

Quizzin WordPress Plugin - New Question

Quizzin WordPress Plugin - Mange Questions in Quiz

After you have added all the question, create a new post and add the HTML comment [QUIZZIN 1] – here the 1 should be the ID of the quiz to be inserted. That’s it – you should have a working quiz on your blog now.

See it in Action

I have created a WordPress Quiz using the Quizzin plugin. Lets see how well you know wordpress. If you take the quiz, post your results in the comments field.


Thanks to ‘The’ Anand for suggesting the idea of a Quiz plugin. Also, Mani Karthik provided a lot of encouragement to create the plugin.

As a matter of fact, Quizzin is the first plugin in the plugin week series. When those two suggested the Quiz plugin, my lazy brain immediately saw the benefits – I get 3 plugins for the price of one. Once the quiz plugin is created, just remove the correct answer option, limit the question to just one and record the answers – and you have a Poll plugin. To create a survey plugin, just remove the correct answer option and record the user’s input. You also need to create a interface to show the results. Voila – you have a survey plugin. That’s right – the Pollin Plugin and Surveys plugin are based on the Quizzin Plugin.

The eventr plugin was created for the Barcamp Kerala. Again, the credit for its suggestion goes to Anand. After that plugin was ready, I am sitting on four unreleased plugins(that is, two plugins and an idea for two more) – that’s when the thought of doing a plugin week hit me. The rest, as they say, is history.


If you have any suggestions or notice any problems with the Quizzin WordPress plugin, post it in the Quizzin forum.

That’s it! Plugin week is over. 6 days, 6 plugins. Now, I have to go catch up on some much needed sleep. Happy Blogging!

About Binny V A 102 Articles
Freelance Web Developer on the LAMP Platform. Maintains a blogs http://blog.binnyva.com/. Other sites include Bin-Co and OpenJS


  1. I’m having a problem with the Quizzin plugin on my site http://www.pharmtechguide.com.

    The problem is that it shows one quiz on the main page, and it works, but then the second quiz on the main page won’t work.

    If you click on the link on the non-functioning one and show it on only one page, then it works.

    But, if you choose the category menu, then none of the quizzes on the category menu work unless you select the individual quiz and show it on only one page.

    Any ideas on how to make this work?


  2. Hi!

    I just upgrade my wordpress to 2.8.8 and your plugin doesn’t work :S

    When i try to “Create New Quiz” i got the next message: You do not have sufficient permissions to access this page.

    I tried to fix with a lot of solutions in google but nothing works, if someone have a clue of the problem I appreciate your help…


  3. Very nice plugin! But I was looking for a plugin alike, more like a test not a quizz ?! Where can I ever find this?

    I´m used to insert the code directly into posts, really messy.

  4. Hi Binny,

    I love your Quizzin plugin, as I think I have expressed to you before. I have used it on my Website, but I edited your code to make a couple of minor improvements. However my site is predominantly owned by my partner and he has switched to WordPress MU, and with that you lose the ability to Edit the code of themes and plugins, which really pisses me off. Anyway there have been quite a few people who have used one of my suggested changes to your Quizzin plugin, but if they were to switch to WP MU they too would lose it because they can’t edit the code.

    There is a really simple solution, which would be for you to issue a new release of Quizzin incorporating my suggestions. Of course some people might like it exactly the way it is, so I am suggesting that you make my suggestions new Quizzin settings, or Quiz parameters.

    The first and most important one from my perspective (and this is the one others have copied) is to make whether or not question numbers are displayed a Quizzin setting. When the setting is off it should work as it does now but when it is on, it should display question numbers during the quiz and also with the answers. To do that is very simple. For the final answers display in Show_Quiz.php

    $question_count = 1;
    foreach ($all_question as $ques) {
    $result .= “”;
    $result .= “”. $question_count . ‘. ‘ . stripslashes($ques->question) . “\n”;


    And when doing the quiz in Show_Quiz.php

    $question_count = 1;

    foreach ($all_question as $ques) {
    echo “”;
    echo “”. $question_count . ‘. ‘ . stripslashes($ques->question) . “”;

    echo “”;

    The other change relates to the ability to give a different response based on the score achieved, in each quiz. So when editing the quiz, instead of using your %%RATING%% variable with its values of ‘Failed'(0-39%), ‘Just Passed'(40%-50%), ‘Satisfactory’, ‘Competent’, ‘Good’, ‘Excellent’ and ‘Unbeatable'(100%), you could have a table of 10 ratings entries (with these values as defaults) that a quiz editor could change to suit their own purposes. Actually maybe 11 entries with one for > 100% for which the default response might be ‘Cheating’. This would also be extremely useful for people creating quizzes in a languages other than English.

    I hope you can see the value in my suggestions and can implement them for me and anybody else who loves your tool.

    Regards Greg

    • Sorry my code segments are missing stuff, I just copied and pasted and the stuff got lost in translation, as did the indetation, but I think there’s enough there for you to get the picture. I also meant to Bold the . ‘. ‘ after $question_count in the two echo statements. because this is also additional to your original code.

      Regards Greg

      • Agreed! It should be a Quizzin setting “Display Question numbers?”.

        By the way one of the guys who used my suggested changes, and actually helped me fix the code (ferhat) because I had previously used $ques -> ID, which doesn’t work if you have multiple quizzes (because each question ID is unique across the whole installation not just this Quiz), has his quizzes in a foreign language, so I am sure he’d love the second suggestion regarding the table of user specified %%RATING%% values.

  5. Hi Binny!

    Great plugin.
    I need some help though. is it possible to place the answer options in the same line as the question? if so, how do i do this? Im no php genius so it’s a bit difficult to try figure it out 🙂

  6. Hey, would anybody know an easy way to insert my quizzes as sidebar widgets?
    Any hints or ideas are much appreciated

  7. I installed this plugin like admin. But other users of web (WordPress) with no admin role cannot create quizzes because they don’t see it in own Tools menu. How to do that?

  8. I am a bit depressed now :-/
    looking for a simple one-question thing that changes regularly (quiz widget on sidebar).

    Today’s Quiz Pit bulls have locking jaws
    O Yes
    O No
    O I don’t know what a locking jaw is

    once you click on “Submit” or whatever – will pops a page, giving the right answer & explanation.

    Any ideas people? pleaase?

    • Looking for the exact same thing, Ivana. Although this quiz plugin looks fantastic, I’m still searching for a “one question, pops up per day” plugin.

  9. I have many questions. I know some are basic, but I cannot figure them out…

    1. I LOVE this plugin! I wanted to say that.

    2. I do understand how to create the polls. Do I have to manually install the polls plugin? Or, can I use the quizzen?

    You wrote:
    “Once the quiz plugin is created, just remove the correct answer option, limit the question to just one and record the answers – and you have a Poll plugin.”
    I cannot find the correct answer option. Which SPECIFIC option are you refering to?

    3. Consequently, I cannot figure out how to make a survey. Do I have to manually install the plugin? Or, can I use the quizzen plugin?

    You wrote:
    “To create a survey plugin, just remove the correct answer option and record the user’s input. You also need to create a interface to show the results. Voila – you have a survey plugin”
    An interface? How do I create this? Or, should I just use the survey plugin.

    4. Do the results get recorded? Hence, after 10 people use it, it says 6 people got this right and four people got it wrong. Can that happen?

    5. Also, can I create a “personality quiz” Ie, I set up 10 questions with no “wrong” answer. After a person fills out the survery, it tell s them their personality.

    For instance, Lets Say I wanted to do it about Seinfeld
    How ofted do you sleep? A. One to two hours B. Three Hours. C. 12 Hours. D. 19 hours.
    Hence, there is no right nor wrong answer. So a person fills out A. After twenty questions like it, it would say “kramer.”
    My blog is about the entertainment field.

    If this could be done, HOW can it be done?

    Thanks in advance!


    • I’m sorry – but you are reading it wrong. I created 3 plugins using the code of this plugin. I created a Polls plugin and Surveys plugin. You have to use those plugin to get the functionality – you won’t be able to use this.

      About the fourth question, no, quizzin don’t record the results. About the fifth, you’ll have to edit the code to get that effect.

  10. I installed you plugin and go to New Quiz but when I enter the name and description and then save I get this error msg any ideas pls ?

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@commercialbrakecalipers.co.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

  11. For the answers to each question– can substitute a picture instead text?

    For example: Which is the cutest pet? And there would be 3 pictures of a kitten, a puppy, a python with a radio button underneath each one.

  12. Hi,

    Very nice plugin.

    I have a little problem though. Whenever I try to save a new quiz, I am presented with the login screen.

    However, even if I log in with the right credentials, I cannot login, unless I reenter the correct website address in the adress line of the browser.

    The redirect_to is set to the http:// adress, not the https:// address.

    It is possible that your plugin cannot properly handle forced SSL login?

    Is it possible for you to fix that?

  13. Hi Binny.

    Brilliant plug-in
    Can you make it to work with Wordprss MU ( Multi site Now ) ? I have tested the wordpress by activating for network seems not working( Functions not available to non-admin users)

  14. Hi! This is an excellent plug-in.

    Like sakthi, I wish this would work with a multi-site installation. It’s just the plug-in I need to make an elearning site out of a WordPress site.

  15. Great plugin!

    But I need it in another language 😉
    Can someone please explain how I translate this?

    I have my nb_NO.mo and nb_NO.po files, they are now in the /lang dir.
    This does not seem to work though,

    Should I name the languagefiles something else?

  16. Hi I am beginner in word-press, I want to fetch all Quiz category(Quiz 1 ,Quiz 2 etc) first and after we clicking the category Quiz 1 then it will show all the question and choice. Where we edit for displaying the plug-in like this? would you please help me for the same

  17. I use specialy wordpress theme, created just for quizzes and flash games. I can easilly add my flash based quiz or game to it. Also thanks for sharing this information about Quizzin. I never heard before about it, so now I will definitly try it. Thanks.

  18. Provided of course that you don’t have, MU WordPress where they took away your right to modify plug-in code. As a consequence my question numbering that I worked so hard to put in, has now gone.

    So it would be nice if you gave us a parameter to turn Question numbering on if we wanted it Binny.

    Regards Greg

    • Oh just saw another comment about MU and wanted to assure Sakthi that my Quizzes with Binny’s plug-in still work fine, it’s just that I can’t edit his code to put my Question numbering back in.

  19. You said that we can have the quizzes automatically sent to an email address under Survey Settings page admin… where is that located? Or do we have to install your survey plugn in be able to send emails from the Quizzin plugin? Thanks!

  20. Hello, I am interested in hiring you to modify this plugin slightly. It pretty much does everything I need it to do expect for a few minor things. If you are interested please do email me and I will reply. I am very serous and this is for a site i am currently making.

    Thank You


  21. Hi,

    I am having problem creating questions for this plugin.
    I wanted to have 10 questions in 1 page and managed to have only 1 question saved. When I typed the 2nd question, it could not be saved.
    What might be the problem?
    I am using 2010 theme.

  22. Hi there, I’m using WordPress 3.2.1 with Quizzin Version 1.01.4

    I’ve set it to display questions one by one. With the first quiz I created, it does this just fine… but when I inserted a second quiz onto a different page, now all of a sudden both quizzes are displaying all the questions on a single page.

    Any idea why this is happening? Please let me know, as I love Quizzin and don’t want to switch to a different plugin. Thanks!

  23. Thanks for replying. When I go to Quizzin Settings, there is a box that says “Show all questions in a single page” – and that box is already unchecked. I don’t see anywhere to define the # of questions per page.

  24. hi i have installed your quizzin plugin in my wordpress site now my client wants previous next in the front end question section i am not using show all questions in a single page and i use show answers at the end.
    now next available by default in this mode i wanted previous also how do i do that please help me with the modifications to be done in the coding

  25. Hi binny,

    I have installed Quizzin plugin. Its working fine. But i need display three questions. its display only one question that is my problem. Is there any possible to display three question.

  26. Your comment is awaiting moderation.

    first i instal the “Quizzes” plugin and
    after Check “Tools > Manage Quiz”
    I am getting as given erro..

    Pls any one help me.

    Warning: require(/home/edomainz/public_html/indiabankexams.com//wp-content/plugins/quizzin/options.php) [function.require]: failed to open stream: No such file or directory in /home/edomainz/public_html/indiabankexams.com/wp-content/plugins/271-update-to-quizzin-by-binny-v-a/quizzin.php on line 40

    Fatal error: require() [function.require]: Failed opening required ‘/home/edomainz/public_html/indiabankexams.com//wp-content/plugins/quizzin/options.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/edomainz/public_html/indiabankexams.com/wp-content/plugins/271-update-to-quizzin-by-binny-v-a/quizzin.php on line 40

  27. Hi,
    In my web site; The answers seem to under the radio buttons.
    Radio buttons at the top, the answers remain at the bottom.

    I deleted tags from show_quiz.php but it didnt fix.
    How can I fix it?

  28. I am having problem with the font size of quiz questions display. It used to be fine, but lately the font has gone smaller. Do you know where in the code I can increase font size?

  29. You’ve been much helpful to all those using this plugin. We appreciate your good work and am one of those using the plugin.
    I would to know if its possible to put a time code on the quiz so that the quiz in session will end automatically and view the results in case the time elapses.

    Thank you.

      • I believe you would be of a help in doing this custom codings. Which quizzin file should be altered to get this result and which portion of that file should the alteration be done. Help since you are our MENTOR in this…Thanks

  30. Hi Binny,
    I have been using your plugin for about 3 years now and it has continued to work very well with new versions of wordpress. I would love to give you a donation, but I cannot find any way to provide a donation to you.

    Also, I want to make sure that this plugin continues to work with future changes to WordPress. Do you plan on keeping it working with updates to WordPress. I surely would be willing to support this plugin on a regular basis if I knew that I would always work.

    Please let me know how I might be able to donate to you.
    Also, do you have any plans to improve the quizzin plugin such as storing user test scores or features like drag and drop matching?

    Kind regards,

    • Thanks a lot 🙂 You can always donate to my paypal account – the email id is binnyva (at) hotmail. If you find any issue with it, just let me know and I’ll look into it. But, yes, time is a bit of a challange for me – I have other things to do too.

      I have some ideas for Quizzin – but the two you mentioned are not in it yet. I’ll see what I can do.

  31. Binny, great plugin. I have a problem now, however.

    It works but when I want to access the plugin settings I get this error message:

    Fatal error: Call to undefined function e() in /home/pagami0/public_html/makeyourbrand.com/info/wp-content/plugins/quizzin/options.php on line 15

    If I go in “manage quiz” in tools, I get this error message:
    Fatal error: Call to undefined function e() in /home/pagami0/public_html/makeyourbrand.com/info/wp-content/plugins/quizzin/quiz.php on line 16

    As I said, the plugin works, just I cannot access the settings.

Leave a Reply to Binny V A Cancel reply

Your email address will not be published.