Posted on August 3, 2022Categories Docker, Plugin Development, Technology, WordPressTags , , , ,   Leave a comment on Testing MySQL Connectivity From WordPress Docker Containers

Testing MySQL Connectivity From WordPress Docker Containers

Moving forward with feature development for the Store Locator Plus® SaaS service includes moving forward with our tool kits and environments. Docker containers have become a bigger part of our development toolkit. They make for rapid deployment of isolated environments for testing various concepts without the overhead of virtual machines. While we have been working on Virtualbox virtualized machines for years, Docker is far faster to spin up and far less resource intensive. Along the way we have found the … Continue reading “Testing MySQL Connectivity From WordPress Docker Containers”

Posted on May 8, 2019Categories Plugin Development, Technology, WordPressTags , , , , , ,   Leave a comment on Cloning A VVV 2.6 Install

Cloning A VVV 2.6 Install

Decided to upgrade my long-term VVV setup that I use for daily client consulting work in preparation for a new gig as head of R&D and CTO for a super cool tech startup. As usual I should have left things alone as it was working fine; I only wanted to play with the newer VVV toys. You’d think I’d learn by now. What I ended up doing was cloning a working baseline VVV install I had created a few weeks … Continue reading “Cloning A VVV 2.6 Install”

Posted on August 23, 2018Categories JavaScript, Plugin Development, Programming, Programming Languages, Technology, WordPressTags , , , , , ,   Leave a comment on Vue – JavaScript Library Outside Google/Facebook Control

Vue – JavaScript Library Outside Google/Facebook Control

Vue is running on several projects to create a better admin user experience. Vuetify is layered on top and baked into WordPress themes and plugins. You will need to add a little custom CSS to stop WordPress from stomping on the UX. You’ll also add a small localize script to seed Vue with relevant data from WordPress. A little REST applet to serve Vue requests and you get a fast good looking responsive app with far less effort than custom … Continue reading “Vue – JavaScript Library Outside Google/Facebook Control”

Posted on May 15, 2018Categories Plugin Development, WordPressTags , , , 3 Comments on Why WordPress REST Performance Sucks

Why WordPress REST Performance Sucks

WordPress REST performance sucks.   There, I said it.    Not because I dislike WordPress — in fact I think it is the best open source web application we have seen thus far.    It is a great piece of technology.    It even has the potential to be a great web application framework — in fact I use it for the Store Locator Plus managed service, MySLP. However, unless you are in 100% complete control of every component in the … Continue reading “Why WordPress REST Performance Sucks”

Posted on April 8, 2018Categories Plugin Development, Quality Assurance, WordPressTags , , , , , 1 Comment on Cypress.IO Data List Processing — Testing A WordPress Plugin

Cypress.IO Data List Processing — Testing A WordPress Plugin

Testing Store Locator Plus with lots of locations is a chore.  Thankfully Cypress.IO data list processing makes this a lot easier. It turns out that the old-school Selenium IDE scripts that we’ve been using to test Store Locator Plus for years will no longer work.   We already knew Firefox versions beyond 54 broke things — but we kept an old install on hand so while we port 500+ test scripts to a new system.   What finally broke the old-school Firefox … Continue reading “Cypress.IO Data List Processing — Testing A WordPress Plugin”

Posted on January 10, 2018Categories Plugin Development, WordPressTags , , , , , 1 Comment on WordPress Plugin Loader Tricks

WordPress Plugin Loader Tricks

An unusually short article, for me, on basic WordPress plugin loader tricks. Basic setup Name the “loader” php file the same as the plugin directory. Text Domain must match the directory name. Avoid leading * on header lines = less bytes to process by the header processor in WordPress. Ensure it runs from within WordPress Use function_exists( ‘add_action’ ) instead of defined( ‘ABSPATH’).  It is more likely to be specific to WordPress.   It is also a better test as … Continue reading “WordPress Plugin Loader Tricks”

Posted on January 5, 2018Categories Development, Plugin Development, Programming Languages, Technology, WordPressTags , , , , , , , , , , , , , , 1 Comment on Automated Web App Testing With phpStorm

Automated Web App Testing With phpStorm

Selenium IDE was a great way to handle automated web app testing like the Store Locator Plus plugins for WordPress.    Selenium IDE is a simple script recorder and playback too that runs on Firefox.    Or, I should say, it used to run on Firefox.  That broke in 2017 when Firefox 52 came out. After a lot of research I finally found a viable alternative to Selenium IDE that will work with modern browsers.  It is also free, locally … Continue reading “Automated Web App Testing With phpStorm”

Posted on December 29, 2017Categories Plugin Development, Technology, WordPressTags , , , , , 2 Comments on WordPress wp_update_plugins Deep Dive

WordPress wp_update_plugins Deep Dive

When using a private update service for premium WordPress plugins, some version tests get left behind leaving users with a half-updated plugin stack.   When operating a freemium model, like Store Locator Plus, where the free base plugin may be updated and impact how the premium add ons work having all update notifications arrive at once is critical.     There are times when version 3 of the main plugin will ONLY work with version 2 of a premium add … Continue reading “WordPress wp_update_plugins Deep Dive”

Posted on November 16, 2017Categories Plugin Development, WordPressTags , , , , 3 Comments on Using Custom Vagrant Sites For WordPress Development

Using Custom Vagrant Sites For WordPress Development

As with many things in life, I recently learned that I’ve been doing things the hard way when it comes to WordPress development and Vagrant. I got on the Varying-Vagrant-Vagrants bandwagon years ago.   It made it easy to write my Store Locator Plus code and test it on several different WordPress installations.    Along the way I learned how to provision my test boxes and share code between them.   When VVV 2 came out earlier this year I … Continue reading “Using Custom Vagrant Sites For WordPress Development”

Posted on October 11, 2017Categories Plugin Development, WordPressTags , , , , , , 3 Comments on WordPress Hooks and Filters Order Of Precedence

WordPress Hooks and Filters Order Of Precedence

When building plugins and themes I often need to reference the WordPress order of precedence of hooks.   This helps ensure various components are loaded only when needed and at the right time.   The base list I reference is the old Codex Plugin API/Action Reference page.   Its sister resource, the Codex Plugin API/Filter Reference is also useful. The only problem I have with those resources is when I need to determine what will fire on the front-end, backend … Continue reading “WordPress Hooks and Filters Order Of Precedence”