PluginProbe
Code Profiler – WordPress Performance Profiling and Debugging Made Easy / 1.7.4
Code Profiler – WordPress Performance Profiling and Debugging Made Easy v1.7.4
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 +45 -37 1.5.31.7.4 View file →
@@ -6,18 +6,20 @@
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 -if (! defined( 'ABSPATH' ) ) { die( 'Forbidden' ); }
14 +if (! defined('ABSPATH') ) {
15 + die('Forbidden');
16 +}
15 17
16 18 // =====================================================================
17 19 // Display contextual help below each chart and table.
18 20
19 -if ( $type == 'slugs' ) {
21 +if ( $type == 'slugs') {
20 22
21 23 ?>
22 24 <table class="widefat">
23 25 <tr>
@@ -22,9 +24,15 @@
22 24 <table class="widefat">
23 25 <tr>
24 26 <td><h4><?php echo esc_html( $section_list[ $section ] ) ?></h4>
25 27 <p>
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' ) ?>
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 + ) ?>
27 35 </p>
28 36 </td>
29 37 </tr>
30 38 </table>
@@ -29,116 +37,116 @@
29 37 </tr>
30 38 </table>
31 39 <?php
32 40
33 -} elseif ( $type == 'iostats' ) {
41 +} elseif ( $type == 'iostats') {
34 42
35 43 ?>
36 44 <table class="widefat">
37 45 <tr>
38 46 <td><h4><?php echo esc_html( $section_list[ $section ] ) ?></h4>
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>
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>
40 48 <table class="widefat" style="border:none;box-shadow:none">
41 49 <tr>
42 50 <td style="width:50%">
43 - <code>cast</code>: <?php esc_html_e('Retrieve the underlaying resource (stream_select).', 'code-profiler' ) ?>
51 + <code>cast</code>: <?php esc_html_e('Retrieve the underlaying resource (stream_select).', 'code-profiler') ?>
44 52 </td>
45 53 <td style="width:50%">
46 - <code>chgrp</code>: <?php esc_html_e('Change file group.', 'code-profiler' ) ?>
54 + <code>chgrp</code>: <?php esc_html_e('Change file group.', 'code-profiler') ?>
47 55 </td>
48 56 </tr>
49 57 <tr>
50 58 <td>
51 - <code>chmod</code>: <?php esc_html_e('Change file mode.', 'code-profiler' ) ?>
59 + <code>chmod</code>: <?php esc_html_e('Change file mode.', 'code-profiler') ?>
52 60 </td>
53 61 <td>
54 - <code>chown</code>: <?php esc_html_e('Change file owner.', 'code-profiler' ) ?>
62 + <code>chown</code>: <?php esc_html_e('Change file owner.', 'code-profiler') ?>
55 63 </td>
56 64 </tr>
57 65 <tr>
58 66 <td>
59 - <code>close</code>: <?php esc_html_e('Close a resource (fclose).', 'code-profiler' ) ?>
67 + <code>close</code>: <?php esc_html_e('Close a resource (fclose).', 'code-profiler') ?>
60 68 </td>
61 69 <td>
62 - <code>closedir</code>: <?php esc_html_e('Close directory handle.', 'code-profiler' ) ?>
70 + <code>closedir</code>: <?php esc_html_e('Close directory handle.', 'code-profiler') ?>
63 71 </td>
64 72 </tr>
65 73 <tr>
66 74 <td>
67 - <code>eof</code>: <?php esc_html_e('Test for end-of-file on a file pointer (feof).', 'code-profiler' ) ?>
75 + <code>eof</code>: <?php esc_html_e('Test for end-of-file on a file pointer (feof).', 'code-profiler') ?>
68 76 </td>
69 77 <td>
70 - <code>flush</code>: <?php esc_html_e('Flush the output (fflush).', 'code-profiler' ) ?>
78 + <code>flush</code>: <?php esc_html_e('Flush the output (fflush).', 'code-profiler') ?>
71 79 </td>
72 80 </tr>
73 81 <tr>
74 82 <td>
75 - <code>lock</code>: <?php esc_html_e('Advisory file locking (flock).', 'code-profiler' ) ?>
83 + <code>lock</code>: <?php esc_html_e('Advisory file locking (flock).', 'code-profiler') ?>
76 84 </td>
77 85 <td>
78 - <code>mkdir</code>: <?php esc_html_e('Create a directory.', 'code-profiler' ) ?>
86 + <code>mkdir</code>: <?php esc_html_e('Create a directory.', 'code-profiler') ?>
79 87 </td>
80 88 </tr>
81 89 <tr>
82 90 <td>
83 - <code>open</code>: <?php esc_html_e('Open file (e.g., fopen, file_get_contents).', 'code-profiler' ) ?>
91 + <code>open</code>: <?php esc_html_e('Open file (e.g., fopen, file_get_contents).', 'code-profiler') ?>
84 92 </td>
85 93 <td>
86 - <code>opendir</code>: <?php esc_html_e('Open directory handle.', 'code-profiler' ) ?>
94 + <code>opendir</code>: <?php esc_html_e('Open directory handle.', 'code-profiler') ?>
87 95 </td>
88 96 </tr>
89 97 <tr>
90 98 <td>
91 - <code>read</code>: <?php esc_html_e('Read from stream (e.g., fread, fgets).', 'code-profiler' ) ?>
99 + <code>read</code>: <?php esc_html_e('Read from stream (e.g., fread, fgets).', 'code-profiler') ?>
92 100 </td>
93 101 <td>
94 - <code>readdir</code>: <?php esc_html_e('Read entry from directory handle.', 'code-profiler' ) ?>
102 + <code>readdir</code>: <?php esc_html_e('Read entry from directory handle.', 'code-profiler') ?>
95 103 </td>
96 104 <tr>
97 105 <tr>
98 106 <td>
99 - <code>rename</code>: <?php esc_html_e('Rename a file or directory.', 'code-profiler' ) ?>
107 + <code>rename</code>: <?php esc_html_e('Rename a file or directory.', 'code-profiler') ?>
100 108 </td>
101 109 <td>
102 - <code>rewinddir</code>: <?php esc_html_e('Rewind directory handle.', 'code-profiler' ) ?>
110 + <code>rewinddir</code>: <?php esc_html_e('Rewind directory handle.', 'code-profiler') ?>
103 111 </td>
104 112 </tr>
105 113 <tr>
106 114 <td>
107 - <code>rmdir</code>: <?php esc_html_e('Remove a directory.', 'code-profiler' ) ?>
115 + <code>rmdir</code>: <?php esc_html_e('Remove a directory.', 'code-profiler') ?>
108 116 </td>
109 117 <td>
110 - <code>seek</code>: <?php esc_html_e('Seek to specific location in a stream (fseek).', 'code-profiler' ) ?>
118 + <code>seek</code>: <?php esc_html_e('Seek to specific location in a stream (fseek).', 'code-profiler') ?>
111 119 </td>
112 120 </tr>
113 121 <tr>
114 122 <td>
115 - <code>set_option</code>: <?php esc_html_e('Change stream options.', 'code-profiler' ) ?>
123 + <code>set_option</code>: <?php esc_html_e('Change stream options.', 'code-profiler') ?>
116 124 </td><td>
117 - <code>stat</code>: <?php esc_html_e('Retrieve information about a file resource (fstat).', 'code-profiler' ) ?>
125 + <code>stat</code>: <?php esc_html_e('Retrieve information about a file resource (fstat).', 'code-profiler') ?>
118 126 </td>
119 127 </tr>
120 128 <tr>
121 129 <td>
122 - <code>tell</code>: <?php esc_html_e('Retrieve the current position of a stream. (fseek).', 'code-profiler' ) ?>
130 + <code>tell</code>: <?php esc_html_e('Retrieve the current position of a stream. (fseek).', 'code-profiler') ?>
123 131 </td><td>
124 - <code>truncate</code>: <?php esc_html_e('Truncate stream (ftruncate).', 'code-profiler' ) ?>
132 + <code>truncate</code>: <?php esc_html_e('Truncate stream (ftruncate).', 'code-profiler') ?>
125 133 </td>
126 134 </tr>
127 135 <tr>
128 136 <td>
129 - <code>touch</code>: <?php esc_html_e('Set access and modification time of file.', 'code-profiler' ) ?>
137 + <code>touch</code>: <?php esc_html_e('Set access and modification time of file.', 'code-profiler') ?>
130 138 </td>
131 139 <td>
132 - <code>unlink</code>: <?php esc_html_e('Delete a file.', 'code-profiler' ) ?>
140 + <code>unlink</code>: <?php esc_html_e('Delete a file.', 'code-profiler') ?>
133 141 </td>
134 142 </tr>
135 143 <tr>
136 144 <td>
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' ) ?>
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') ?>
138 146 </td>
139 147 <td>
140 - <code>write</code>: <?php esc_html_e('Write to stream (fwrite).', 'code-profiler' ) ?>
148 + <code>write</code>: <?php esc_html_e('Write to stream (fwrite).', 'code-profiler') ?>
141 149 </td>
142 150 </tr>
143 151 </table>
144 152 </td>
@@ -145,15 +153,15 @@
145 153 </tr>
146 154 </table>
147 155 <?php
148 156
149 -} elseif ( $type == 'diskio' ) {
157 +} elseif ( $type == 'diskio') {
150 158
151 159 ?>
152 160 <table class="widefat">
153 161 <tr>
154 162 <td><h4><?php echo esc_html( $section_list[ $section ] ) ?></h4>
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>
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>
156 164
157 165 </td>
158 166 </tr>
159 167 </table>
@@ -159,9 +167,9 @@
159 167 </table>
160 168 <?php
161 169
162 170 // Profiles list
163 -} elseif ( $type == 'profiles_list' ) {
171 +} elseif ( $type == 'profiles_list') {
164 172
165 173 ?>
166 174 <table class="widefat">
167 175 <tr>
@@ -166,12 +174,12 @@
166 174 <table class="widefat">
167 175 <tr>
168 176 <td><h4><?php esc_html_e('Profiles List', 'code-profiler') ?></h4>
169 177 <p><?php esc_html_e('This page shows all saved profiles with sortable columns:', 'code-profiler') ?></p>
170 - <ul class="license-help-view" style="font-size:15px;">
178 + <ul class="license-help-view">
171 179 <li><?php esc_html_e('Profile: name of the saved profile.', 'code-profiler') ?></li>
172 180 <li><?php esc_html_e('Date: creation date of the profile.', 'code-profiler') ?></li>
173 - <li><?php esc_html_e('Items: number of plugins + the current theme.', 'code-profiler') ?></li>
181 + <li><?php esc_html_e('Item: number of plugins + the current theme.', 'code-profiler') ?></li>
174 182 <li><?php esc_html_e('Time: execution time in second.', 'code-profiler') ?></li>
175 183 <li><?php esc_html_e('Memory: peak memory in megabytes.', 'code-profiler') ?></li>
176 184 <li><?php esc_html_e('File I/O: sum of all file I/O operations.', 'code-profiler') ?></li>
177 185 <li><?php esc_html_e('SQL: sum of database queries (WordPress, all plugins and the theme).', 'code-profiler') ?></li>