Plugin Directory

Changeset 2870772


Ignore:
Timestamp:
02/24/2023 08:55:45 PM (3 years ago)
Author:
elexpradeep
Message:

Updated instructions and help section.

Location:
divit-extension-evaluator/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • divit-extension-evaluator/trunk/readme.txt

    r2870543 r2870772  
    22
    33Plugin Name: Divit Extension Evaluator
    4 Description: To check the site without all plugins or somme specific plugins without actually deactivating the plugin.
     4Description: To test the site without all plugins or specific plugins, without actually deactivating them.
    55Tags: wp plugin, plugin checker, unload plugins, debug plugins
    66Author: Pradeep Pandey
     
    99Tested up to: 6.1
    1010Stable tag: 2.0
    11 Version: 2.0
     11Version: 2.1
    1212Requires PHP: 7.2
    1313License: GPL v2 or later
    1414
    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 plugin on 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.
    1616
    1717
     
    1919== Description ==
    2020
    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.
     21Often, 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..
    2322
    2423How to use: Visit the plugin page, crate/configure a checker, save changes, and done.
     
    4241= Any specific requirements for this plugin to work? =
    4342
    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.
     43On 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.
    4544
    4645
     
    5857Initial release.
    5958= 2.0 =
    60 Fixed a bug on plugin activation
     59Fixed a bug on plugin activation.
     60= 2.1 =
     61Updated instructions and help section.
  • divit-extension-evaluator/trunk/src/html/admin-screen.php

    r2870510 r2870772  
    66<div class='divit_extn_eval-admin-body'>
    77
    8     <h2>Welcome to Divit Extension Evaluator!</h2>
     8    <h2>Welcome to Divit Extension Evaluator! To get started, please follow these steps:</h2>
    99    <?php
    1010        if( ! Admin::check_mu_plugin()) {
     
    1212        }
    1313    ?>
    14     <h3>To start follow these steps</h3>
    1514    <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>
    1918    </ul>
    2019   
  • divit-extension-evaluator/trunk/src/html/help.php

    r2870510 r2870772  
    33    <h2 class="heading">FAQ</h2>
    44    <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. It will 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>
    77    </details>
    88    <details>
    99        <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>
    1111    </details>
    1212    <details>
    1313        <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>
    1515    </details>
    1616    <details>
    1717        <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>
    1919    </details>
    2020    <details>
    2121        <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>
    2323    </details>
    2424    <details>
  • divit-extension-evaluator/trunk/src/html/js-css.php

    r2870510 r2870772  
    101101
    102102    .g-field {
    103         padding: 20px;
    104         margin:4px 0px 4px 8px;
     103        padding: 10px;
     104        margin:4px 0px 4px 4px;
    105105
    106106        border-bottom: 1px solid #797979;
     
    110110    }
    111111    .g-field:last-child {
     112        border-bottom: 0px solid #797979;
     113    }
     114
     115    section .g-field:last-child {
    112116        border-bottom: 0px solid #797979;
    113117    }
     
    143147
    144148    }
     149    h3.separator{
     150    background: linear-gradient(to bottom, #ffffff 0%, #f2f2f2 100%);
     151    padding: 4px;
     152    box-shadow: 1px 1px #bcbdbd;
     153
     154    }
    145155</style>
    146156
     
    164174    var load_settings = function() {
    165175        let settings = <?php echo json_encode($settings); ?>;
     176   
    166177        for (k in settings) {
    167178            let v = settings[k];
     
    174185                e.setAttribute('checked', 'true');
    175186            }
     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');
    176191
    177192        }
  • divit-extension-evaluator/trunk/src/html/test-case.php

    r2870510 r2870772  
    88                    <a class="button button-primary" href="<?php echo admin_url('admin.php?page=divit_extn_eval_admin_screen&subaction=clear_settings') ?>">Remove Checker</a>
    99                </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>
    1912                <div class='g-field'>
    2013                    <div class='g-label'>
     
    2316                    <div class='g-input'>
    2417                    </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>
    2619                </div>
    2720               
     
    3326                        <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" />
    3427                    </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>
    3629                </div>
    3730                <div class='g-field addn-options'>
     
    4235                        <input type='text' name="divit_extn_eval[load_plugins]" value='' />
    4336                    </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 regardless plugin 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>
    4538                </div>
     39                </section>
     40                <section class="load">
     41                <h3 class='separator'>Load Plugins</h3>
    4642                <div class='g-field'>
    4743                    <div class='g-label'>
     
    5147                        <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" />
    5248                    </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>
    5450                </div>
    5551                <div class='g-field addn-options'>
     
    6056                        <input type='text' name="divit_extn_eval[unload_plugins]" value='' />
    6157                    </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>
    6371                </div>
    6472               
    6573                <div class='g-field'>
    6674                    <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'>
    7375                        Apply for Only Me <input type='checkbox' name="divit_extn_eval[only_me]" value='Y' />
    7476                    </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 testing production 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>
    7678                </div>
    7779                <div class='g-field'>
     
    7981                        Apply to Admin Also <input type='checkbox' name="divit_extn_eval[admin_also]" value='Y' />
    8082                    </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>
    8284                </div>
    8385                <div class='g-field'>
     
    8890                        <input type='text' name="divit_extn_eval[qs_name]" value='' placeholder="Name of query string" />
    8991                    </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>
    9193                </div>
     94                </section>
     95                <section class="other_settings">
     96                <h3 class='separator'>Other Settings</h3>
    9297                <div class='g-field'>
    9398                    <div class='g-label'>
     
    97102                        <input type='text' name="divit_extn_eval[transient_duration]" value='' placeholder="In Seconds" />
    98103                    </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>
    100105                </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>
    101114                <div class='g-field'>
    102115                    <div class='g-label'>
Note: See TracChangeset for help on using the changeset viewer.