Website and application visitors expect their online experiences to be both fast and secure. This is especially true as websites and applications are more frequently used as the primary storefront for businesses, support transactions with sensitive information, and store private customer data. With over 28 percent of the world’s websites running on WordPress, they are especially vulnerable to attack due to higher levels of visibility. Whether you’re running a small personal blog or multi-million dollar eCommerce shop, this blog post will cover an array of security and performance improvements which all WordPress website owners should seriously consider implementing. When combined, […]
Building Custom REST API Routes Using Object-Oriented PHP
The two things I write most about for Torque are object-oriented PHP and the WordPress REST API. In this article, I will bring them together to show you how to build out a collection of custom REST API routes while applying the principles of object-oriented PHP. One of the great things about inheritance in object-oriented PHP is that it lets us share code between classes. There are a lot of ways to avoid repeating ourselves in our code. Inheritance is one of them and should only be used when two or more classes have similar purposes. If you have a […]
How to Be a Force for Good in Times of Crisis and Darkness
The world is on fire. At least, that’s what it seems like. Sometimes quite literally. Wherever you look, there are problems: A deadly global pandemic Wildfires on several continents Police brutality, escalating protests, and racial tensions Economic problems and huge unemployment numbers A growing social divide and political tensions Lack of effective political leadership and growing authoritarianism in several countries All of this is reason enough to despair and many of us do. Feelings of anxiety, depression, and suicidal ideation have increased considerably in recent months. However, what can we do about it? In this post, I hope to give […]
Testing React Components With Enzyme
So far in my series of posts on React development for WordPress, I’ve covered React basics, create-react-app and testing with Jest. Jest is useful for testing the rendering of React components. There are a few big buckets of functionality we have not looked at testing yet. Specifically how the internal state of stateful component changes, DOM events, and isolated testing of component class methods. Jest alone can’t do that. Using Enzyme For DOM Testing I hope it’s clear now how Jest, with the default test renderer, can do a lot of test coverage quickly. A snapshot covers one component, with […]
Mastering WordPress: 48 resources to go from newbie to pro
Mastery is a fascinating topic. Anyone taking pride in what they do are constantly striving to improve. To improve their skill set just a little more — to get a little better, faster, or more precise. Yet, mastery of any discipline comes down to one thing: practice. Whether you play the violin or are just trying to get really good at FlappyBird, you will need to put in the time it takes to get there. Mastering WordPress is no different. Increasing your skill set to an exceptional level is hard work. However, there are good reasons to do so: WordPress has […]
No Comments
Start the conversation