query-monitor icon indicating copy to clipboard operation
query-monitor copied to clipboard

Better code trace for code snippets plugin

Open wpsumo opened this issue 4 years ago • 0 comments

@johnbillion Would be nice if we in the frontend and in wp-admin could trace code added via a plugin like this: https://wordpress.org/plugins/code-snippets/

So we can evaluate the performance and improve.

Right now you have to: Find snippets database query by looking under the ‘Queries’ section and scrolling down until you see a query that starts like:

SELECT id, code, scope
FROM wp_snippets

But you don't see what is loaded or done example:

SHOW TABLES LIKE 'wp_snippets' | do_action('plugins_loaded') | Core | 1 | 0.0003
SELECT id, code, scopeFROM wp_snippetsWHERE scope IN ('global', 'single-use', 'front-end')AND active=1ORDER BY priority ASC, id ASC | do_action('plugins_loaded') | Core | 42 | 0.0001

Speaking about that what about a search function also? Would be useful.

wpsumo avatar Jan 23 '21 12:01 wpsumo