It's all about my technology & social adventures…

Category Technology

Embracing PHP Class Composition: A Modern Approach Over Inheritance

Introduction: Object-oriented programming (OOP) in PHP has traditionally relied heavily on inheritance as a means of code reuse. However, as developers face the challenges of maintaining and extending complex systems, a shift towards class composition over inheritance has gained momentum…. Continue Reading →

A Comprehensive Guide to PHP Composer and Namespace: Simplifying Dependency Management and Autoloading

Introduction: In the ever-evolving world of PHP development, tools like Composer and concepts like Namespaces have become indispensable for managing dependencies and organizing code efficiently. This blog post aims to provide a detailed guide on PHP Composer and Namespaces, along… Continue Reading →

WordPress Security Tips: Security Risks of WordPress xmlrpc.php and Why We Need to Disable It

While WordPress’s user-friendly interface and extensive plugin library make it a favorite among website owners, it’s crucial to be aware of potential security risks. One often overlooked vulnerability is the XML-RPC functionality, which is enabled by default in WordPress. In… Continue Reading →

WordPress Security Tips: Protecting Your Website from Vulnerabilities

Introduction WordPress is undoubtedly one of the most popular and user-friendly content management systems (CMS) available today. It powers millions of websites, from personal blogs to major media agencies and e-commerce stores. But its widespread use also makes it a… Continue Reading →

WordPress Hooks and the Class: A Powerful Combination for Extending Functionality

WordPress is renowned for its flexibility and extensibility, allowing developers to build websites that go beyond the basics. At the heart of this extensibility are WordPress hooks, which enable you to modify or extend the core functionality of WordPress. In… Continue Reading →

Streamlining Your Development Workflow: Automatic PR Creation in CircleCI

In the realm of modern software development, efficiency, and automation are paramount. Every moment saved on manual tasks is an opportunity gained for innovation and improvement. Enter CircleCI, a robust and versatile continuous integration and delivery platform. In this guide,… Continue Reading →

Unit testing WordPress plugin in isolation with WP_Mock

In Unit Testing, the word “Unit” actually denotes testing the code in small chunks, that is small units. So what does it mean? Testing each method in a class without any other dependencies. In the WordPress world, testing code without… Continue Reading →

Custom WP-CLI command and Unit testing with PHPUnit

WP-CLI is the command-line interface for WordPress to interact, manage and maintain it. Writing some custom CLI commands are necessary when we manage a large customised website or a complex plugin. It’s obvious that we need to write PHPUnit tests… Continue Reading →

Unit Testing Custom WordPress REST API

In a real-world scenario, we have to write some custom REST API endpoints to satisfy our business requirements, as one shoe will not fit for all right? So how do we make sure that our custom REST API always works… Continue Reading →

An Introduction to unit testing WordPress plugin using PHPUnit

Doing a complete test of our code is very important whenever we make some code changes or release a new version to make sure new functionality doesn’t break the existing ones. Doing it all manually is the very hard part… Continue Reading →

« Older posts Newer posts »

© 2024 Dhanendran's Blog — Powered by WordPress

Theme by Anders NorenUp ↑