| @@ -6,9 +6,9 @@ | ||
| 6 | 6 | | | | / _ \ / _` |/ _ \ | |_) | '__/ _ \| |_| | |/ _ \ '__| | |
| 7 | 7 | | | |__| (_) | (_| | __/ | __/| | | (_) | _| | | __/ | | |
| 8 | 8 | | \____\___/ \__,_|\___| |_| |_| \___/|_| |_|_|\___|_| | |
| 9 | 9 | | | |
| 10 | - | (c) Jerome Bruandet ~ https://code-profiler.com/ | | |
| 10 | + | (c) Jerome Bruandet ~ https://nintechnet.com/codeprofiler/ | | |
| 11 | 11 | +=====================================================================+ |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | if (! defined( 'ABSPATH' ) ) { die( 'Forbidden' ); } |
| @@ -31,9 +31,9 @@ | ||
| 31 | 31 | $axis = $cp_options['chart_type']; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | ?> |
| 35 | -<div style="width:80vw;margin:auto"> | |
| 35 | +<div style="width:80vw;margin:auto" aria-hidden="true"> | |
| 36 | 36 | <canvas id="myChart"></canvas> |
| 37 | 37 | </div> |
| 38 | 38 | <script> |
| 39 | 39 | jQuery(document).ready(function() { |
| @@ -47,8 +47,23 @@ | ||
| 47 | 47 | ?>] |
| 48 | 48 | ); |
| 49 | 49 | }); |
| 50 | 50 | </script> |
| 51 | + | |
| 52 | +<!-- Screen-reader only --> | |
| 53 | +<div class="visually-hidden"> | |
| 54 | +<?php | |
| 55 | + echo "<table>\n". | |
| 56 | + "\t<tr>\n". | |
| 57 | + "\t\t<td>". esc_html__('I/O Read bytes', 'code-profiler') ."</td>". | |
| 58 | + "<td>". esc_html__('I/O Write bytes', 'code-profiler') ."</td>\n". | |
| 59 | + "\t<tr>\n\t\t<td>". esc_html( number_format( $buffer[0][1] ) ) ."</td>". | |
| 60 | + "<td>". esc_html( number_format( $buffer[1][1] ) ) ."</td>\n\t</tr>\n". | |
| 61 | + "</table>\n"; | |
| 62 | +?> | |
| 63 | +</div> | |
| 64 | +<!-- End of Screen-reader only --> | |
| 65 | + | |
| 51 | 66 | <?php |
| 52 | 67 | // Actions below stats |
| 53 | 68 | $save_png = 1; |
| 54 | 69 | $rotate_img = 1; |