Title: Results %
Last modified: April 7, 2017

---

# Results %

 *  Resolved [Islo](https://wordpress.org/support/users/nuytun/)
 * (@nuytun)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/results/)
 * Hi
    Can you tell me what page the results are listed (i.e. results.php) and in
   what folder? I can’t find it.
 * I see you have percentages in the graph and want to move those to the category
   line.
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [ustimenko](https://wordpress.org/support/users/ustimenko/)
 * (@ustimenko)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/results/#post-9008770)
 * Start from here: [https://github.com/garex/wp-testing/tree/develop/src/Template](https://github.com/garex/wp-testing/tree/develop/src/Template)
 *  Thread Starter [Islo](https://wordpress.org/support/users/nuytun/)
 * (@nuytun)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/results/#post-9038485)
 * Hi
 * Does anyone know where the code below might be placed to get the % score results
   to show on the category line?
 * I found the % code:
    `<span style="width: <?php echo $scale->getValueAsRatio()*
   100 ?>%"></span>`
 * I am not sure where or how to place it.
 * Here is the code snippet from getresults.php:
 *     ```
       <?php if ($isShowScales): ?>
   
           <?php foreach ($scales as $i => $scale): /* @var $scale WpTesting_Model_Scale */ ?>
   
               <h3 class="<?php echo $scale->getCssClass($i) ?> title"><?php echo $scale->getTitle() ?></h4>
   
               <div class="<?php echo $scale->getCssClass($i) ?> scores">
                   <?php echo $scale->formatValueAsOutOf() ?>
               </div>
               <div class="<?php echo $scale->getCssClass($i) ?> meter">
                   <span style="width: <?php echo $scale->getValueAsRatio()*100 ?>%"></span>
               </div>
   
               <div class="<?php echo $scale->getCssClass($i) ?> description"><?php echo $renderer->renderWithMoreSplitted($renderer->renderTextAsHtml($scale->getDescription())) ?></div>
   
           <?php endforeach ?>
   
       <?php endif ?>
       ```
   
 *  Thread Starter [Islo](https://wordpress.org/support/users/nuytun/)
 * (@nuytun)
 * [9 years ago](https://wordpress.org/support/topic/results/#post-9054801)
 * Ok, found the solution:
 * Find the file get-results.php
    (in the folder: :src/Template/Test/Passer/get-
   results.php)
 * take this line:
    <?php echo $scale->formatValueAsOutOf() ?>
 * and change it to this:
    <?php echo $scale->formatValueAsOutOf() . ” – ” . $scale-
   >getValueAsRatio()*100 . “%”; ?>
 * The percentage will now be displayed after the score on the results page.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Results %’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-testing_fff0ea.svg)
 * [Psychological tests & quizzes](https://wordpress.org/plugins/wp-testing/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-testing/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-testing/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-testing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-testing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-testing/reviews/)

## Tags

 * [wp-testing-support](https://wordpress.org/support/topic-tag/wp-testing-support/)

 * 3 replies
 * 2 participants
 * Last reply from: [Islo](https://wordpress.org/support/users/nuytun/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/results/#post-9054801)
 * Status: resolved