Differences in enterprise WordPress development

Differences in enterprise WordPress development


What are the differences in enterprise WordPress development that can help you get a job at one of those companies? If you’re looking at working at an enterprise WordPress agency like XWP where I work I want to talk to you about some of the things that are different in development that you might work on to help you get a job at one of these companies. These are object oriented code, following coding standards very closely, and often PHPUnit tests. It’s pretty rare to see an enterprise WordPress plugin that’s not written in an object-oriented format, for example if you’re working on a large media site like enterprise WordPress agencies do let’s say it’s dailytelegraph.com.au like we worked on at XWP with our partners the plugins that you’ll see in that will all be object-oriented there’ll be some exceptions sometimes in plugins like in the main plugin bootstrap file sometimes you’ll see some procedural code but it’s much more common to see plugins that are completely object-oriented with a few procedural exceptions also it is really important to follow coding standards closely this especially applies when working with VIP on their projects WordPress VIP, but typically we’ll have really strict coding standards no matter what the project we’re working on but the good news is this is all automated so if you’re running automated checks on a pre-commit hook in Git, you can just run this and see that everything is running fine wp-dev-lib that XWP has is a really good way to do this but the important thing is that you’re following some kind of standards that are in a file like a phpcs.xml file and you could take a look at an example file like that in wp-dev-lib also you can just look at files that are in the open-source repos of VIP agencies like at XWP you can look at some of the phpcs.xml files that we use and that’ll give you a good sense of what developers are going to be looking for like if they’re code reviewing your code and you’re trying to work for a company like that I would make sure your code file is something similar to their phpcs.xml files that’s a pretty straightforward thing to do the idea isn’t that you get all of the coding standards right that the company uses but it’s that you can be consistent so if you have a phpcs.xml file in your plugin it’s important that you follow it throughout all of your plugin it’s not that you use the exact same one every agency uses that you’re trying to work for. Another thing that we’ll often use and our plugins is test-driven development or a PHPUnit tests pretty much all the plugins that I’ve worked on at XWP have had a full test suite sometimes that’s not 100% code coverage but it’s pretty close, so test-driven development is something that’s good to work on now I think some agencies won’t write all of their plugins with PHPUnit tests I need to get better at writing like JavaScript tests but it’s pretty common to have PHPUnit tests of all the plug-in methods so that might be something to work on if you haven’t done that too much writing your code with OOP, phpcs checks and PHPUnit tests will get you a lot of the way towards what you need to do as an enterprise developer, of course some of the best practices are just universal like writing DRY code and structuring your plugins well but these are some of the key differences that you’ll see between an enterprise WordPress plugin like you might see on a major media site versus a typical plugin that you might see on the WordPress.org repository the idea here is to help you get a sense of what things that you might do to prepare yourself if you want to work at a company like XWP or an enterprise WordPress agency so I hope this has helped and let me know if you have any questions here and I wish you the best if you have some code that you’d like me to look at to see if it would apply well to enterprise WordPress agencies I’m happy to do that I was helping my friend with that earlier so if there’s a PR that you’d like me to look at I’m happy to do that of course the idea isn’t to charge money but I want to help you if your goal is to work at an enterprise WordPress agency it’s a great career path so I like to help you if you’re interested with that and you made it this far already thanks and I hope you’re doing great

Leave a Reply

Your email address will not be published. Required fields are marked *