PluginProbe
Code Profiler – WordPress Performance Profiling and Debugging Made Easy / 1.6
Code Profiler – WordPress Performance Profiling and Debugging Made Easy v1.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 1.6.8 All 40 releases
← All changes | lib/help.php +35 -43 trunk1.6 View file →
@@ -6,20 +6,18 @@
6 6 | | | / _ \ / _` |/ _ \ | |_) | '__/ _ \| |_| | |/ _ \ '__| |
7 7 | | |__| (_) | (_| | __/ | __/| | | (_) | _| | | __/ | |
8 8 | \____\___/ \__,_|\___| |_| |_| \___/|_| |_|_|\___|_| |
9 9 | |
10 - | (c) Jerome Bruandet ~ https://nintechnet.com/codeprofiler/ |
10 + | (c) Jerome Bruandet ~ https://code-profiler.com/ |
11 11 +=====================================================================+
12 12 */
13 13
14 -if (! defined('ABSPATH') ) {
15 - die('Forbidden');
16 -}
14 +if (! defined( 'ABSPATH' ) ) { die( 'Forbidden' ); }
17 15
18 16 // =====================================================================
19 17 // Display contextual help below each chart and table.
20 18
21 -if ( $type == 'slugs') {
19 +if ( $type == 'slugs' ) {
22 20
23 21 ?>
24 22 <table class="widefat">
25 23 <tr>
@@ -24,15 +22,9 @@
24 22 <table class="widefat">
25 23 <tr>
26 24 <td><h4><?php echo esc_html( $section_list[ $section ] ) ?></h4>
27 25 <p>
28 - <?php esc_html_e('This chart shows the execution time of all activated plugins and the current theme, in seconds and percentage, for the current profile.', 'code-profiler') ?>
29 - <br />
30 - <?php printf(
31 - esc_html__('Note that the execution time excludes any kind of website optimization (caching, CDN, PHP OPcache etc). Consult the %sFAQ%s for more details about that.', 'code-profiler'),
32 - '<a href="?page=code-profiler&cptab=faq">',
33 - '</a>'
34 - ) ?>
26 + <?php esc_html_e('This chart shows the execution time of all activated plugins and the current theme, in seconds and percentage, for the current profile.', 'code-profiler' ) ?>
35 27 </p>
36 28 </td>
37 29 </tr>
38 30 </table>
@@ -37,116 +29,116 @@
37 29 </tr>
38 30 </table>
39 31 <?php
40 32
41 -} elseif ( $type == 'iostats') {
33 +} elseif ( $type == 'iostats' ) {
42 34
43 35 ?>
44 36 <table class="widefat">
45 37 <tr>
46 38 <td><h4><?php echo esc_html( $section_list[ $section ] ) ?></h4>
47 - <p><?php esc_html_e('The chart displays all file I/O operations that occurred while your website was loading. The following operations are monitored by Code Profiler:', 'code-profiler') ?></p>
39 + <p><?php esc_html_e('The chart displays all file I/O operations that occurred while your website was loading. The following operations are monitored by Code Profiler:', 'code-profiler' ) ?></p>
48 40 <table class="widefat" style="border:none;box-shadow:none">
49 41 <tr>
50 42 <td style="width:50%">
51 - <code>cast</code>: <?php esc_html_e('Retrieve the underlaying resource (stream_select).', 'code-profiler') ?>
43 + <code>cast</code>: <?php esc_html_e('Retrieve the underlaying resource (stream_select).', 'code-profiler' ) ?>
52 44 </td>
53 45 <td style="width:50%">
54 - <code>chgrp</code>: <?php esc_html_e('Change file group.', 'code-profiler') ?>
46 + <code>chgrp</code>: <?php esc_html_e('Change file group.', 'code-profiler' ) ?>
55 47 </td>
56 48 </tr>
57 49 <tr>
58 50 <td>
59 - <code>chmod</code>: <?php esc_html_e('Change file mode.', 'code-profiler') ?>
51 + <code>chmod</code>: <?php esc_html_e('Change file mode.', 'code-profiler' ) ?>
60 52 </td>
61 53 <td>
62 - <code>chown</code>: <?php esc_html_e('Change file owner.', 'code-profiler') ?>
54 + <code>chown</code>: <?php esc_html_e('Change file owner.', 'code-profiler' ) ?>
63 55 </td>
64 56 </tr>
65 57 <tr>
66 58 <td>
67 - <code>close</code>: <?php esc_html_e('Close a resource (fclose).', 'code-profiler') ?>
59 + <code>close</code>: <?php esc_html_e('Close a resource (fclose).', 'code-profiler' ) ?>
68 60 </td>
69 61 <td>
70 - <code>closedir</code>: <?php esc_html_e('Close directory handle.', 'code-profiler') ?>
62 + <code>closedir</code>: <?php esc_html_e('Close directory handle.', 'code-profiler' ) ?>
71 63 </td>
72 64 </tr>
73 65 <tr>
74 66 <td>
75 - <code>eof</code>: <?php esc_html_e('Test for end-of-file on a file pointer (feof).', 'code-profiler') ?>
67 + <code>eof</code>: <?php esc_html_e('Test for end-of-file on a file pointer (feof).', 'code-profiler' ) ?>
76 68 </td>
77 69 <td>
78 - <code>flush</code>: <?php esc_html_e('Flush the output (fflush).', 'code-profiler') ?>
70 + <code>flush</code>: <?php esc_html_e('Flush the output (fflush).', 'code-profiler' ) ?>
79 71 </td>
80 72 </tr>
81 73 <tr>
82 74 <td>
83 - <code>lock</code>: <?php esc_html_e('Advisory file locking (flock).', 'code-profiler') ?>
75 + <code>lock</code>: <?php esc_html_e('Advisory file locking (flock).', 'code-profiler' ) ?>
84 76 </td>
85 77 <td>
86 - <code>mkdir</code>: <?php esc_html_e('Create a directory.', 'code-profiler') ?>
78 + <code>mkdir</code>: <?php esc_html_e('Create a directory.', 'code-profiler' ) ?>
87 79 </td>
88 80 </tr>
89 81 <tr>
90 82 <td>
91 - <code>open</code>: <?php esc_html_e('Open file (e.g., fopen, file_get_contents).', 'code-profiler') ?>
83 + <code>open</code>: <?php esc_html_e('Open file (e.g., fopen, file_get_contents).', 'code-profiler' ) ?>
92 84 </td>
93 85 <td>
94 - <code>opendir</code>: <?php esc_html_e('Open directory handle.', 'code-profiler') ?>
86 + <code>opendir</code>: <?php esc_html_e('Open directory handle.', 'code-profiler' ) ?>
95 87 </td>
96 88 </tr>
97 89 <tr>
98 90 <td>
99 - <code>read</code>: <?php esc_html_e('Read from stream (e.g., fread, fgets).', 'code-profiler') ?>
91 + <code>read</code>: <?php esc_html_e('Read from stream (e.g., fread, fgets).', 'code-profiler' ) ?>
100 92 </td>
101 93 <td>
102 - <code>readdir</code>: <?php esc_html_e('Read entry from directory handle.', 'code-profiler') ?>
94 + <code>readdir</code>: <?php esc_html_e('Read entry from directory handle.', 'code-profiler' ) ?>
103 95 </td>
104 96 <tr>
105 97 <tr>
106 98 <td>
107 - <code>rename</code>: <?php esc_html_e('Rename a file or directory.', 'code-profiler') ?>
99 + <code>rename</code>: <?php esc_html_e('Rename a file or directory.', 'code-profiler' ) ?>
108 100 </td>
109 101 <td>
110 - <code>rewinddir</code>: <?php esc_html_e('Rewind directory handle.', 'code-profiler') ?>
102 + <code>rewinddir</code>: <?php esc_html_e('Rewind directory handle.', 'code-profiler' ) ?>
111 103 </td>
112 104 </tr>
113 105 <tr>
114 106 <td>
115 - <code>rmdir</code>: <?php esc_html_e('Remove a directory.', 'code-profiler') ?>
107 + <code>rmdir</code>: <?php esc_html_e('Remove a directory.', 'code-profiler' ) ?>
116 108 </td>
117 109 <td>
118 - <code>seek</code>: <?php esc_html_e('Seek to specific location in a stream (fseek).', 'code-profiler') ?>
110 + <code>seek</code>: <?php esc_html_e('Seek to specific location in a stream (fseek).', 'code-profiler' ) ?>
119 111 </td>
120 112 </tr>
121 113 <tr>
122 114 <td>
123 - <code>set_option</code>: <?php esc_html_e('Change stream options.', 'code-profiler') ?>
115 + <code>set_option</code>: <?php esc_html_e('Change stream options.', 'code-profiler' ) ?>
124 116 </td><td>
125 - <code>stat</code>: <?php esc_html_e('Retrieve information about a file resource (fstat).', 'code-profiler') ?>
117 + <code>stat</code>: <?php esc_html_e('Retrieve information about a file resource (fstat).', 'code-profiler' ) ?>
126 118 </td>
127 119 </tr>
128 120 <tr>
129 121 <td>
130 - <code>tell</code>: <?php esc_html_e('Retrieve the current position of a stream. (fseek).', 'code-profiler') ?>
122 + <code>tell</code>: <?php esc_html_e('Retrieve the current position of a stream. (fseek).', 'code-profiler' ) ?>
131 123 </td><td>
132 - <code>truncate</code>: <?php esc_html_e('Truncate stream (ftruncate).', 'code-profiler') ?>
124 + <code>truncate</code>: <?php esc_html_e('Truncate stream (ftruncate).', 'code-profiler' ) ?>
133 125 </td>
134 126 </tr>
135 127 <tr>
136 128 <td>
137 - <code>touch</code>: <?php esc_html_e('Set access and modification time of file.', 'code-profiler') ?>
129 + <code>touch</code>: <?php esc_html_e('Set access and modification time of file.', 'code-profiler' ) ?>
138 130 </td>
139 131 <td>
140 - <code>unlink</code>: <?php esc_html_e('Delete a file.', 'code-profiler') ?>
132 + <code>unlink</code>: <?php esc_html_e('Delete a file.', 'code-profiler' ) ?>
141 133 </td>
142 134 </tr>
143 135 <tr>
144 136 <td>
145 - <code>url_stat</code>: <?php esc_html_e('Retrieve information about a file. This method is called in response to all stat related functions, such as copy, filesize, filetype, is_dir, is_file, file_exists etc.', 'code-profiler') ?>
137 + <code>url_stat</code>: <?php esc_html_e('Retrieve information about a file. This method is called in response to all stat related functions, such as copy, filesize, filetype, is_dir, is_file, file_exists etc.', 'code-profiler' ) ?>
146 138 </td>
147 139 <td>
148 - <code>write</code>: <?php esc_html_e('Write to stream (fwrite).', 'code-profiler') ?>
140 + <code>write</code>: <?php esc_html_e('Write to stream (fwrite).', 'code-profiler' ) ?>
149 141 </td>
150 142 </tr>
151 143 </table>
152 144 </td>
@@ -153,15 +145,15 @@
153 145 </tr>
154 146 </table>
155 147 <?php
156 148
157 -} elseif ( $type == 'diskio') {
149 +} elseif ( $type == 'diskio' ) {
158 150
159 151 ?>
160 152 <table class="widefat">
161 153 <tr>
162 154 <td><h4><?php echo esc_html( $section_list[ $section ] ) ?></h4>
163 - <p><?php esc_html_e('The chart shows the total amount of disk I/O read and write data, in bytes, that occurred while your website was loading. It includes all activated plugins, the current theme and also WordPress.', 'code-profiler') ?></p>
155 + <p><?php esc_html_e('The chart shows the total amount of disk I/O read and write data, in bytes, that occurred while your website was loading. It includes all activated plugins, the current theme and also WordPress.', 'code-profiler' ) ?></p>
164 156
165 157 </td>
166 158 </tr>
167 159 </table>
@@ -167,9 +159,9 @@
167 159 </table>
168 160 <?php
169 161
170 162 // Profiles list
171 -} elseif ( $type == 'profiles_list') {
163 +} elseif ( $type == 'profiles_list' ) {
172 164
173 165 ?>
174 166 <table class="widefat">
175 167 <tr>