Skip to content

Instantly share code, notes, and snippets.

View sebastianmoran-mainwp's full-sized avatar
🚀
Fast Lane Strategies: Turbocharging Your WordPress Website for Optimal Speed.

Sebastian Moran sebastianmoran-mainwp

🚀
Fast Lane Strategies: Turbocharging Your WordPress Website for Optimal Speed.
View GitHub Profile
@sebastianmoran-mainwp
sebastianmoran-mainwp / Commands
Last active February 15, 2021 17:18
WP-CLI very handy wp doctor commands
wp doctor check --all
wp doctor check autoload-options-size
wp doctor check cron-count
wp doctor cron-duplicates
wp doctor plugin-active-count
wp doctor check option-blog-public
@sebastianmoran-mainwp
sebastianmoran-mainwp / swift-performance-mainwp.json
Last active February 8, 2021 12:34
Swift Performance - MainWP Site Settings
{"last_tab":"","clear_cache":"1","purchase-key":"833da525-f66a8573-30bab2a3-4aaa4616","cookies-disabled":"0","whitelabel":"0","use-compute-api":"1","remote-cron":"0","remote-cron-frequency":"daily","enable-beta":"1","enable-logging":"1","loglevel":"6","log-path":"/home/110201.cloudwaysapps.com/rbdgxbuqpv/public_html/wp-content/swift-logs-a6fc9733/","normalize-static-resources":"1","dns-prefetch":"0","dns-prefetch-js":"1","exclude-dns-prefetch":[""],"gravatar-cache":"1","gravatar-cache-expiry":"3600","custom-htaccess":"","background-requests":[""],"disable-heartbeat":{"index.php":"","edit.php,post.php,post-new.php":"0","upload.php,media-new.php":"","edit-comments.php,comment.php":"","nav-menus.php":"","widgets.php":"","theme-editor.php,plugin-editor.php":"","users.php,user-new.php,user-edit.php,profile.php":"","tools.php":"","options-general.php":""},"heartbeat-frequency":"","bypass-ga":"0","ga-tracking-id":"","ga-ip-source":"HTTP_X_FORWARDED_FOR","ga-anonymize-ip":"0","delay-ga-collect":"1","whitelabel-plugin
@sebastianmoran-mainwp
sebastianmoran-mainwp / Option names
Created December 22, 2020 21:09
SecurityWP plugin created option names
security_wp_dismiss_welcome_notice
security-wp-checklist-autorun
security-wp-cron-jobs
security-wp-firewall
security-wp-hardening
security-wp-log
security-wp-login
security-wp-notifications
security-wp-setup
@sebastianmoran-mainwp
sebastianmoran-mainwp / .htaccess
Created December 10, 2020 21:25
Smush Pro WebP conversion rules for Apache
# BEGIN SMUSH-WEBP
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/wp-content/smush-webp/disable_smush_webp !-f
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{DOCUMENT_ROOT}/wp-content/smush-webp/$1.$2.webp -f
RewriteRule ^/?(.+)\.(jpe?g|png)$ /wp-content/smush-webp/$1.$2.webp [NC,T=image/webp,E=WEBP_image]
</IfModule>
@sebastianmoran-mainwp
sebastianmoran-mainwp / Links
Last active October 23, 2020 03:53
WP Search with Algolia with WooCommerce Products
@sebastianmoran-mainwp
sebastianmoran-mainwp / Custom DB tables
Created October 8, 2020 04:07
AcyMailing plugin custom database tables
wp_acym_action
wp_acym_automation
wp_acym_campaign
wp_acym_condition
wp_acym_configuration
wp_acym_field
wp_acym_form
wp_acym_history
wp_acym_list
wp_acym_mail
@sebastianmoran-mainwp
sebastianmoran-mainwp / Custom DB tables
Created August 21, 2020 03:32
WP Statistics plugin created custom database tables
wp_statistics_exclusions
wp_statistics_historical
wp_statistics_pages
wp_statistics_search
wp_statistics_useronline
wp_statistics_visit
wp_statistics_visitor
@sebastianmoran-mainwp
sebastianmoran-mainwp / Command
Last active July 24, 2020 21:22
AMP plugin delete the validation of all URLs using a WP-CLI command
wp amp validation reset
@sebastianmoran-mainwp
sebastianmoran-mainwp / Example
Created July 17, 2020 04:18
Test a site if using Autoptimize plugin to bypass that version
https://sitedomain.com/?ao_noptimize=1
@sebastianmoran-mainwp
sebastianmoran-mainwp / Command
Created July 17, 2020 04:15
Clear Autoptimize minified cache using a WP-CLI command
wp autoptimize clear