Developer's blog

How to use WordPress StyleSheets(Stylelint) Coding Standards

How to use WordPress StyleSheets(Stylelint) Coding Standards
2 min read
131

The WordPress coding standards for style sheets use the Stylelint tool which makes your code consistent, elegant, and more readable. Stylelint has a bunch of rules (more than 170), a vast community, and excellent documentation. Get started with WordPress coding standards Use npm (or yarn) to install the WordPress Stylelint configuration package: The package supports SCSS and CSS syntax. Following, I show examples with SCSS files, but you can easily…

Best guide to security output for WordPress

Best guide to security output for WordPress
6 min read
606

Although we’ve already talked about code injection, we’re carrying on this topic from a slightly different angle today. More recently, cross-site-scripting(XSS) has become part of the code injection category, but this particular vulnerability has its peculiarity, so let’s not waste time and get started. Cross-site scripting Cross-site scripting (XSS) is a type of security vulnerability that can be found in some web applications. XSS attacks enable attackers to inject client-side…

Sanitizing is a great way to protect WordPress code

Sanitizing is a great way to protect WordPress code
8 min read
1579

It’s no secret that security is an essential part of any software. In this article, I will tell you about data sanitization and how a few small rules can help you greatly secure your codebase. If sanitization is the antidote, then what is the poison? Code injection is one of the most popular vulnerabilities in web development. Let’s take a deeper look at the problem. Let’s get started. Sanitizing is…

Husky is an excellent way to raise your development process

Husky is an excellent way to raise your development process
2 min read
743

Every developer can’t even imagine life without a version control system. I’m sure that you know a bunch of them, however, at the moment, the monopolist here is git. Git Hooks is one of the grateful things which provide git. As a WordPress developer, you already know that hooks are the greatest bestowed upon us by the supermind. Most importantly, Git Hooks allow the firing of custom scripts when certain…

Advanced usage of Acceptance Tests for WordPress

Advanced usage of Acceptance Tests for WordPress
9 min read
556

The day is here! I’m writing about tests again. Those who missed the first part about acceptance tests feel free to start with it. There was described environment setup and wrote your first acceptance test. The current article is for teams that already tried and wrote a couple of dozen tests and focused on long-term investing in the test base. I’m going to describe the common things that allow you…

Simple start with Acceptance Testing for WordPress

Simple start with Acceptance Testing for WordPress
8 min read
976

Acceptance (UI, E2E, GUI) tests are the highest testing layer and describe a customer’s behavior in browsers. Think of them as good old “user stories”. They are all about what a user can do and see. I’m sure that even one such kind of test can multiply improve your code quality. If you don’t have a strong opinion about test needs, I recommend starting with general testing information that I’ve…

Subscribe to news. I promise not to spam :)
Follow me, don't be shy