The ActivityPub plugin for WordPress is a tool that extends the functionality of a WordPress website to make it compatible with the ActivityPub protocol. ActivityPub is a decentralised social networking protocol that allows different social media platforms to communicate and share content in a standardised way.
My WordPress site can interact with other ActivityPub-compatible platforms such as Mastodon. This means I can follow and be followed by users on other ActivityPub-compatible social networks like Mastodon, Pleroma, or Pixelfed. I can share my posts, articles, and updates from my WordPress site directly to my followers on other platforms that support ActivityPub.
ActivityPub enables interactions such as liking (favouriting), sharing (boosting), and commenting (replies) on my WordPress posts from other ActivityPub users. The plugin allows me to control the visibility of my posts, making it possible to share them publicly or restrict it to specific audiences.
Once you follow my @khurtwilliams@islandinthenet.com profile, any blog post I post will land in your Home feed on Mastodon. I receive notifications for interactions with my content, such as when someone likes, shares, or comments on my posts.
The ActivityPub plugin enhances my WordPress website's connectivity, enabling it to become a part of the larger decentralised social web. It fosters a more open and interconnected online social experience, where users on various platforms can engage with my content seamlessly.
?I’m always looking to improve the performance of my website. I’m using the free version of [JetPack Boost] and Google’s PageSpeed Insights services to check my website performance. I look at the recommendations for improvement and implement them where I can. I have turned on features in JetPack Boost to optimise CSS load and defer non-essential Javascript until after the page loads, so the important stuff loads faster. I enabled lazy image loading to load only images the user can see. Doing all of that can make the website feel snappier.
The Image CDN feature delivers images from Jetpack's Content Delivery Network (CDN). The CDN Automatically resizes your images to an appropriate size, converts them to modern, efficient formats like WebP, and serves them from a worldwide network of servers. When I have uploaded later edits of images, I have had issues with the CDN serving the old versions of images instead of the updated version. I did not enable the Image CDN feature.
JetPack Boost Config
However, I was only partially happy with the results. When I ran a test using PageSpeed Insights, I got a pretty shitty score with a message that the website had failed the Core Web Vitals Assessment. I wanted to do better. The cool thing about PageSpeed Insights is that it will diagnose performance issues and suggest recommendations for improvement. PageSpeed Insights recommended using a more optimised theme, an optimisation plugin, or upgrading the server.
JetPack Boost Score
I’m using an IndieWeb version of the Twenty Sixteen theme. It has an additional markup for microformat2, which could be causing some performance issues. However, removing that code is not an option since I need microformat2 support to use the IndieWeb plugins. I’m using a fairly robust virtual private server from Digital Ocean. I don’t see any issues in the Digital Ocean dashboard to indicate that server performance is an issue.
PageSpeed Insights
The other recommendation from PageSpeed Insights was to use the Performance Lab plugin to convert uploaded JPEG images into WebP automatically. The Image CDN feature of JetPack Boost does this, but as I mentioned before, I have had issues with the CDN serving the old versions of images even after new ones are uploaded.
As a starting point, I used the following settings from the INSTALL.md on the Redis GitHub. ** Please make sure to change the cache keys to something unique**. I used the wordpress.org salt generator to create a unique key for my installation. By default, the object cache will connect to Redis Server over TCP at 127.0.0.1:6379. For security reasons, I explicitly defined the host and port settings.
//Adjust Redis host and port if necessary ?define( 'WP_REDIS_HOST', '127.0.0.1' );?define( 'WP_REDIS_PORT', 6379 );??// Set a cache key salt and enable a persistent cache with the Redis object cache plugin?define('WP_CACHE_KEY_SALT', ’example.com');?define('WP_CACHE', true); ??// Reasonable connection and read+write timeouts?define( 'WP_REDIS_TIMEOUT', 1 ); ?define( 'WP_REDIS_READ_TIMEOUT', 1 );?
There are other Redis settings that I want to learn more about before enabling them.
Configuration constant
Description
WP_REDIS_PASSWORD
The password of the Redis server. Supports Redis ACLs arrays: ['user', 'password']
Since I have set the Redis server to only listen on localhost, setting WP_REDIS_SCHEME isn’t critical. However, this setting would add another layer of security.
Results and Up Next
JetPack Boost Worse
JetPack Boost said my website performance had fallen after enabling Redis. There was a caveat message from JetPack Boost Most of the time, JetPack Boost will increase website speed, but there may be cases where the score does not increase. The JetPack Boost documentation on improving the Site Speed Score recommended using Google’s PageSpeed Insights tool. I found that suggestion humorous. I considered if there was a conflict between JetPack Boost and Redis and how JetPack Boost reports performance. I decided to rely on the results from PageSpeed Insights.
Disabling the Optimize Critical CSS Loading of JetPack boost improved the Desktop Score but worsened the Mobile Sore significantly. I’ll keep experimenting and reading and learning about Redis. I want to ensure I have optimised my website as much as possible. Seeing the word, Failed on the PageSpeed Insights test agitates me.
Jim Grey appears to be using the Yoast SEO caching plugin. I ran one of his posts through PageSpeed Insights, and his website got a Core Web Vitals Assessment: Passed. I’ll try using a caching plugin with Redis and see what happens.?
I started blogging regularly around October 2001, bouncing between various platforms before settling on WordPress circa 2004. Congratulations to Automattic, and thanks for your work keeping the platform going.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to using ALL the cookies. However, this website has no interest in selling your information. It does not explicitly use social media cookies from Facebook, Google, Twitter, Threads, Instagram etc. Read More
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.