Referral System for WooCommerce. Each customer has referral link that rewards them with a coupon after someone makes a purchase through their link
Prioritized issue groups from the latest Plugin Check scan
I18n
56
4 issue groups
Maintainability
22
10 issue groups
Security
20
3 issue groups
Sample message
Mismatched text domain. Expected 'refer-a-friend-for-woocommerce-by-wpgens' but got 'gens-raf'.
Sample message
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"The handle <strong>$handle</strong> has already been registered. Please choose a different handle for your notification."'.
Sample message
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
Sample message
Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$class".
Sample message
Detected usage of meta_key, possible slow query.
Sample message
Detected usage of meta_value, possible slow query.
Sample message
The plugin name includes a restricted term. Your chosen plugin name - "Refer A Friend for WooCommerce by WPGens" - contains the restricted term "wp" which cannot be used at all in your plugin name.
Sample message
Hook names invoked by a theme/plugin should start with the theme/plugin prefix. Found: "'woocommerce_get_sections_' . $this->id".
Sample message
PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;
Sample message
Detected usage of meta_query, possible slow query.
Sample message
Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "run_gens_raf".
Sample message
trigger_error() found. Debug code should not normally be used in production.
Sample message
$_COOKIE["gens_raf"] not unslashed before sanitization. Use wp_unslash() or similar
Sample message
rand() is discouraged. Use the far less predictable wp_rand() instead.
Sample message
A function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.
Sample message
Multiple placeholders in translatable strings should be ordered. Expected "%1$s, %2$s", but got "%s, %s" in 'Thanks for using the Refer a Friend plugin! You can purchase the premium version and support us on <a href="%s" target="_blank">this page</a><br/>\n <h3>📋 SETUP GUIDE</h3>\n <ol>\n <li><strong>Configure General Settings:</strong> After installing the plugin, go to the Refer a Friend settings (this page) and click on the General tab. Set up your coupon options including discount type, amount, and expiration settings.</li>\n <li><strong>Customize Email Templates:</strong> Click on the Email tab and customize the message that will be sent to users when they receive their coupon code.</li>\n <li><strong>You\'re Done!</strong> Every user will now have a referral link in their account page. When someone makes a purchase through their referral link and the order is marked as complete, the referrer will receive a coupon in their inbox. For orders made through referrals, you can see the referrer\'s name in the order details screen, just below the customer information. <a href="%s" target="_blank">View example screenshot.</a></li>\n </ol>\n <br/>\n <strong>💡 Pro Tip:</strong> Make sure to test the referral flow with a test order to ensure everything works correctly before going live!\n '.
Sample message
The "Text Domain" header in the plugin file does not match the slug. Found "gens-raf", expected "refer-a-friend-for-woocommerce-by-wpgens".
Not analyzed yet.
First score snapshot
v1.3.6
55
Latest
| Scan | Score | Findings | Errors | Warnings | Plugin | Check |
|---|---|---|---|---|---|---|
| Latest | 55 | 98 | 77 | 21 | v1.3.6 | 2.0.0 |
Author, categories, issues, domains, and nearby plugins.