Plugin Directory

Changeset 2653466

Timestamp:
01/06/2022 07:46:13 AM (3 years ago)
Author:
lysyiweb
Message:

Version 1.0.7 released

Location:
issues-tracker
Files:
277 added
13 edited

Legend:

Unmodified
Added
Removed
  • issues-tracker/trunk/.gitignore

    r2558364 r2653466  
    1 ./vendor
     1*.DS_Store
     2
     3
     4.vscode/*
     5!.vscode/settings.json
     6!.vscode/tasks.json
     7!.vscode/launch.json
     8!.vscode/extensions.json
     9!.vscode/*.code-snippets
     10
     11# Local History for Visual Studio Code
     12.history/
     13
     14# Built Visual Studio Code Extensions
     15*.vsix
  • issues-tracker/trunk/assets/js/app.js

    r2610317 r2653466  
    66        case 'issues-tracker-dashboard':
    77            import("./components/dashboard.js");
    8             istrk_sendComponentEvent('dashboard')
     8            ist_sendComponentEvent('dashboard')
    99            break;
    1010        case 'issues-tracker-log-viewer':
    1111            import("./components/log-view.js");
    12             istrk_sendComponentEvent('log view')
     12            ist_sendComponentEvent('log view')
    1313            break;
    1414        case 'issues-tracker-advisor':
    1515            import("./components/advisor.js");
    16             istrk_sendComponentEvent('advisor')
     16            ist_sendComponentEvent('advisor')
    1717            break;
    1818        case 'issues-tracker-404':
    1919            import("./components/404.js");
    20             istrk_sendComponentEvent('404')
     20            ist_sendComponentEvent('404')
    2121
    2222    }
    2323
    2424
    25     function istrk_sendComponentEvent(component) {
     25    function ist_sendComponentEvent(component) {
    2626
    2727        try {
  • issues-tracker/trunk/controllers/AdvisorController.php

    r2612917 r2653466  
    5555                echo json_encode([
    5656                    'success' => false,
    57                     'error' => 'Email was not passed'
     57                    'error' =>
    5858                ]);
    5959                wp_die();
     
    9494    public static function istkr_advisor_checks_handler()
    9595    {
    96         if (istrk()->is_premium()) {
     96        if (ist()->is_premium()) {
    9797
    9898            $notification_email = get_option('istkr_advisor_notifications_email');
  • issues-tracker/trunk/controllers/HooksController.php

    r2612917 r2653466  
    1111    {
    1212
    13         $istrk_index_file = plugin_dir_path(__DIR__) . 'index.php';
     13        $istkr_index_file = plugin_dir_path(__DIR__) . 'index.php';
     14        // add_action('plugins_loaded', function () {
     15
     16        //     $p = WP_PLUGIN_DIR . '/issues-tracker/languages';
     17        //     load_plugin_textdomain('istkr', false, $p);
     18        // });
    1419
    1520        // Include styles and scripts in Issues Tracker plugin's pages only
    1621        add_action('admin_enqueue_scripts', ['ISTKR_HooksController', 'istkr_admin_assets_enqueue']);
    1722
    18         register_activation_hook($istrk_index_file, ['ISTKR_ServiceController', 'istrk_activation_events']);
    19         register_deactivation_hook($istrk_index_file, ['ISTKR_ServiceController', 'istrk_deactivation_events']);
    20         register_uninstall_hook($istrk_index_file, ['ISTKR_ServiceController', 'istrk_uninstall_events']);
     23        register_activation_hook($ist_activation_events']);
     24        register_deactivation_hook($ist_deactivation_events']);
     25        register_uninstall_hook($ist_uninstall_events']);
    2126
    2227
     
    3439
    3540        add_action('wp', function () {
    36             if (istrk()->is_premium()) {
     41            if (ist()->is_premium()) {
    3742                if (!wp_next_scheduled('istkr_advisor_checks')) {
    3843                    wp_schedule_event(time() + 3600, 'daily', 'istkr_advisor_checks');
  • issues-tracker/trunk/controllers/LogController.php

    r2612917 r2653466  
    1212{
    1313
    14     public static $istkr_debug_file_path = WP_CONTENT_DIR . '/debug.log';
    1514    public static $database_directory = WP_CONTENT_DIR . './issues-tracker-db';
    1615
     
    1817    {
    1918        return ISTKR_LogView::istkr_render_view();
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
    2030    }
    2131
     
    105115                'success' => true,
    106116                'data' => [
    107                     'notice' => 'N/A',
    108                     'warning' => 'N/A',
    109                     'fatal' => 'N/A',
    110                     'database' => 'N/A',
    111                     'total' => 'N/A',
    112                     'filesize' => 'N/A',
     117                    'notice' => ,
     118                    'warning' => ,
     119                    'fatal' => ,
     120                    'database' => ,
     121                    'total' => ,
     122                    'filesize' => ,
    113123                ]
    114124            ]);
  • issues-tracker/trunk/controllers/MenuController.php

    r2608782 r2653466  
    1414
    1515            $role = 'edit_pages';
    16             add_menu_page(__('Dashboard', 'it'), __('Issues tracker', 'it'), $role, 'issues-tracker-dashboard', ['ISTKR_DashboardController', 'istkr_render_view'], plugin_dir_url(__FILE__) . '/../../assets/img/logo.svg');
     16            add_menu_page(__('Dashboard', 'i'), $role, 'issues-tracker-dashboard', ['ISTKR_DashboardController', 'istkr_render_view'], plugin_dir_url(__FILE__) . '/../../assets/img/logo.svg');
    1717
    18             add_submenu_page('issues-tracker-dashboard', 'Issues tracker dashboard', 'Dashboard', $role, 'issues-tracker-dashboard', ['ISTKR_DashboardController', 'istkr_render_view']);
     18            add_submenu_page('issues-tracker-dashboard', , $role, 'issues-tracker-dashboard', ['ISTKR_DashboardController', 'istkr_render_view']);
    1919
    20             add_submenu_page('issues-tracker-dashboard', 'Debug log viewer', 'Log viewer', $role, 'issues-tracker-log-viewer',  ['ISTKR_LogController', 'istkr_render_view']);
     20            add_submenu_page('issues-tracker-dashboard', , $role, 'issues-tracker-log-viewer',  ['ISTKR_LogController', 'istkr_render_view']);
    2121
    22             add_submenu_page('issues-tracker-dashboard', 'Security advisor', 'Advisor', $role, 'issues-tracker-advisor',  ['ISTKR_AdvisorController', 'istkr_render_view']);
     22            add_submenu_page('issues-tracker-dashboard', , $role, 'issues-tracker-advisor',  ['ISTKR_AdvisorController', 'istkr_render_view']);
    2323
    24             add_submenu_page('issues-tracker-dashboard', '404 logger', '404', $role, 'issues-tracker-404',  ['ISTKR_404Controller', 'istkr_render_view']);
     24            add_submenu_page('issues-tracker-dashboard', , $role, 'issues-tracker-404',  ['ISTKR_404Controller', 'istkr_render_view']);
    2525        }
    2626    }
  • issues-tracker/trunk/index.php

    r2622620 r2653466  
    22
    33/**
    4  * Plugin Name: Issues Tracker
     4 * Plugin Name: Issues Tracker
    55 * Description: Plugin for debugging, catching 404 and advices to improve the security of the site
    66 * Author: lysyiweb
    7  * Version: 1.0.6
     7 * Version: 1.0.
    88 * Tags: debug, issues, tracker, logs, advisor, notifications, security, health, 404, not found
    99 * Requires PHP: 5.4
    10  * Stable tag: 1.0.6
     10 * Stable tag: 1.0.
    1111 * License: GPLv2 or later
    1212 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1616}
    1717
    18 if ( !function_exists( 'istrk' ) ) {
     18if ( !function_exists( 'ist' ) ) {
    1919    // Create a helper function for easy SDK access.
    20     function istrk()
     20    function ist()
    2121    {
    22         global  $istrk ;
     22        global  $ist ;
    2323       
    24         if ( !isset( $istrk ) ) {
     24        if ( !isset( $ist ) ) {
    2525            // Include Freemius SDK.
    2626            require_once dirname( __FILE__ ) . '/vendor/freemius/wordpress-sdk/start.php';
    27             $istrk = fs_dynamic_init( array(
     27            $ist = fs_dynamic_init( array(
    2828                'id'             => '8570',
    2929                'slug'           => 'issues-tracker',
     
    4343        }
    4444       
    45         return $istrk;
     45        return $ist;
    4646    }
    4747   
    4848    // Init Freemius.
    49     istrk();
     49    ist();
    5050    // Signal that SDK was initiated.
    51     do_action( 'istrk_loaded' );
     51    do_action( 'ist_loaded' );
    5252}
    5353
  • issues-tracker/trunk/models/LogModel.php

    r2608782 r2653466  
    1212    {
    1313
    14         $path = ISTKR_LogController::$istkr_debug_file_path;
     14        $path = ISTKR_LogController::;
    1515
    1616        if (!file_exists($path) || !is_file($path)) {
     
    3636    {
    3737        preg_match_all('/\[(.*?)\]/m', $row, $matches, PREG_SET_ORDER, 0);
    38         return isset($matches[0][1]) ? $matches[0][1] : 'N\A';
     38        return isset($matches[0][1]) ? $matches[0][1] : ;
    3939    }
    4040
     
    4242    {
    4343        preg_match_all('/(on line |php:)(\d{1,})/m', $row, $matches, PREG_SET_ORDER, 0);
    44         return isset($matches[0][2]) ? $matches[0][2] : 'N/A';
     44        return isset($matches[0][2]) ? $matches[0][2] : ;
    4545    }
    4646
     
    4848    {
    4949        preg_match_all('/ in (.*?)( on line |:)\d{1,}/m', $row, $matches, PREG_SET_ORDER, 0);
    50         return isset($matches[0][1]) ? $matches[0][1] : 'N/A';
     50        return isset($matches[0][1]) ? $matches[0][1] : ;
    5151    }
    5252
     
    7171            $re = '/WordPress database error (.*)/m';
    7272            preg_match_all($re, $row, $matches, PREG_SET_ORDER, 0);
    73             return isset($matches[0]) && $matches[0][1] ? $matches[0][1] : 'n/a';
     73            return isset($matches[0]) && $matches[0][1] ? $matches[0][1] : ;
    7474        } else {
    7575
    7676            $re = '/ (PHP Notice:|PHP Warning:|PHP Fatal error:)(.*?)(\[ | in |on line)/m';
    7777            preg_match_all($re, $row, $matches, PREG_SET_ORDER, 0);
    78             return isset($matches[0]) && $matches[0][2] ? $matches[0][2] : 'n/a';
     78            return isset($matches[0]) && $matches[0][2] ? $matches[0][2] : ;
    7979        }
    8080    }
     
    8383    {
    8484
    85         $debug_filepath = ISTKR_LogController::$istkr_debug_file_path;
     85        $debug_filepath = ISTKR_LogController::;
    8686
    8787        if (is_file($debug_filepath) && filesize($debug_filepath)) {
    8888            $filesize_in_mb = filesize($debug_filepath) / 1024 / 1024;
    89             return $with_measure_units ? round($filesize_in_mb, 2) . ' Mb' :  round($filesize_in_mb, 2);
     89            return $with_measure_units ? round($filesize_in_mb, 2) . ' :  round($filesize_in_mb, 2);
    9090        } else {
    9191            return 0;
  • issues-tracker/trunk/readme.txt

    r2622620 r2653466  
    11=== Issues Tracker ===
    22
    3 Contributors: lysyiWeb
     3Contributors: lysyiWeb
    44Tags: debug, issues, tracker, logs, advisor, notifications, security, health, 404, not found
    55Requires at least: 4.6
    66Tested up to: 5.8.2
    7 Stable tag: 1.0.6
     7Stable tag: 1.0.
    88Requires PHP: 5.4
    99License: GPLv2
     
    1111
    1212== Description ==
    13 Issues tracker made for security checks, convenient view of debug.log and track 404 URLs on your site.
     13Issues tracker
    1414
    1515Contain four components:
    1616
    1717**Dashboard**
    18 Component where you can quickly view basic information about the number of entries in the log file, or about the remaining performance or security problems
     18s
    1919
    2020**Log viewer**
    21 Component that allows you to view information about notices, warning or errors in the WordPress log file as a table. The presence of search and pagination makes this process quick and convenient.
     21 quick and convenient.
    2222
    2323**Advisor**
    24 Get recommendations for improving the speed and security of your site in one place. In Pro version supports daily notifications when some checks is failed
     24Get recommendations
    2525
    2626**404 catcher**
    27 Get list of all 404 that occurred on your website.
    28 
     27We list all 404s (not found) errors on your site, and allow you to set email notifications on every 404
    2928
    3029== Installation ==
     
    5453== Changelog ==
    5554
    56 = 1.0.5 =
     55= 1.0.7 =
     56* Log viewer: added support of logs with overrided path in WP_DEBUG_LOG('path/to/log.txt');
     57* General: added ability to translate an interface of the plugin
     58
     59= 1.0.6 =
    5760* 404: Fixed "loading" when no data presented in the table
    5861* Advisor: minor fixes
  • issues-tracker/trunk/views/header.php

    r2608782 r2653466  
    1414        </div>
    1515
    16         <div class="collapse navbar-collapse" id="istrk_navbarNav">
     16        <div class="collapse navbar-collapse" id="ist_navbarNav">
    1717            <ul class="navbar-nav">
    1818                <li class="nav-item">
     
    3131        </div>
    3232        <?php
    33         if (istrk()->is_premium()) { ?>
    34             <a class="pro" href="<?php echo istrk()->get_upgrade_url(); ?>">
     33        if (ist()->is_premium()) { ?>
     34            <a class="pro" href="<?php echo ist()->get_upgrade_url(); ?>">
    3535                <span><?php _e('You\'re Pro', 'istkr'); ?></span>
    3636                <img src="<?php echo  plugin_dir_url(__DIR__) . 'assets/img/corona.png' ?>">
    3737            </a>
    3838        <?php } else { ?>
    39             <a class="pro" href="<?php echo istrk()->get_upgrade_url(); ?>">
     39            <a class="pro" href="<?php echo ist()->get_upgrade_url(); ?>">
    4040                <span><?php _e('Get pro features', 'istkr'); ?></span>
    4141                <img src="<?php echo  plugin_dir_url(__DIR__) . 'assets/img/corona.png' ?>">
  • issues-tracker/trunk/views/pages/advisor.php

    r2612917 r2653466  
    186186                <div class="col-md-3">
    187187                    <h5>Notification</h5>
    188                     <?php if (istrk()->is_premium()) { ?>
     188                    <?php if (ist()->is_premium()) { ?>
    189189
    190190                        <form id="istkr_advisor_notifications_form" data-notifications-enabled="<?php echo get_option('istkr_advisor_notifications_email') ? 'true' : 'false' ?>">
  • issues-tracker/trunk/views/pages/dashboard.php

    r2612917 r2653466  
    4141
    4242                            <div class="info" style="display: flex; justify-content: space-between;">
    43                                 <p class="filesize">Log size: <span class="count">N\A</span></p>
    44                                 <p class="total-errors" style="padding: 0px 10px;">Total errors: <span class="count">N\A</span></p>
     43                                <p class="filesize">Log size: <span class="count">NA</span></p>
     44                                <p class="total-errors" style="padding: 0px 10px;">Total errors: <span class="count">NA</span></p>
    4545                            </div>
    4646
     
    5858
    5959                            <div class="info" style="display: flex; justify-content: space-between;">
    60                                 <p>Passed: <span class="count">N\A</span></p>
    61                                 <p style="padding: 0px 10px;">Failed: <span class="count">N\A</span></p>
     60                                <p>Passed: <span class="count">NA</span></p>
     61                                <p style="padding: 0px 10px;">Failed: <span class="count">NA</span></p>
    6262                            </div>
    6363                            <a href="<?php echo admin_url(); ?>admin.php?page=issues-tracker-advisor" class="btn btn-sm btn-info">Open</a>
     
    7373                            <p class="card-text">The component displays 404 URLs catched on the website, and set notification if 404 will be catched</p>
    7474                            <div class="info" style="display: flex; justify-content: space-between;">
    75                                 <p class="success">Catched 404: <span class="count">N\A</span></p>
     75                                <p class="success">Catched 404: <span class="count">NA</span></p>
    7676                                <p class="danger" style="padding: 0px 10px;">Notifications: <span class="count"><?php echo get_option('istkr_404_notifications_email') ? 'Enabled' : 'Disabled' ?></span></p>
    7777                            </div>
  • issues-tracker/trunk/views/pages/log.php

    r2608782 r2653466  
    3535      <div class="row">
    3636        <div class="col-xs-12 log-filepath">
    37           <p>Path: <span class=""><?php echo ISTKR_LogController::$istkr_debug_file_path; ?></span></p>
     37          <p>Path: <span class=""><?php echo ISTKR_LogController::; ?></span></p>
    3838        </div>
    3939      </div>
     
    4444      if (ISTKR_LogModel::istkr_get_log_filesize(false) > 100) { ?>
    4545
    46         <h5 class="log-filesize-limitation">The log file is too large to be processes by WP Issue tracker. Current limitation is 100 Mb</h5>
     46        <h5 class="log-filesize-limitation">The log file is too large to be processes by racker. Current limitation is 100 Mb</h5>
    4747
    4848      <?php return;
     
    5050
    5151      <?php
    52       $path = ISTKR_LogController::$istkr_debug_file_path;
     52      $path = ISTKR_LogController::;
    5353
    5454      if (!file_exists($path) || !is_file($path)) { ?>
Note: See TracChangeset for help on using the changeset viewer.