There will be occasions when you would need to make changes to the website to suit the business needs and do it very quickly. The only way is to do it by yourself without depending on web developers for which you have to build your website on a suitable Content Management System (CMS). A CMS enables you to be on your own in supporting the website needs for business. It enables you to monitor and control a marketing campaign to make it more efficient. Most importantly, it supports SEO by allowing automated compliance with the best practices for conducting business […]
Designing Swappable Search Request Implementations – Code Review Part 4
In the last article, we identified that the task of generating posts, albeit arbitrary, is just one possible implementation of getting content for a search query. As such, we split the tasks of “getting content” and “generating posts” into separate methods. This design sets us up for a discussion about designing swappable search request implementations. Before we get started, I want to remind you that Josh designed this plugin for educational purposes in order to teach you Advanced OOP and testing. As you and I work through the code review together, the tasks of “getting content” reveals itself as a […]
How to Use Blogging to Drive More Traffic to Your Site
Blogging is arguably the most effective way to drive continuous organic traffic to a website for a long period of time. It’s why every business from big brands such as Virgin and Starbucks to even the smallest retail stores and startups create a business blog from the very first day of the launch of their business. Having a business blog not only increases the chances of your website getting ranked on Google by 434 percent but it also allows B2B marketers to generate 67 percent more leads than the businesses without a blog. Blogs also take a major part in […]
Code Review Part 3 – Building & Refactoring the Posts Generator
In the last article, I walked you through a code review and refactoring process for the FilterWPQuery class in Josh Pollock’s plugin. We made his class more readable and performant. But we did not cover the posts generator code in the getPosts() method; rather, I left that review for this article. Why? There are two reasons. First, I wanted to give us time to thoroughly review this section of code. There are several areas that we can improve. This code provides a learning opportunity to improve your own code as we dive into code style, PHP namespace importing, string processing, and more. […]
Code Review Part 2: Improving Readability and Performance of the FilterWPQuery Class
In the last article, I walked you through the problem of letting “no go” conditions flow through your code. I showed you how to refactor the code to solve the problem and make the code more readable. In this article, you and I will continue doing a code review and refactoring of the FilterWPQuery in Josh Pollock’s plugin. In Part 3 of Advanced OOP for WordPress, Josh walks you through how he refactored the FilterWPQuery class to make it more testable. Let’s use his latest version of the class for our code review process. <?php namespace CalderaLearn\RestSearch; /** * Class FilterWPQuery * […]
Code Review Part 1: Fixing Design Flaw with the “Return Early” Strategy
While reading Josh Pollock’s first article in his Advanced OOP for WordPress series, I noticed opportunities to improve his code’s quality and performance. So I reached out to him. As a fellow educator, he suggested that I do a code review and then publish my insights in a series of articles here on Torque as a companion to his series. In this Code Quality Review series, I will present one or more code quality opportunities and provide details and insights to help you improve your code. Let’s start with the posts_pre_query method in his FilterWPQuery class: <?php class FilterWPQuery { […]
What is the Optimal Content Length? – Here’s What the Science Says
What is the optimal content length? How long should your blog posts be? What is the ideal word count for SEO? These are questions many would-be bloggers and marketers ask themselves. Obviously many things go into successful content marketing. From choosing the right keywords, to learning to write well, to image optimization. All these are factors in the success of your content. However, content length remains a critical topic, not least because it determines a lot about your overall strategy. Should you write a lot of shorter articles or concentrate on pushing out one massive article per month? Or is […]
Why and How to Increase Dwell Time on Your WordPress Website
Dwell time and how to increase dwell time are often neglected elements of search engine optimization. You, too, probably mostly concentrate on how to get visitors on your site and rarely give a thought about how to keep them there. However, dwell time, the amount of time visitors spend on your site, is an important indicator. Longer dwell time usually indicates a positive user experience. It’s also something search engines take notice of. For that reason, in this post we will dive into the topic of how to increase dwell time on your WordPress site. For that, we will first […]
The Beginner WordPress Developer’s Guide to wp_enqueue
While WordPress is powerful, there are plenty of under-the-hood features that can help you maximize its efficiency. In fact, overlooking inherent functions such as wp_enqueue could even impact your site’s overall effectiveness. If you optimize your themes and plugins correctly, you can improve your site’s performance while enhancing user experience. The wp_enqueue function is a great place to start. This simple integration can prevent issues with your theme when used with other WordPress plugins. In this article, you’ll learn exactly what wp_enqueue is all about, and how it can be used to improve your WordPress projects. Let’s get started! Introducing WordPress’ […]
Why Your eCommerce Store Needs AMPs ASAP
As you probably already know, mobile usage is on the rise. From checking the news to online shopping, mobile has become the easiest and most accessible way to get things done—partly because users can rely on their mobile devices to be available anytime and anywhere, which makes it convenient with our on-the-go lifestyles. People are not only getting more comfortable using their smartphones to do things like shopping, they are also spending more time using them. Just from 2016 to 2017, time spent per day on mobile has reportedly increased by seven minutes, reaching a total 3 hours and 15 […]
No Comments
Start the conversation