Plugin Directory

Changeset 3777140


Ignore:
Timestamp:
10/31/2026 04:41:46 PM (2 days ago)
Author:
tidyleaf
Message:

Release 1.1.0

Location:
tidyleaf-upgrade-scanner
Files:
373 added
10 edited

Legend:

Unmodified
Added
Removed
  • tidyleaf-upgrade-scanner/assets/banner-1544x500.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • tidyleaf-upgrade-scanner/assets/banner-772x250.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • tidyleaf-upgrade-scanner/assets/icon-128x128.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • tidyleaf-upgrade-scanner/assets/icon-256x256.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • tidyleaf-upgrade-scanner/assets/screenshot-1.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • tidyleaf-upgrade-scanner/assets/screenshot-2.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • tidyleaf-upgrade-scanner/assets/screenshot-3.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • tidyleaf-upgrade-scanner/trunk/includes/class-admin.php

    r3777019 r3777140  
    1717        const PAGE = 'tidyleaf-php-compat';
    1818        const CAP  = 'manage_options';
     19
     20        /** The optional paid add-on (sold through Polar, never required for anything this plugin does). */
     21        const PRO_URL = 'https://buy.polar.sh/polar_cl_BQjs2adqXI2v68G583BDXodLMPknOWtapa7yy2lF8sU';
    1922
    2023        /** Findings listed per component on screen; the CSV has all of them. */
    … …  
    3235                add_action( 'admin_post_tlpcc_csv', array( __CLASS__, 'download_csv' ) );
    3336                add_filter( 'plugin_action_links_' . plugin_basename( TLPCC_FILE ), array( __CLASS__, 'action_links' ) );
     37                add_filter( 'plugin_row_meta', array( __CLASS__, 'row_meta' ), 10, 2 );
     38        }
     39
     40        /**
     41         * Is the Pro add-on installed and active?
     42         *
     43         * @return bool
     44         */
     45        private static function has_pro() {
     46                return class_exists( 'TLUSP\\License' );
     47        }
     48
     49        /**
     50         * A "Pro" link under the plugin's description, until the add-on is installed.
     51         *
     52         * @param string[] $meta   Row links.
     53         * @param string   $plugin Plugin basename.
     54         * @return string[]
     55         */
     56        public static function row_meta( $meta, $plugin ) {
     57                if ( plugin_basename( TLPCC_FILE ) === $plugin && ! self::has_pro() ) {
     58                        $meta[] = '<a href="' . esc_url( self::PRO_URL ) . '" target="_blank" rel="noopener">' . esc_html__( 'Pro: scheduled scans and email reports', 'tidyleaf-upgrade-scanner' ) . '</a>';
     59                }
     60                return $meta;
    3461        }
    3562
    … …  
    262289                        </ul>
    263290                        <p><a class="button" href="<?php echo esc_url( $csv ); ?>"><?php esc_html_e( 'Download report (CSV)', 'tidyleaf-upgrade-scanner' ); ?></a></p>
     291                        <?php if ( ! self::has_pro() ) : ?>
     292                                <p class="tlpcc-meta">
     293                                        <?php esc_html_e( 'Optional: Tidyleaf Upgrade Scanner Pro runs this scan on a schedule, emails the report with what changed since the last scan, and makes a white-label client report.', 'tidyleaf-upgrade-scanner' ); ?>
     294                                        <a href="<?php echo esc_url( self::PRO_URL ); ?>" target="_blank" rel="noopener"><?php esc_html_e( 'About Pro', 'tidyleaf-upgrade-scanner' ); ?></a>
     295                                </p>
     296                        <?php endif; ?>
    264297                        <p class="description"><?php esc_html_e( 'Errors are code that fails on the chosen version (a fatal error or a removed feature). Warnings are deprecations: the code still runs but logs notices and will break in a later version. This is a static check: it reads the code and cannot see code paths that only run on old PHP versions, so treat it as a list to verify on a staging copy.', 'tidyleaf-upgrade-scanner' ); ?></p>
    265298                </div>
  • tidyleaf-upgrade-scanner/trunk/readme.txt

    r3777019 r3777140  
    55Tested up to: 7.1.3
    66Requires PHP: 7.4
    7 Stable tag: 1.0.0
     7Stable tag: 1.1.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    65657.4, 8.0, 8.1, 8.2, 8.3 and 8.4. New versions are added as the PHPCompatibility standard covers them.
    6666
     67= Is there a Pro version? =
     68
     69Yes, as an optional add-on. Everything described above is free and stays free, with no limits on sites, scans or findings. Tidyleaf Upgrade Scanner Pro adds scheduled scans (daily, weekly or monthly), an email report with the CSV attached and what changed since the last scan, a white-label client report, and more WP-CLI commands. It is sold through Polar (polar.sh) at $24 a year for 5 sites. This plugin links to it from its row on the Plugins screen and once under the scan results; it shows no other notices.
     70
    6771= Some files were skipped. Why? =
    6872
    … …  
    7781== Changelog ==
    7882
     83= 1.1.0 =
     84* Adds a link to the optional Pro add-on (scheduled scans and email reports) on the Plugins screen and under the results.
     85
    7986= 1.0.0 =
    8087* First release: scans plugins and themes for PHP 7.4 to 8.4, background batches, CSV report, WP-CLI command.
  • tidyleaf-upgrade-scanner/trunk/tidyleaf-upgrade-scanner.php

    r3777019 r3777140  
    33 * Plugin Name:       Tidyleaf Upgrade Scanner for PHP
    44 * Description:       Check your plugins and themes for PHP 8.4 compatibility (any target from 7.4 to 8.4) before you upgrade. Runs on your own server, no exec() needed, nothing leaves your site.
    5  * Version:           1.0.0
     5 * Version:           1.1.0
    66 * Requires at least: 6.0
    77 * Requires PHP:      7.4
    … …  
    1717defined( 'ABSPATH' ) || exit;
    1818
    19 define( 'TLPCC_VERSION', '1.0.0' );
     19define( 'TLPCC_VERSION', '1.1.0' );
    2020define( 'TLPCC_FILE', __FILE__ );
    2121define( 'TLPCC_DIR', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.