Search form

Web Development

WordPress Plugin Development Tutorial

This article is intended to serve as a simple WordPress plugin development tutorial. For the purpose of demonstration we'll create a plugin that removes comment spam.

For this to work, you have to be running some sort of anti-spam system like Akismet that marks spam comments as such when they're submitted. Comments are written into a table called wp_comments in the database of your web site, and if they've been identified as spam, the word "spam" is written into their comment_approved field. Here's a look at the wp_comments table in phpMyAdmin:

Web Server Performance 2016

This is a shorthand summary of web server performance and caching systems as of March 2016.

General disclaimer: I try to link benchmark results that seem relatively neutral, but as with any survey or study or benchmark roundup, the most pertinent question is cui bono? Ultimately the only reliable benchmarks are those you run yourself in your own environment.

WordPress: Installation and Performance

This article describes some of the basics on installing and running WordPress to maximize its performance. The following scripts and text generally assume Debian/Ubuntu, so substitute Red Hat, Arch, etc. as needed.

Installation

If you're less lazy than I am, you could combine the whole install routine into a single Bash script, and make it compatible with multiple distros, something like:

Drupal Module Development Tutorial

On my Drupal 7 site here, I wanted to create a method of automatically injecting my Google Ad banners on all content pages before the Disqus comments thread. You could do this manually, say by adding a text field to your basic page content_type with a default value of all the Google Ads JavaScript, but this is clumsy: it clutters up your content pages, and it doesn't retroactively update any existing pages. No, this is a good time to make use of Drupal's ability to modify content dynamically using its hooks API in a simple custom module.

Install the APC Opcode Cache

Note: This is an old article, and the APC Opcode Cache is now abandoned. Strongly consider installing Zend OPcache instead. APC is now effectively unsupported, although you can still install and use it. Furthermore, OPcache is included in the PHP core as of PHP 5.5, and OPcache is also available and fully supported for PHP versions going back to 5.2. The APC user cache can be installed as APCu if you need its data store functionality.

Pages

Subscribe to RSS - Web Development