A good article on wp_kses Performance
https://www.tollmanz.com/wp-kses-performance/
Life runs on code
https://www.tollmanz.com/wp-kses-performance/
https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04
Install xdebug sudo apt-get install php5-xdebug Then update config Add following line in /etc/php5/fpm/conf.d/20-xdebug.ini xdebug.profiler_enable = 1 xdebug.profiler_output_dir = /tmp After that please restart php5-fpm sudo service php5-fpm restart Load page you want to optimize It will take time (If its taking too much time …