Ajax not working to insert, query and result data

I would suggest googling “wordpress ajax tutorials”. Here is one that was beneficial to me. https://premium.wpmudev.org/blog/using-ajax-with-wordpress/ The first problem I see is you have not stated what your ‘action’ variable is. The JavaScript AJAX call specifies what function is targeted in the ‘action’ attribute. In WP, this is the hook executes your server-side AJAX code. … Read more

Mysql Queries per Visit – Crazy High

It goes against the grain here to recommend plugins but that’s what you need here. To view in the browser; https://wordpress.org/plugins/query-monitor/ To view in WP-CLI; https://runcommand.io/wp/query-debug/ Both of these will list the queries and how long each one takes. That should give you enough information to make informed decisions about what to do in your … Read more