Skip to content

Commit

Permalink
Update admin-notices.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jessuppi authored Nov 9, 2017
1 parent 956662e commit 3296e70
Showing 1 changed file with 40 additions and 15 deletions.
55 changes: 40 additions & 15 deletions admin-notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,43 +18,68 @@ final class DSCFRG_Admin_Notices {
/**
* Rate Us
*/
private $days_before_display_rate_us = 3;
private $days_dismissing_rate_us = 180;
private $rate_us_url = 'https://wordpress.org/support/plugin/force-https-littlebizzy/reviews/#new-post';
private $days_before_display_rate_us = 3; // 3 days delay
private $days_dismissing_rate_us = 240; // 8 months reappear
private $rate_us_url = 'https://wordpress.org/support/plugin/disable-cart-fragments-littlebizzy/reviews/#new-post';
private $rate_us_message = 'Thanks for using <strong>%plugin%</strong>. Please support our free work by rating this plugin with 5 stars on WordPress.org. <a href="%url%" target="_blank">Click here to rate us.</a>';



/**
* Plugin suggestions
*/
private $days_dismissing_suggestions = 120;
private $days_dismissing_suggestions = 150; // 5 months reappear
private $suggestions_message = '%plugin% recommends the following free plugins:';
private $suggestions = array(
'force-strong-hashing-littlebizzy' => array(
'name' => 'Force Strong Hashing',
'desc' => 'Forces all user passwords generated by WordPress to be hashed using Bcrypt, the most secure and popular PHP hashing algorithm currently available.',
'filename' => 'force-strong-hashing.php',
'disable-wc-status-littlebizzy' => array(
'name' => 'Disable WooCommerce Status',
'desc' => 'Completely disables the WooCommerce Status widget in the WP Admin dashboard to greatly improve backend performance on high traffic WooCommerce shops.',
'filename' => 'disable-woocommerce-status.php',
),
'server-status-littlebizzy' => array(
'name' => 'Server Status',
'desc' => 'Useful statistics about the server OS, CPU, RAM, load average, memory usage, IP address, hostname, timezone, disk space, PHP, MySQL, caches, etc.',
'filename' => 'server-status.php',
'disable-wc-styles-littlebizzy' => array(
'name' => 'Disable WooCommerce Styles',
'desc' => 'Completely disables all of the CSS stylesheets that are loaded by WooCommerce in order that styling can be better managed by a single style.css file.',
'filename' => 'disable-woocommerce-styles.php',
),
'remove-query-strings-littlebizzy' => array(
'name' => 'Remove Query Strings',
'desc' => 'Removes all query strings from static resources meaning that proxy servers and beyond can better cache your site content (plus, better SEO scores).',
'filename' => 'remove-query-strings.php',
),
'disable-embeds-littlebizzy' => array(
'name' => 'Disable Embeds',
'desc' => 'Disables both external and internal embedding functions to avoid slow page render, instability and SEO issues, and to improve overall loading speed.',
'filename' => 'disable-embeds.php',
),
'disable-xml-rpc-littlebizzy' => array(
'name' => 'Disable XML-RPC',
'desc' => 'Completely disables all XML-RPC related functions in WordPress including pingbacks and trackbacks, and helps prevent attacks on the xmlrpc.php file.',
'filename' => 'disable-xml-rpc.php',
),
'disable-emojis-littlebizzy' => array(
'name' => 'Disable Emojis',
'desc' => 'Completely disables both the old and new versions of WordPress emojis, removes the corresponding javascript calls, and improves page loading times.',
'filename' => 'disable-emojis.php',
),
'force-https-littlebizzy' => array(
'name' => 'Force HTTPS',
'desc' => 'Redirects all HTTP requests to the HTTPS version and fixes all insecure static resources without altering the database (also works with CloudFlare).',
'filename' => 'force-https.php',
),
'server-status-littlebizzy' => array(
'name' => 'Server Status',
'desc' => 'Useful statistics about the server OS, CPU, RAM, load average, memory usage, IP address, hostname, timezone, disk space, PHP, MySQL, caches, etc.',
'filename' => 'server-status.php',
),
'404-to-homepage-littlebizzy' => array(
'name' => '404 To Homepage',
'desc' => 'Redirects all 404 (Not Found) errors to the homepage for a better user experience, less abuse from bots, and 100% elimination of Google GSC warnings.',
'filename' => '404-to-homepage.php',
),
'remove-category-base-littlebizzy' => array(
'name' => 'Remove Category Base',
'disable-author-pages-littlebizzy' => array(
'name' => 'Disable Author Pages',
'desc' => 'Completely disables the category base from all URLs generated by WordPress so that there is no category slug displayed on archive permalinks, etc.',
'filename' => 'remove-category-base.php',
'filename' => 'disable-author-pages.php',
),
);

Expand Down

0 comments on commit 3296e70

Please sign in to comment.