Steven Vachon

Archive for posts tagged with “php

SEO Internal Link Shortcode for WordPress

0 comments

This plugin allows you to create internal <a> links within your content that will not break when things get renamed or moved. While there are similar plugins available, they do not offer important SEO options.

You can add any HTML attribute to your link as long as it’s prefixed with “attr_”. And because it supports attributes that may not currently exist, it is future proof. Read more

Benchmark: PHP strlen vs. count (and sizeof)

0 comments

I was writing some code that generated a string from an array and came across a pretty rare situation where I could either get the length of that array or the length of the assembled string. Wondering which was faster and finding nothing on Google, I put this benchmark together. Read more

HTML Minify (WP-HTML-Compression)

19 comments

Combining HTML “minification” with cache and HTTP compression will cut down your bandwidth and ensure near-immediate content delivery while increasing your Google rankings.

This plugin will compress your HTML by shortening URLs and removing standard comments and white space; including new lines, carriage returns, tabs and excess spaces. Most importantly, by ignoring <pre>, <textarea>, <script> and Explorer® conditional comment tags, presentation will not be affected. Read more