Plugin Directory

Changeset 3833671


Ignore:
Timestamp:
11/29/2026 08:20:31 PM (less than one hour ago)
Author:
nayan4321
Message:

Version 1.8.0

Location:
laghavi-performance-insight-for-woocommerce
Files:
35 added
3 edited

Legend:

Unmodified
Added
Removed
  • laghavi-performance-insight-for-woocommerce/trunk/includes/class-lgpi-admin.php

    r3829703 r3833671  
    44 * (search engines, social networks, AI assistants, campaigns), pages (top, entry, exit, site search, not found),
    55 * products with the store funnel, coupons and every page's SEO score — for any period, with CSV export.
    6  * Ads, profit and AI fixes are in Laghavi Ads Hub (paid service), connected with the Performance Insight Pro add-on.
     6 * Ads, profit and AI fixes are in Laghavi (paid service), connected with the Performance Insight Pro add-on.
    77 *
    88 * @package PerformanceInsight
    … …  
    110110                $render = array( __CLASS__, 'render' );
    111111                add_submenu_page( $parent, __( 'Performance Insight', 'laghavi-performance-insight-for-woocommerce' ), __( 'Performance Insight', 'laghavi-performance-insight-for-woocommerce' ), self::VIEW, 'lgpi', $render );
    112                 add_submenu_page( $parent, __( 'Laghavi Ads Hub', 'laghavi-performance-insight-for-woocommerce' ), __( 'Insight Pro', 'laghavi-performance-insight-for-woocommerce' ) . ' <span class="lgpi-menu-pro">Pro</span>', self::CAP, 'lgpi-connect', $render );
     112                add_submenu_page( $parent, __( 'Laghavi', 'laghavi-performance-insight-for-woocommerce' ), __( 'Insight Pro', 'laghavi-performance-insight-for-woocommerce' ) . ' <span class="lgpi-menu-pro">Pro</span>', self::CAP, 'lgpi-connect', $render );
    113113                $hidden = array(
    114114                        'lgpi-visitors' => array( __( 'Visitors', 'laghavi-performance-insight-for-woocommerce' ), self::VIEW ),
    … …  
    289289                $items['lgpi-seo'] = array( 'dashicons-search', __( 'SEO scores', 'laghavi-performance-insight-for-woocommerce' ) );
    290290                if ( current_user_can( self::CAP ) ) {
    291                         $items['lgpi-connect']  = array( 'dashicons-awards', __( 'Laghavi Ads Hub', 'laghavi-performance-insight-for-woocommerce' ) );
     291                        $items['lgpi-connect']  = array( 'dashicons-awards', __( 'Laghavi', 'laghavi-performance-insight-for-woocommerce' ) );
    292292                        $items['lgpi-settings'] = array( 'dashicons-admin-generic', __( 'Settings', 'laghavi-performance-insight-for-woocommerce' ) );
    293293                }
    … …  
    619619                        array( 'dashicons-megaphone', __( 'Sales next to your ads', 'laghavi-performance-insight-for-woocommerce' ), __( 'Meta, Google, TikTok and more — which ads really sell.', 'laghavi-performance-insight-for-woocommerce' ) ),
    620620                );
    621                 echo '<div class="lgpi-card lgpi-procard"><h3><span class="dashicons dashicons-awards"></span> ' . esc_html__( 'See everything in Laghavi Ads Hub', 'laghavi-performance-insight-for-woocommerce' ) . '</h3>';
    622                 echo '<p>' . esc_html__( 'This plugin shows what happens on your site. Laghavi Ads Hub adds your ads, costs and profit — and tells you what to do. Connect your store and up to 90 days of history appear straight away.', 'laghavi-performance-insight-for-woocommerce' ) . '</p><div class="lgpi-features">';
     621                echo '<div class="lgpi-card lgpi-procard"><h3><span class="dashicons dashicons-awards"></span> ' . esc_html__( 'See everything in Laghavi', 'laghavi-performance-insight-for-woocommerce' ) . '</h3>';
     622                echo '<p>' . esc_html__( 'This plugin shows what happens on your site. Laghavi adds your ads, costs and profit — and tells you what to do. Connect your store and up to 90 days of history appear straight away.', 'laghavi-performance-insight-for-woocommerce' ) . '</p><div class="lgpi-features">';
    623623                foreach ( $items as $it ) {
    624624                        echo '<div><span class="dashicons ' . esc_attr( $it[0] ) . '"></span><strong>' . esc_html( $it[1] ) . '</strong><span>' . esc_html( $it[2] ) . '</span></div>';
    625625                }
    626626                echo '</div><p>';
    627                 self::hub_button( self::connected() ? __( 'Open your full dashboard', 'laghavi-performance-insight-for-woocommerce' ) : __( 'Get Laghavi Ads Hub', 'laghavi-performance-insight-for-woocommerce' ) );
     627                self::hub_button( self::connected() ? __( 'Open your full dashboard', 'laghavi-performance-insight-for-woocommerce' ) : __( 'Get Laghavi', 'laghavi-performance-insight-for-woocommerce' ) );
    628628                echo '</p></div>';
    629629        }
    … …  
    10191019                }
    10201020                if ( count( $list ) > 100 ) {
    1021                         self::more_in_hub( __( 'The newest 100 journeys are shown here. Laghavi Ads Hub keeps them all, next to your ad spend per source.', 'laghavi-performance-insight-for-woocommerce' ) );
     1021                        self::more_in_hub( __( 'The newest 100 journeys are shown here. Laghavi keeps them all, next to your ad spend per source.', 'laghavi-performance-insight-for-woocommerce' ) );
    10221022                }
    10231023                echo '<p class="lgpi-muted">' . esc_html__( 'Journeys are anonymous: no name, email or IP address is stored, and an order is linked only by its order number. The time on the last page is counted until the order, cart or sign-up.', 'laghavi-performance-insight-for-woocommerce' ) . '</p></div>';
    … …  
    10491049         */
    10501050        private static function more_in_hub( $text ) {
    1051                 echo '<div class="lgpi-limit"><span class="dashicons dashicons-awards"></span><span>' . esc_html( $text ) . '</span><a href="' . esc_url( self::hub_url() ) . '" target="_blank" rel="noopener">' . esc_html( self::connected() ? __( 'Open your full dashboard', 'laghavi-performance-insight-for-woocommerce' ) : __( 'Get Laghavi Ads Hub', 'laghavi-performance-insight-for-woocommerce' ) ) . ' →</a></div>';
     1051                echo '<div class="lgpi-limit"><span class="dashicons dashicons-awards"></span><span>' . esc_html( $text ) . '</span><a href="' . esc_url( self::hub_url() ) . '" target="_blank" rel="noopener">' . esc_html( self::connected() ? __( 'Open your full dashboard', 'laghavi-performance-insight-for-woocommerce' ) : __( 'Get Laghavi', 'laghavi-performance-insight-for-woocommerce' ) ) . ' →</a></div>';
    10521052        }
    10531053
    … …  
    11311131                }
    11321132                echo '</tbody></table></div>';
    1133                 self::more_in_hub( __( 'What to fix on each page, the Google searches it appears for and which ads bring buyers to it — in Laghavi Ads Hub.', 'laghavi-performance-insight-for-woocommerce' ) );
     1133                self::more_in_hub( __( 'What to fix on each page, the Google searches it appears for and which ads bring buyers to it — in Laghavi.', 'laghavi-performance-insight-for-woocommerce' ) );
    11341134                echo '</div>';
    11351135        }
    … …  
    11651165                }
    11661166                echo '</tbody></table></div>';
    1167                 self::more_in_hub( __( 'Profit per product after ad spend, abandoned carts, stock vs ads and an AI review of each product page — in Laghavi Ads Hub.', 'laghavi-performance-insight-for-woocommerce' ) );
     1167                self::more_in_hub( __( 'Profit per product after ad spend, abandoned carts, stock vs ads and an AI review of each product page — in Laghavi.', 'laghavi-performance-insight-for-woocommerce' ) );
    11681168                echo '</div>';
    11691169        }
    … …  
    12421242                }
    12431243                echo '</tbody></table></div>';
    1244                 self::more_in_hub( __( 'Every coupon over any period, a weekly timeline, which ads bring coupon buyers and abandoned carts — in Laghavi Ads Hub.', 'laghavi-performance-insight-for-woocommerce' ) );
     1244                self::more_in_hub( __( 'Every coupon over any period, a weekly timeline, which ads bring coupon buyers and abandoned carts — in Laghavi.', 'laghavi-performance-insight-for-woocommerce' ) );
    12451245                echo '</div>';
    12461246                if ( $r['codes_in_store'] ) {
    … …  
    14871487                        }
    14881488                        echo '</tbody></table></div></div>';
    1489                         echo '<div class="lgpi-card lgpi-procard"><h3><span class="dashicons dashicons-awards"></span> ' . esc_html__( 'Get the exact fix for this page', 'laghavi-performance-insight-for-woocommerce' ) . '</h3><p>' . esc_html( 'product' === $type ? __( 'Laghavi Ads Hub reads this product page and writes the changes for you: a new SEO title and meta description, alt text for each photo, a better product description and FAQs, photo and video ideas, why visitors don’t buy — and the Google searches this product appears for.', 'laghavi-performance-insight-for-woocommerce' ) : __( 'Laghavi Ads Hub reads this page and writes the changes for you: a new SEO title and meta description, alt text for each image, better headings and text — and the Google searches this page appears for.', 'laghavi-performance-insight-for-woocommerce' ) ) . '</p><p>';
    1490                         self::hub_button( self::connected() ? __( 'Open your full dashboard', 'laghavi-performance-insight-for-woocommerce' ) : __( 'See Laghavi Ads Hub', 'laghavi-performance-insight-for-woocommerce' ) );
     1489                        echo '<div class="lgpi-card lgpi-procard"><h3><span class="dashicons dashicons-awards"></span> ' . esc_html__( 'Get the exact fix for this page', 'laghavi-performance-insight-for-woocommerce' ) . '</h3><p>' . esc_html( 'product' === $type ? __( 'Laghavi reads this product page and writes the changes for you: a new SEO title and meta description, alt text for each photo, a better product description and FAQs, photo and video ideas, why visitors don’t buy — and the Google searches this product appears for.', 'laghavi-performance-insight-for-woocommerce' ) : __( 'Laghavi reads this page and writes the changes for you: a new SEO title and meta description, alt text for each image, better headings and text — and the Google searches this page appears for.', 'laghavi-performance-insight-for-woocommerce' ) ) . '</p><p>';
     1490                        self::hub_button( self::connected() ? __( 'Open your full dashboard', 'laghavi-performance-insight-for-woocommerce' ) : __( 'See Laghavi', 'laghavi-performance-insight-for-woocommerce' ) );
    14911491                        echo '</p></div>';
    14921492                }
    … …  
    15761576                usort( $rows, fn( $a, $b ) => $a['score'] <=> $b['score'] );
    15771577                echo '<div class="lgpi-head"><div><h2>' . esc_html__( 'SEO scores', 'laghavi-performance-insight-for-woocommerce' ) . '</h2><p>' . esc_html__( 'Every page, post and product scored for what search engines and shoppers look for — weakest first. Click one to see its problems.', 'laghavi-performance-insight-for-woocommerce' ) . '</p></div></div>';
    1578                 echo '<div class="lgpi-note pro"><span class="dashicons dashicons-awards"></span> ' . esc_html__( 'This plugin finds the problems. Laghavi Ads Hub writes the exact fix for each page — a new SEO title and description, alt text for every image, better product text — and shows the Google searches each page appears for.', 'laghavi-performance-insight-for-woocommerce' ) . ' <a href="' . esc_url( self::hub_url() ) . '" target="_blank" rel="noopener">' . esc_html__( 'See Laghavi Ads Hub', 'laghavi-performance-insight-for-woocommerce' ) . '</a></div>';
     1578                echo '<div class="lgpi-note pro"><span class="dashicons dashicons-awards"></span> ' . esc_html__( 'This plugin finds the problems. Laghavi writes the exact fix for each page — a new SEO title and description, alt text for every image, better product text — and shows the Google searches each page appears for.', 'laghavi-performance-insight-for-woocommerce' ) . ' <a href="' . esc_url( self::hub_url() ) . '" target="_blank" rel="noopener">' . esc_html__( 'See Laghavi', 'laghavi-performance-insight-for-woocommerce' ) . '</a></div>';
    15791579                echo '<div class="lgpi-card"><div class="lgpi-filters"><a class="' . esc_attr( '' === $type ? 'on' : '' ) . '" href="' . esc_url( self::url( 'lgpi-seo' ) ) . '">' . esc_html__( 'All', 'laghavi-performance-insight-for-woocommerce' ) . '</a>';
    15801580                foreach ( $types as $t ) {
    … …  
    16151615
    16161616        /**
    1617          * Laghavi Ads Hub: the Pro add-on's connect screen when installed, else how to get it.
     1617         * Laghavi: the Pro add-on's connect screen when installed, else how to get it.
    16181618         */
    16191619        private static function page_hub() {
    … …  
    16221622                        return;
    16231623                }
    1624                 echo '<div class="lgpi-head"><div><h2>' . esc_html__( 'Laghavi Ads Hub', 'laghavi-performance-insight-for-woocommerce' ) . ' <span class="lgpi-menu-pro">Pro</span></h2><p>' . esc_html__( 'The full dashboard for your store, by Laghavi Digital — a paid service.', 'laghavi-performance-insight-for-woocommerce' ) . '</p></div></div>';
    1625                 echo '<div class="lgpi-card"><h3>' . esc_html__( 'How to connect', 'laghavi-performance-insight-for-woocommerce' ) . '</h3><ol class="lgpi-steps"><li>' . esc_html__( 'Choose a Laghavi Ads Hub plan on laghavi.site.', 'laghavi-performance-insight-for-woocommerce' ) . '</li><li>' . esc_html__( 'Install the Performance Insight Pro add-on you receive with your plan (Plugins → Add New → Upload Plugin).', 'laghavi-performance-insight-for-woocommerce' ) . '</li><li>' . esc_html__( 'Paste your Hub address and store key here — your store’s numbers appear in your dashboard within the hour.', 'laghavi-performance-insight-for-woocommerce' ) . '</li></ol><p>';
     1624                echo '<div class="lgpi-head"><div><h2>' . esc_html__( 'Laghavi', 'laghavi-performance-insight-for-woocommerce' ) . ' <span class="lgpi-menu-pro">Pro</span></h2><p>' . esc_html__( 'The full dashboard for your store, by Laghavi Digital — a paid service.', 'laghavi-performance-insight-for-woocommerce' ) . '</p></div></div>';
     1625                echo '<div class="lgpi-card"><h3>' . esc_html__( 'How to connect', 'laghavi-performance-insight-for-woocommerce' ) . '</h3><ol class="lgpi-steps"><li>' . esc_html__( 'Choose a Laghavi plan on laghavi.site.', 'laghavi-performance-insight-for-woocommerce' ) . '</li><li>' . esc_html__( 'Install the Performance Insight Pro add-on you receive with your plan (Plugins → Add New → Upload Plugin).', 'laghavi-performance-insight-for-woocommerce' ) . '</li><li>' . esc_html__( 'Paste your Laghavi dashboard address and store key here — your store’s numbers appear in your dashboard within the hour.', 'laghavi-performance-insight-for-woocommerce' ) . '</li></ol><p>';
    16261626                self::hub_button( __( 'See plans', 'laghavi-performance-insight-for-woocommerce' ) );
    16271627                echo '</p></div>';
    16281628                self::hub_card();
     1629                self::crm_card();
     1630        }
     1631
     1632        /**
     1633         * Laghavi CRM: the other paid product — run the whole business, not only the marketing.
     1634         */
     1635        private static function crm_card() {
     1636                $items = array(
     1637                        array( 'dashicons-cart', __( 'Every order in one list', 'laghavi-performance-insight-for-woocommerce' ), __( 'WooCommerce orders come in by themselves, with their latest status (processing, shipped, delivered). Add in-store, phone and WhatsApp orders next to them.', 'laghavi-performance-insight-for-woocommerce' ) ),
     1638                        array( 'dashicons-filter', __( 'Leads and sales pipeline', 'laghavi-performance-insight-for-woocommerce' ), __( 'Enquiries from your website, ads and WhatsApp become leads, shared out to your team in turn, with follow-up reminders.', 'laghavi-performance-insight-for-woocommerce' ) ),
     1639                        array( 'dashicons-media-document', __( 'Quotes, orders and invoices', 'laghavi-performance-insight-for-woocommerce' ), __( 'Your products and prices come from WooCommerce. Make PDF quotes and tax invoices with your own templates, and record payments.', 'laghavi-performance-insight-for-woocommerce' ) ),
     1640                        array( 'dashicons-phone', __( 'Calls, meetings and tasks', 'laghavi-performance-insight-for-woocommerce' ), __( 'Log calls, book meetings with calendar invitations, and keep projects and tasks on a timeline and calendar.', 'laghavi-performance-insight-for-woocommerce' ) ),
     1641                        array( 'dashicons-groups', __( 'Team, roles and targets', 'laghavi-performance-insight-for-woocommerce' ), __( 'Teams with leaders, who sees what, discount approvals and monthly targets.', 'laghavi-performance-insight-for-woocommerce' ) ),
     1642                        array( 'dashicons-controls-repeat', __( 'Automations', 'laghavi-performance-insight-for-woocommerce' ), __( 'Send new orders and leads to email, WhatsApp, Zoho, HubSpot, Pipedrive, Odoo or any app — 100 tasks a month included with the CRM.', 'laghavi-performance-insight-for-woocommerce' ) ),
     1643                );
     1644                echo '<div class="lgpi-card lgpi-procard"><h3><span class="dashicons dashicons-businessman"></span> ' . esc_html__( 'Run the whole business with Laghavi CRM', 'laghavi-performance-insight-for-woocommerce' ) . '</h3>';
     1645                echo '<p>' . esc_html__( 'Looking for order management, a CRM and automations too? Laghavi CRM keeps your website orders, in-store orders, leads, quotes and team in one place — ready-made for e-commerce, salons, real estate, rentals, travel, restaurants and service businesses. Priced per user; try it free for 15 days.', 'laghavi-performance-insight-for-woocommerce' ) . '</p><div class="lgpi-features">';
     1646                foreach ( $items as $it ) {
     1647                        echo '<div><span class="dashicons ' . esc_attr( $it[0] ) . '"></span><strong>' . esc_html( $it[1] ) . '</strong><span>' . esc_html( $it[2] ) . '</span></div>';
     1648                }
     1649                echo '</div><p><a class="button button-primary" href="' . esc_url( add_query_arg( array( 'utm_source' => 'wp-plugin', 'utm_medium' => 'performance-insight', 'utm_campaign' => 'crm' ), 'https://laghavi.site/crm/' ) ) . '" target="_blank" rel="noopener">' . esc_html__( 'See Laghavi CRM', 'laghavi-performance-insight-for-woocommerce' ) . '</a></p></div>';
    16291650        }
    16301651
  • laghavi-performance-insight-for-woocommerce/trunk/laghavi-performance-insight-for-woocommerce.php

    r3829703 r3833671  
    44 * Plugin URI:        https://laghavi.site/performance-insight/
    55 * Description:       Privacy-friendly WooCommerce analytics inside your WooCommerce menu: customer journeys (where each buyer came from and what they viewed), visitors, real time, traffic sources (including ChatGPT and other AI assistants), the store funnel, best-selling products, coupons and an SEO score for every page. No cookies, no Google Analytics needed.
    6  * Version:           1.7.0
     6 * Version:           1.8.0
    77 * Requires at least: 6.2
    88 * Requires PHP:      7.4
    … …  
    2222defined( 'ABSPATH' ) || exit;
    2323
    24 define( 'LGPI_VERSION', '1.7.0' );
     24define( 'LGPI_VERSION', '1.8.0' );
    2525define( 'LGPI_FILE', __FILE__ );
    2626define( 'LGPI_DIR', plugin_dir_path( __FILE__ ) );
  • laghavi-performance-insight-for-woocommerce/trunk/readme.txt

    r3829703 r3833671  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.7.0
     7Stable tag: 1.8.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    9595Your pages are not changed. A tiny script (about 1 KB) sends one small request after the page has loaded. No jQuery, no external scripts, no slowdown.
    9696
    97 = Want profit, ads and AI advice too? Laghavi Ads Hub (paid) =
    98 
    99 Laghavi Ads Hub is a separate paid service by Laghavi Digital. With a plan you receive the **Performance Insight Pro** add-on, which connects your store to your Hub dashboard:
     97= Want profit, ads and AI advice too? Laghavi (paid) =
     98
     99Laghavi is a separate paid service by Laghavi Digital. With a plan you receive the **Performance Insight Pro** add-on, which connects your store to your Laghavi dashboard:
    100100
    101101* Profit per product after ad spend, and stock vs ads.
    … …  
    104104* AI review of each product page and an AI action plan.
    105105
    106 This free plugin is complete on its own and sends no store data. Only the Pro add-on, installed separately, connects to Laghavi Ads Hub. Learn more at https://laghavi.site/performance-insight/
     106This free plugin is complete on its own and sends no store data. Only the Pro add-on, installed separately, connects to Laghavi. Learn more at https://laghavi.site/performance-insight/
     107
     108= Need order management and a CRM too? Laghavi CRM (paid) =
     109
     110Laghavi CRM is another paid service by Laghavi Digital: every order in one list (your WooCommerce orders with their latest status, plus in-store, phone and WhatsApp orders), leads and a sales pipeline, quotes and tax invoices as PDF, calls and meetings, projects and tasks, teams with roles and targets, and automations to email, WhatsApp, Zoho, HubSpot, Pipedrive, Odoo and other apps. Priced per user, with a free trial. Learn more at https://laghavi.site/crm/
    107111
    108112== Installation ==
    … …  
    164168= Is my data sent anywhere? =
    165169
    166 No. Your visitor and order data stays in your WordPress database. If you connect Google Search Console or Bing Webmaster Tools, the plugin reads your search data from them (it does not send them your visitor or order data). The optional deactivation feedback form sends only what you choose to type (see External services). Only the separate Performance Insight Pro add-on (part of a paid Laghavi Ads Hub plan) sends data, and only after you connect it.
     170No. Your visitor and order data stays in your WordPress database. If you connect Google Search Console or Bing Webmaster Tools, the plugin reads your search data from them (it does not send them your visitor or order data). The optional deactivation feedback form sends only what you choose to type (see External services). Only the separate Performance Insight Pro add-on (part of a paid Laghavi plan) sends data, and only after you connect it.
    167171
    168172= Will numbers match Google Analytics? =
    … …  
    214218== Changelog ==
    215219
     220= 1.8.0 =
     221* The Pro page now also introduces Laghavi CRM: order management for website and in-store orders, leads, quotes and invoices, calls and meetings, team and automations.
     222* "Laghavi Ads Hub" is now simply "Laghavi".
     223
    216224= 1.7.0 =
    217225* New Search screen: connect Google Search Console (sign in with Google) and Bing Webmaster Tools (API key). Clicks, impressions, click rate and position compared with the period before, top searches, quick wins, and landing pages with their visitors, orders and sales.
    … …  
    290298== Upgrade Notice ==
    291299
     300= 1.8.0 =
     301Pro page: Laghavi CRM added; product name now "Laghavi".
     302
    292303= 1.7.0 =
    293304New Search screen with Google Search Console and Bing searches next to your visitors and sales, plus more accurate visitors, countries and sources. Purge your page cache once after updating.
Note: See TracChangeset for help on using the changeset viewer.