PluginProbe
Code Profiler – WordPress Performance Profiling and Debugging Made Easy / 1.9.6
Code Profiler – WordPress Performance Profiling and Debugging Made Easy v1.9.6
1.9.6 1.9.5 1.9.4 1.9.3 trunk 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.6 1.6.1 1.6.10 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 All 41 releases
← All changes | lib/menu_view_iostats.php +20 -2 1.4.11.9.6 View file →
@@ -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' ); }
@@ -48,9 +48,9 @@
48 48 $count = count( $label ) - 1;
49 49 $data = rtrim( $data, ',' );
50 50
51 51 ?>
52 -<div style="width:80vw;margin:auto">
52 +<div style="width:80vw;margin:auto" aria-hidden="true">
53 53 <canvas id="myChart"></canvas>
54 54 </div>
55 55 <script>
56 56 jQuery(document).ready(function() {
@@ -64,8 +64,26 @@
64 64 [<?php echo esc_js( $data ) ?>], <?php echo esc_js( $total_calls ) ?>
65 65 );
66 66 });
67 67 </script>
68 +
69 +<!-- Screen-reader only -->
70 +<div class="visually-hidden">
71 +<?php
72 + $sr_data = explode(',', $data );
73 + echo "<table>\n".
74 + "\t<tr>\n".
75 + "\t\t<td>". esc_html__('I/O operations', 'code-profiler') ."</td>".
76 + "<td>". esc_html__('Total calls', 'code-profiler') ."</td>\n";
77 + for( $i = 0; $i <= $count; $i++ ) {
78 + echo "\t<tr>\n\t\t<td>". esc_html( $label[ $i ] ) ."</td>".
79 + "<td>". esc_html( $sr_data[ $i ] ) ."</td>\n\t</tr>\n";
80 + }
81 + echo "</table>\n";
82 +?>
83 +</div>
84 +<!-- End of Screen-reader only -->
85 +
68 86 <?php
69 87 // Actions below stats
70 88 $save_png = 1;
71 89 $rotate_img = 1;