When you need to know how performant your code is, one metric is how many queries to the database it makes. While profiling plugins like Query Monitor gives you a number of total queries and a number of queries created by components (themes, plugins), it’s hard to know a how many queries a specific piece of code makes (for example: a specific function). Without knowing this number of queries, you probably don’t know where to optimize your code to make…