MainWP Blog

Lazy Loading Background Images WordPress
Tips & Tricks
Sebastian Moran

How to Lazyload Background Images in WordPress

A fast loading website is an integral part of building websites nowadays as it may help site visitors stay and explore more. Lazy loading images is one of the techniques which may result in better performance. One of the easy plugins to enable lazyload of background images is called Lazyload Background Images. 1. Lazyload Background Images In the plugin settings, you can also add the selectors for elements that contain background images. By default, the plugin will lazyload background images that are contained in inline CSS. To enable background images to lazyload, navigate to wp-admin, and get into “Lazyload Backgrounds”

Remove Broken Link Plugin Data
Tips & Tricks
Sebastian Moran

How to Remove the Broken Link Checker Plugin Data on Your Site

If you are using the Broken Link Checker plugin on your site, it may cause resource and CPU issues on the hosting server. The blc_installation_log option could get as large as 1MB with 50kb of autoloading data if you have many posts on the site. The options values that the Broken Link Checker plugin uses are; wsblc_options blc_activation_enabled blc_installation_log The Broken Link Checker plugin uses the following database tables to store the data; wp_blc_filters wp_blc_instances wp_blc_links wp_blc_synch The database tables should be removed when you deactivate and uninstall the plugin. However, if they still exist, you can use a plugin

SEOPress Data Remove
Tips & Tricks
Sebastian Moran

How to Remove the SEOPress Plugin Data on Your Site

If you are using the SEOPress plugin and want to migrate to a different SEO plugin, you may need to remove the database tables it was using. Before deleting the database tables, make sure that you run the migration from SEOPress to the SEO plugin that you want to replace it with. Here’s the database table that you will need to delete; wp_seopress_significant_keywords Additionally, there will be SEOPress database entries in both the postmeta and options database tables; the entries will start with; seopress_ If your host comes with phpMyAdmin access in the control panel, then it would be recommended

Remove Code Snippets Plugin Data
Tips & Tricks
Sebastian Moran

How to Remove the Code Snippets Plugin Data on Your Site

The Code Snippets plugin is a commonly used plugin for storing code snippets that are not tied to the child themes functions.php file. Code Snippets Plugin for WordPress The Code Snippets plugin will store created code snippets into the below custom database table; wp_snippets Existing code snippets in the plugin can be downloaded as PHP files which you can turn into site-specific plugins or you could add them into the child themes functions.php file. To remove all of the code snippets data when you uninstall the plugin, select “Complete Uninstall” by navigating to: Snippets > Settings > General The default

Eliminate Render Blocking Resources
Tips & Tricks
Sebastian Moran

How to Eliminate Render Blocking Resources on Your Site

The two most common resource types that will cause assets for being render-blocking would be CSS and JavaScript which are being loaded on the front-end of your site. Front-end CSS and JS files would be from active plugins which are loading assets on the front-end as well as the active theme would be loading both CSS files and JavaScript files. Two of the easiest plugins to use that work together to be able to eliminate render-blocking resources on your site are Autoptimize and Async JavaScript. The Async JavaScript plugin has an integration setting if the Autoptimize plugin is active on

Remove WP Offload SES Plugin Logs
Tips & Tricks
Sebastian Moran

How to Optimize Database Usage for the WP Offload SES Plugin

The WP Offload SES plugin is used to send site emails using the cheapest AWS SES service. WP Offload SES Lite Plugin for WordPress Below are the custom database tables that the WP Offload SES plugin uses; wp_oses_attachments wp_oses_clicks wp_oses_email_attachments wp_oses_emails wp_oses_failures wp_oses_jobs The database table to check; wp_oses_emails From the WP Offload SES plugin settings, check that you are not storing 30+ days or email logging in your site’s database. The ideal setting for log storage would be between 7 & 14 days. Otherwise, it can result in that database table being 20~30+ GB in size. Settings > Offload

Pre Load Images WordPress
Tips & Tricks
Sebastian Moran

How to Preload Images on Your WordPress Site

One of the easiest ways to improve front-end performance is to preload the images which contribute to the largest contentful paint (LCP) of the site. To find the images that should be set to preload, test your site using popular performance testing tools, or use the MainWP Lighthouse extension, and navigate to the waterfall results to find the image URL. Head & Footer WordPress Plugin There are a number of ways to preload images by either using a header and footer plugin and then adding the image URLs that should be preloaded in the header of the site. After the

Constants for UpdraftPlus - WordPress Backup Plugin
Tips & Tricks
Sebastian Moran

Some Useful “Constants” for UpdraftPlus

If you are using the UpdraftPlus plugin for site backups then you can control a number of parts of the plugin using constants. Useful Constants for UpdraftPlus The constants for the UpdraftPlus plugin can be added to the site wp-config.php file. Adding constants to your site wp-config.php is possible using the code snippets extension of MainWP. You can also manually edit the site’s wp-config.php file to add the required constant to it. If you have larger database tables then you can set the backup for the database to always use binary MySQL dump using this constant; define(‘UPDRAFTPLUS_ALWAYS_TRY_MYSQLDUMP’, true); If you

Image Formats for WordPress
Tips & Tricks
Sebastian Moran

What Are the Best Image Formats For Your WordPress Website

Since the beginning, JPEG and PNG are the most commonly used image formats in WordPress but with Version 5.8, WebP images are also supported in the media library. As part of the performance focus for WordPress core, WebP image conversion while uploading images might be coming in the later releases. But… There is a plugin “Performance Lab” by the team behind “WordPress Performance Group” which allows you to enable WebP conversion while uploading JPEG files to your media library. Give it a try to test and measure the difference it brings by converting images to WebP image format. You can

iThemes Security Plugin Data Remove After Uninstallation
Tips & Tricks
Sebastian Moran

How to Remove iThemes Security Plugin Data Leftover on Uninstall

If you use the iThemes Security plugin on your WordPress website and want to uninstall it completely, but, the normal uninstallation sometimes leaves the database tables and cron events that you may need to remove manually. This guide is for you! iThemes Security Plugin for WordPress In order to remove the iThemes Security plugin’s database entries, you can use the WP-Optimize plugin as one of the easiest ways to find database tables of iThemes security. After installing and activating the WP-Optimize plugin, navigate to: WP-Optimize > Database > Tables Search for itsec and remove all the database tables that are

Looking for something?

Privacy laws apply to businesses that collect personal information. Since no personal information is collected by the MainWP plugins, no privacy laws apply to the MainWP plugins. This includes GDPR, UK DPA 2018, PIPEDA, Australia Privacy Act 1988, LGPD, PIPL, and other privacy laws.
Donata Stroink-Skillrud
Donata Stroink-Skillrud
President of Agency Attorneys