get_the_id, get_the_permalink, and get_the_title all with one DB call

These functions do not even call the database each time they are run. It just pulls them off the current post object that was returned by the database query that retrieved the posts. There’s nothing to optimise here. get_the_ID() and get_the_title() literally just return $post->ID and $post->post_title. get_permalink() is a little bit more complicated, because … Read more

Optimizing site speed by localizing paths

This is nonsense. Almost all URL getters are a result of get_option(), eg. get_option(‘stylesheet_root’), get_option(‘template’) and so on. These options are loaded very early during the request, they are cached and not fetched again. Since the options are fetched anyway, all you can improve is processing time. Nanoseconds. This isn’t worth the trouble. Just compare … Read more

Suggestion to improve slow WordPress page

There are following ways you can improve it; Use cloudflare and tick all the three options in Minify tab. Do not use Jetpack (If you’re using then do not use “Photon” option if you have cloudflare running on your site.) Use W3 Total Cache. Use Autoptimize. Use Async Autoptimize plugin. Turn on Lazy load if … Read more

WordPress as framework

To run a plugin only when it is needed the plugin author has to identify the pages where the code actually does something. WordPress offers a surprisingly simple way to do that: the global variable $pagenow. It is set before a plugin is called in wp-includes/vars.php. In a spam block plugin I have written recently … Read more

How accurate is P3 Plugin profiler

Checkout this page from GoDaddy: http://support.godaddy.com/help/article/7360/using-the-wordpress-plugin-performance-profiler-p3 It gives a pretty good overview of the P3 Plugin Profiler and should be able to answer your questions. There’s definitely error involved, and it should really just be used as a guideline.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)