PluginProbe
Code Profiler – WordPress Performance Profiling and Debugging Made Easy / trunk
Code Profiler – WordPress Performance Profiling and Debugging Made Easy vtrunk
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
code-profiler / lib / menu_faq.php

menu_faq.php in Code Profiler – WordPress Performance Profiling and Debugging Made Easy trunk, at lib/menu_faq.php

102 lines 6.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 +=====================================================================+
4 | ____ _ ____ __ _ _ |
5 | / ___|___ __| | ___ | _ \ _ __ ___ / _(_) | ___ _ __ |
6 | | | / _ \ / _` |/ _ \ | |_) | '__/ _ \| |_| | |/ _ \ '__| |
7 | | |__| (_) | (_| | __/ | __/| | | (_) | _| | | __/ | |
8 | \____\___/ \__,_|\___| |_| |_| \___/|_| |_|_|\___|_| |
9 | |
10 | (c) Jerome Bruandet ~ https://nintechnet.com/codeprofiler/ |
11 +=====================================================================+
12 */
13
14 if (! defined('ABSPATH') ) {
15 die('Forbidden');
16 }
17
18 // =====================================================================
19 // Display FAQ tab.
20
21
22 echo code_profiler_display_tabs( 5 );
23
24 ?>
25 <br />
26 <table class="widefat">
27 <tr>
28 <td style="border-bottom:1px solid #c3c4c7">
29 <h4><?php esc_html_e('What is Code Profiler?', 'code-profiler') ?></h4>
30 <?php esc_html_e('Code Profiler measures the performance of your plugins and themes at the PHP level, and helps you to quickly find any potential problem in your WordPress installation. It generates an extremely detailed and easy to read analysis in the form of charts and tables that shows not only which plugin or theme, but also which PHP script, class, method and function is slowing down your website. It displays many useful additional information such as file I/O operations and disk I/O usage as well.', 'code-profiler') ?>
31 <br />
32 <?php esc_html_e('It makes it very simple to locate any speed problem in your themes or plugins in order to solve it and speed up your website.', 'code-profiler') ?>
33 </td>
34 </tr>
35 <tr>
36 <td style="border-bottom:1px solid #c3c4c7">
37 <h4><?php esc_html_e('Why does the execution time and memory returned by Code Profiler seem higher than when I load my site in my browser?', 'code-profiler') ?></h4>
38 <?php esc_html_e('Because the profiler needs to analyze your PHP code, it must exclude and disable any kind of website optimization: caching, CDN and PHP OPcache.', 'code-profiler') ?>
39 <br />
40 <?php esc_html_e('A caching sofware and a CDN service will prevent execution of your code and thus must be disabled by the profiler.', 'code-profiler') ?>
41 <br />
42 <?php esc_html_e('Regarding the opcode cache, PHP includes an opcode optimizer since version 7.0: after creating the first set of opcodes, it forwards it to the optimizer where it will get through 13 passes that will optimize it (peephole, jump, call, literal optimizations etc). That means that at the end of the day, the code in the opcache may have been optimized and thus may not match the original code found in your scripts. For that reason, it must be disabled. That problem occurs with other profilers too such as the xdebug extension, which cannot run well when the optimizer is turned on because it removes some virtual machine instructions needed by them.', 'code-profiler') ?>
43 <br />
44 <?php esc_html_e('Note that disabling the opcode cache also increases the memory usage because PHP needs to open, read, parse and compile all scripts instead of serving them from the cache.', 'code-profiler') ?>
45 </td>
46 </tr>
47 <tr>
48 <td style="border-bottom:1px solid #c3c4c7">
49 <h4><?php esc_html_e('Why do I see numbers such as "3E-06" or "1.2E-05" after opening the CSV file with my spreadsheet editor?', 'code-profiler') ?></h4>
50 <?php esc_html_e('Spreadsheet editors such as LibreOffice Calc and Microsoft Excel can use scientific exponential notation to display very small numbers, for instance, 0.000025 will become 2.5e-5. Select the whole column of numbers and, in the toolbar of your spreadsheet editor, click the button to increase the number of decimals to 6.', 'code-profiler') ?>
51 </td>
52 </tr>
53 <tr>
54 <td style="border-bottom:1px solid #c3c4c7">
55 <h4><?php esc_html_e('Do I need to deactivate or uninstall Code Profiler when I\'m not using it ?', 'code-profiler') ?></h4>
56 <?php esc_html_e('There\'s no need to deactivate Code Profiler when you don\'t use it, it has no performance impact on your site.', 'code-profiler') ?>
57 <br />
58 <?php esc_html_e('Because an update can affect the performance of your site, consider running it after every plugin or theme update.', 'code-profiler') ?>
59 </td>
60 </tr>
61 <tr>
62 <td style="border-bottom:1px solid #c3c4c7">
63 <h4><?php esc_html_e('Is it possible to exclude a plugin during the profiling?', 'code-profiler') ?></h4>
64 <?php
65 printf(
66 esc_html__('You can exclude one or more plugins during the profiling by using the %sFreesoul Deactivate Plugins%s plugin available in the WordPress.org repo:', 'code-profiler'),
67 '<a href="https://wordpress.org/plugins/freesoul-deactivate-plugins/" target="_blank" rel="noopener noreferrer">',
68 '</a>'
69 );
70 echo '<ul>'.
71 '<ol>'. esc_html__('Download, install and activate the plugin.', 'code-profiler') .'</ol>'.
72 '<ol>'. esc_html__('Go to its main page, click the gear icon and select "Code Profiler".', 'code-profiler') .'</ol>'.
73 '<ol>'. esc_html__('Select the "According to this page settings" option, uncheck the plugin(s) you want to exclude during the profiling and save your settings.', 'code-profiler') .'</ol>'.
74 '<ol>'. esc_html__('Go back to Code Profiler\'s page and run it.', 'code-profiler') .'</ol>'.
75 '</ul>';
76 ?>
77 </td>
78 </tr>
79 <tr>
80 <td style="border-bottom:1px solid #c3c4c7">
81 <h4><?php esc_html_e('Why do some scripts show an execution time of 0 second?', 'code-profiler') ?></h4>
82 <?php esc_html_e('That can happen if your PHP version is 7.1 or 7.2. With those versions, Code Profiler can only use microseconds for its metrics, while with versions 7.3 and above it can use the system\'s high resolution time in nanoseconds. It can also happen if a PHP script has only a couple of lines of code, its execution time is too quick to be measured, hence it will show 0.', 'code-profiler') ?>
83 </td>
84 </tr>
85 <tr>
86 <td style="border-bottom:1px solid #c3c4c7">
87 <h4><?php esc_html_e('Is Code Profiler multisite compatible?', 'code-profiler') ?></h4>
88 <?php esc_html_e('Code Profiler is multisite compatible. Note however that for security reasons, only the superadmin can run it.', 'code-profiler') ?>
89 </td>
90 </tr>
91 <tr>
92 <td>
93 <h4><?php esc_html_e('What is your Privacy Policy?', 'code-profiler') ?></h4>
94 <?php esc_html_e('Code Profiler does not collect any private data from you or your visitors. It does not use cookies either. Your website can run Code Profiler and be compliant with privacy laws such as the General Data Protection Regulation (GDPR) or the California Consumer Privacy Act (CCPA).', 'code-profiler') ?>
95 </td>
96 </tr>
97 </table>
98 <?php
99
100 // =====================================================================
101 // EOF
102