Troubleshooting TTFB for WordPress on Lamp

Change to static hostname paths

changing the path to my MySQL hostname, on wp-config.php, from localhost to

WP Plugin Query Monitor

WP Plugin Laps

WP Plugin Debug Bar

with some add-ons(Slow Actions, Rewrite Rules, etc.)

WP Plugin Webgrind

Chexk Autoloaded options

Debug your PHP code with xDebug