I applied a few plug-in upgrades yesterday without thinking.
After updating WP Survey v2.8.3 I got an email to say that test results weren't working properly because I forgot to apply a number of necessary patches.
The most significant, provided elsewhere, in Lib/Wpsqrt/Shortcode.php
Around line 334
Replace:
// TODO Insert ability to set point per answer scores
$incorrect += $questionData["points"];
$answerMarked['mark'] = "incorrect";
With:
if ($questionData["type"] == 'Multiple' && $questionData["points"] > 1)
{
$partial = floor(($questionData['points']*$subCorrect/$subNumOfCorrect)-$subIncorrect);
$correct += $partial;
$incorrect += ($questionData['points']-$partial);
$answerMarked['mark'] = ($partial > 0)?'correct':'incorrect';
} else {
// Incorrect single answer question or multiple worth 1 point
$incorrect += $questionData['points'];
$answerMarked['mark'] = "incorrect";
}
to correctly apply scoring to partially correct multiple answer questions.
PLEASE could this be applied to the next version.
http://wordpress.org/extend/plugins/wp-survey-and-quiz-tool/