Changeset 2870772
- Timestamp:
- 02/24/2023 08:55:45 PM (3 years ago)
- Location:
- divit-extension-evaluator/trunk
- Files:
-
- 5 edited
-
readme.txt (modified) (5 diffs)
-
src/html/admin-screen.php (modified) (2 diffs)
-
src/html/help.php (modified) (1 diff)
-
src/html/js-css.php (modified) (5 diffs)
-
src/html/test-case.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
divit-extension-evaluator/trunk/readme.txt
r2870543 r2870772 2 2 3 3 Plugin Name: Divit Extension Evaluator 4 Description: To check the site without all plugins or somme specific plugins without actually deactivating the plugin.4 Description: To test the site without all plugins or specific plugins, without actually deactivating them. 5 5 Tags: wp plugin, plugin checker, unload plugins, debug plugins 6 6 Author: Pradeep Pandey … … 9 9 Tested up to: 6.1 10 10 Stable tag: 2.0 11 Version: 2. 011 Version: 2.1 12 12 Requires PHP: 7.2 13 13 License: GPL v2 or later 14 14 15 This plugin allows to load or unload all plugins or somme specific plugin on the site without without actually deactivating the plugin to debug the plugin related issue or to analyze the effect of pluginon performance.15 This plugin provides the ability to load or unload all plugins or specific plugins on the site without actually deactivating them. This functionality is useful for debugging plugin-related issues or analyzing the impact of plugins on performance. 16 16 17 17 … … 19 19 == Description == 20 20 21 Sometimes we need to test the site without all plugins or with specific plugins for debugging any issue or testing the site performance. We have to activate/deactivate the plugins in the Admin section to do this. This could be quite dangerous as your site may stop working, and plugin settings may be wiped out. Also, this could be time-consuming. 22 This plugin allows to unload or load plugins on-site without deactivating them in the admin. 21 Often, we need to test a site with only specific plugins or without any plugins to debug issues or check site performance. The typical method of activating/deactivating plugins in the Admin section can be risky as it may cause the site to malfunction, and it could be time-consuming. This plugin provides a safer and faster way to unload or load plugins on the site without actually deactivating them in the admin.. 23 22 24 23 How to use: Visit the plugin page, crate/configure a checker, save changes, and done. … … 42 41 = Any specific requirements for this plugin to work? = 43 42 44 The plugin tries to add a Must Use plugin in the mu-plugin directory on activation. If due to any server setting it is not allowed you will need to copy the file 'mu-plugins/divit-extn-eval-checker.php' file manually in 'wp-content/mu-plugins' directory. Without it plugin will not work.43 On activation, the plugin attempts to add a Must Use plugin to the mu-plugin directory. If your server settings prevent this, you will need to manually copy the file 'mu-plugins/divit-extn-eval-checker.php' to the 'wp-content/mu-plugins' directory. Without this file, the plugin will not function. 45 44 46 45 … … 58 57 Initial release. 59 58 = 2.0 = 60 Fixed a bug on plugin activation 59 Fixed a bug on plugin activation. 60 = 2.1 = 61 Updated instructions and help section. -
divit-extension-evaluator/trunk/src/html/admin-screen.php
r2870510 r2870772 6 6 <div class='divit_extn_eval-admin-body'> 7 7 8 <h2>Welcome to Divit Extension Evaluator! </h2>8 <h2>Welcome to Divit Extension Evaluator! To get started, please follow these steps:</h2> 9 9 <?php 10 10 if( ! Admin::check_mu_plugin()) { … … 12 12 } 13 13 ?> 14 <h3>To start follow these steps</h3>15 14 <ul style="margin-left: 20px;list-style: disc;"> 16 <li>Create /Configure a checker.</li>17 <li>Based on the checker configuration the plugins will be loaded and un-loded on the site.</li>18 <li>After testing Click on Clear Checker button to clear the checker</li>15 <li>Create and configure a checker that meets your needs.</li> 16 <li>Based on the checker configuration, plugins will be loaded and unloaded on the site.</li> 17 <li>After testing, click the 'Remove Checker' button to reset the checker and start a new evaluation.</li> 19 18 </ul> 20 19 -
divit-extension-evaluator/trunk/src/html/help.php
r2870510 r2870772 3 3 <h2 class="heading">FAQ</h2> 4 4 <details> 5 <summary>What to Do if the site stopped working after creating a test case?</summary>6 <p>If after creating site stopped working it means some plugins are needed to load the site. So either update the checker settings ( like enter the required plugin index in Load Plugin Fields ) or Just Click on the "Remove Checker" button. Itwill delete the test case from the database.</p>5 <summary>What to Do if the site stopped working after creating a checker?</summary> 6 <p>If your site stops working after creating a checker, it means that some plugins are needed to load the site. To resolve this, you can either update the checker settings by entering the required plugin index in the 'Load Plugin Fields', or you can simply click on the 'Remove Checker' button. This will delete the test case from the database.</p> 7 7 </details> 8 8 <details> 9 9 <summary>Is it safe to run on the production server?</summary> 10 <p>Yes it is quite safe but please make sure you have checked the only for me option checked and only if the query string is presented. Also, you can target a specific page to test</p>10 <p>Yes, the plugin is safe to use, but please ensure that you have selected the 'Only for Me' option and that the query string is present. You can also target a specific page to test.</p> 11 11 </details> 12 12 <details> 13 13 <summary>How to check only specific page?</summary> 14 <p> Enter the URL of page in the "Target" Field. The checker will be applied to only that URL. </p>14 <p>To apply the checker to a specific page, enter the page URL in the 'Target' field. </p> 15 15 </details> 16 16 <details> 17 17 <summary>What is the ideal way to check production site?</summary> 18 <p>If you are testing production site make sure 'Only for Me' option is checked. If this option is checked the changes on the site caused by the checker will be visible to only you.</p>18 <p>If you are testing a production site, it is important to ensure that the 'Only for Me' option is checked. This will ensure that any changes made by the checker will only be visible to you, minimizing the impact on other users of the site.</p> 19 19 </details> 20 20 <details> 21 21 <summary>How to Unload all plugin?</summary> 22 <p>Check the 'Unload All Plugins' checkbox </p>22 <p>Check the 'Unload All Plugins' checkbox. This checkbox will unload all plugins on the site when selected.</p> 23 23 </details> 24 24 <details> -
divit-extension-evaluator/trunk/src/html/js-css.php
r2870510 r2870772 101 101 102 102 .g-field { 103 padding: 20px;104 margin:4px 0px 4px 8px;103 padding: 10px; 104 margin:4px 0px 4px 4px; 105 105 106 106 border-bottom: 1px solid #797979; … … 110 110 } 111 111 .g-field:last-child { 112 border-bottom: 0px solid #797979; 113 } 114 115 section .g-field:last-child { 112 116 border-bottom: 0px solid #797979; 113 117 } … … 143 147 144 148 } 149 h3.separator{ 150 background: linear-gradient(to bottom, #ffffff 0%, #f2f2f2 100%); 151 padding: 4px; 152 box-shadow: 1px 1px #bcbdbd; 153 154 } 145 155 </style> 146 156 … … 164 174 var load_settings = function() { 165 175 let settings = <?php echo json_encode($settings); ?>; 176 166 177 for (k in settings) { 167 178 let v = settings[k]; … … 174 185 e.setAttribute('checked', 'true'); 175 186 } 187 } 188 //By default show plugin list on front end 189 if( settings.length < 1 ){ 190 document.querySelector('input[name="divit_extn_eval[show_info]"]').setAttribute('checked', 'true'); 176 191 177 192 } -
divit-extension-evaluator/trunk/src/html/test-case.php
r2870510 r2870772 8 8 <a class="button button-primary" href="<?php echo admin_url('admin.php?page=divit_extn_eval_admin_screen&subaction=clear_settings') ?>">Remove Checker</a> 9 9 </div> 10 <div class='g-field'> 11 <div class='g-label'> 12 Target URL 13 </div> 14 <div class='g-input'> 15 <input type='text' name="divit_extn_eval[target_url]" title="" /> 16 </div> 17 <div class='g-instruction'>Enter the target URLS if you want to test only some specific URL. If left blank the checker will be applied to the entire site.</div> 18 </div> 10 <section class="unload"> 11 <h3 class='separator'>Unload Plugins</h3> 19 12 <div class='g-field'> 20 13 <div class='g-label'> … … 23 16 <div class='g-input'> 24 17 </div> 25 <div class='g-instruction'> Check this option to unload all plugins on site. Please note no plugin will be deactivated only the plugin will not loaded.</div>18 <div class='g-instruction'>Select this option if you want to unload all plugins on the site. It's important to note that this won't deactivate the plugins, but instead prevent them from loading.</div> 26 19 </div> 27 20 … … 33 26 <input type='number' min="0" name="divit_extn_eval[unload_plugins_from]" value='' class='width-double' id='divit_extn_eval_targe_page' title="" placeholder="Index From" /> To <input type='number' min="0" name="divit_extn_eval[unload_plugins_to]" value='' class='width-double' placeholder="Index To" /> 34 27 </div> 35 <div class='g-instruction'>Enter the range of the index of plugins that need to be unloaded for example if you enter 1 to 5 the plugins with index 1,2,3,4,5 will be unloaded.</div>28 <div class='g-instruction'>Enter the range of plugin indexes that you want to unload. For example, if you enter '1 to 5', plugins with index 1, 2, 3, 4, and 5 will be unloaded from the system. Please see the plugin indexes on the right side.</div> 36 29 </div> 37 30 <div class='g-field addn-options'> … … 42 35 <input type='text' name="divit_extn_eval[load_plugins]" value='' /> 43 36 </div> 44 <div class='g-instruction'>If you want to load only some specific plugin enter the comma-seprated index of plugins that need to be loaded for example 1,3,4,7. Please see the index of plugins on the right side.These plugin will always unloaded regardlessplugin range setting.</div>37 <div class='g-instruction'>If you want to load specific plugins, please enter the comma-separated indexes of the plugins that you want to load. For example, you can enter '1, 3, 4, 7' to load plugins with indices 1, 3, 4, and 7. Please refer to the index of plugins on the right side of the screen. Note that these plugins will always be loaded, regardless of the plugin range setting.</div> 45 38 </div> 39 </section> 40 <section class="load"> 41 <h3 class='separator'>Load Plugins</h3> 46 42 <div class='g-field'> 47 43 <div class='g-label'> … … 51 47 <input type='number' min="0" name="divit_extn_eval[load_plugins_from]" value='' class='width-double' placeholder="Index From" /> To <input type='number' min="0" name="divit_extn_eval[load_plugins_to]" value='' class='width-double' placeholder="Index To" /> 52 48 </div> 53 <div class='g-instruction'>Enter the range of the index of plugins that need to be loaded for example if you enter 1 to 5 the plugins with index 1,2,3,4,5 will be unloaded. Please see the index of plugins on the right side.</div>49 <div class='g-instruction'>Enter the range of plugin index that you want to load. For example, if you enter '1 to 5', plugins with indices 1, 2, 3, 4, and 5 will be loaded. Please refer to the index of plugins on the right side of the screen.</div> 54 50 </div> 55 51 <div class='g-field addn-options'> … … 60 56 <input type='text' name="divit_extn_eval[unload_plugins]" value='' /> 61 57 </div> 62 <div class='g-instruction'>If you want to unload only some specific plugin enter the comma-seprated index of plugins that need to be unloaded for example 1,3,4,7. Please see the index of plugins on the right side. These plugin will always unloaded regardless plugin range setting.</div> 58 <div class='g-instruction'>If you want to unload specific plugins, please enter the comma-separated indices of the plugins that you want to unload. For example, you can enter '1, 3, 4, 7' to unload plugins with indices 1, 3, 4, and 7. Please refer to the index of plugins on the right side of the screen. Note that these plugins will always be unloaded, regardless of the plugin range setting.</div> 59 </div> 60 </section> 61 <section class="restriction"> 62 <h3 class='separator'>Apply Restriction</h3> 63 <div class='g-field'> 64 <div class='g-label'> 65 Apply To Target URL 66 </div> 67 <div class='g-input'> 68 <input type='text' name="divit_extn_eval[target_url]" title="" /> 69 </div> 70 <div class='g-instruction'>If you want to test specific URLs, please enter them in the target URL field. If left blank, the checker will be applied to the entire site.</div> 63 71 </div> 64 72 65 73 <div class='g-field'> 66 74 <div class='g-label'> 67 Print Plugin List <input type='checkbox' name="divit_extn_eval[show_info]" value='Y' />68 </div>69 <div class='g-instruction'>If checked list Loaded and unloaded plugins will be printed on bottom</div>70 </div>71 <div class='g-field'>72 <div class='g-label'>73 75 Apply for Only Me <input type='checkbox' name="divit_extn_eval[only_me]" value='Y' /> 74 76 </div> 75 <div class='g-instruction'>If checked the checker will be applied only for you. It is highly recommended to check this box if you testingproduction site.</div>77 <div class='g-instruction'>If you check this box, the checker will be applied only for your account. It's highly recommended to select this option when testing a production site.</div> 76 78 </div> 77 79 <div class='g-field'> … … 79 81 Apply to Admin Also <input type='checkbox' name="divit_extn_eval[admin_also]" value='Y' /> 80 82 </div> 81 <div class='g-instruction'>By default the checker will be applied to only front end of Site but if you want to apply it admin also check this option</div>83 <div class='g-instruction'>By default, the checker will be applied only to the front end of the site. If you want to apply it to the admin area as well, please select this option.</div> 82 84 </div> 83 85 <div class='g-field'> … … 88 90 <input type='text' name="divit_extn_eval[qs_name]" value='' placeholder="Name of query string" /> 89 91 </div> 90 <div class='g-instruction'> Apply the checker only if entered query string is present in the URL. For example if you enter 'testpl' the checker will work only if testpl is present in URL query string like ?testpl=Y</div>92 <div class='g-instruction'>The checker will be applied only if the entered query string is present in the URL. For example, if you enter 'testpl', the checker will work only if 'testpl' is present in the URL query string, like '?testpl=Y'.</div> 91 93 </div> 94 </section> 95 <section class="other_settings"> 96 <h3 class='separator'>Other Settings</h3> 92 97 <div class='g-field'> 93 98 <div class='g-label'> … … 97 102 <input type='text' name="divit_extn_eval[transient_duration]" value='' placeholder="In Seconds" /> 98 103 </div> 99 <div class='g-instruction'>Enter the duration in seconds for which the checker will be active. After this duration checker will be created from database.</div>104 <div class='g-instruction'>Enter the duration in seconds for which the checker will be active. After this duration, the checker will be removed from the database. Default duration is 600 Seconds.</div> 100 105 </div> 106 107 <div class='g-field'> 108 <div class='g-label'> 109 Print Plugin List <input type='checkbox' name="divit_extn_eval[show_info]" value='Y'/> 110 </div> 111 <div class='g-instruction'>If you check this box, a list of loaded and unloaded plugins will be printed at the bottom of page.</div> 112 </div> 113 </section> 101 114 <div class='g-field'> 102 115 <div class='g-label'>
Note: See TracChangeset
for help on using the changeset viewer.