{"id":2046,"date":"2009-12-03T21:24:37","date_gmt":"2009-12-03T13:24:37","guid":{"rendered":"http:\/\/www.kcyeap.net\/blogs\/?p=2046"},"modified":"2010-11-19T09:28:07","modified_gmt":"2010-11-19T01:28:07","slug":"your-wordpress-slow","status":"publish","type":"post","link":"https:\/\/www.kcyeap.net\/blogs\/archives\/2046","title":{"rendered":"Your WordPress Slow????"},"content":{"rendered":"<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2079\" title=\"wordpress\" src=\"http:\/\/www.kcyeap.net\/blogs\/wp-content\/uploads\/2009\/12\/wordpress.jpg\" alt=\"wordpress\" width=\"400\" height=\"281\" srcset=\"https:\/\/www.kcyeap.net\/blogs\/wp-content\/uploads\/2009\/12\/wordpress.jpg 400w, https:\/\/www.kcyeap.net\/blogs\/wp-content\/uploads\/2009\/12\/wordpress-300x210.jpg 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p style=\"text-align: justify;\">\n<p style=\"text-align: justify;\">Long time no write technical blog and also write in english. As my English is poor, I prefer write my blog in Chinese. But for the technical blog, it hard to write in Chinese especially the code, term and etc.\u00a0 So this post will be in English, hope you no mind if you see any <a href=\"http:\/\/www.google.com.my\/search?hl=en&amp;client=firefox-a&amp;rls=org.mozilla:en-GB:official&amp;hs=Uf8&amp;ei=g4cXS4WfIpahjAfvrsWHBA&amp;sa=X&amp;oi=spell&amp;resnum=0&amp;ct=result&amp;cd=1&amp;ved=0CAgQBSgA&amp;q=english+grammar&amp;spell=1\"><strong><em> <\/em><\/strong><\/a>grammar\/spelling\u00a0 mistake \ud83d\ude09 .<\/p>\n<p style=\"text-align: justify;\">Lets start! I believe that if you have your own hosting account, you should know WordPress before, <a href=\"http:\/\/wordpress.org\/\">WordPress<\/a> is the\u00a0 Blog Tool or Publishing Platform. It can easily installed, use, customize, and popular among blogger. Althought it so user friendly, but it can easily become slow and slow because some user have active many plugin, customize themes, and etc. So below is some tip you all can look into if your WordPress are slower and slower day by day ( don&#8217;t blame your hosting provider if your site is slow \ud83d\ude42 check wherther is cause by your <a href=\"http:\/\/wordpress.org\/\">WordPress<\/a> first)<\/p>\n<p style=\"text-align: justify;\">Basically, there is three area that you all need to check such as Plugin, Database, and WordPress related.<\/p>\n<p style=\"text-align: justify;\">\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2081\" title=\"wordpress-plugin\" src=\"http:\/\/www.kcyeap.net\/blogs\/wp-content\/uploads\/2009\/12\/wordpress-plugin.jpg\" alt=\"wordpress-plugin\" width=\"275\" height=\"259\" \/><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #0000ff;\"><strong>Plugin<\/strong><\/span><\/p>\n<ul style=\"text-align: justify;\">\n<li><em>Use only necessary plugins<\/em><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">The unnecessary plugins will cause your site slow loading. So, less plugin more speed. Unless you have your own high end dedicated server \ud83d\ude42<\/p>\n<p><!--more--><\/p>\n<ul style=\"text-align: justify;\">\n<li><em>Say No to widgets and use pure code in your sidebar.<\/em><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">There is code examples for showing recent posts, categories, tags, and etc on your sidebar without use of any widgets. It because the Widget will make the loading speed drop<\/p>\n<ul style=\"text-align: justify;\">\n<li><em>use WP-Supercache plug-in.<\/em><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Probably you\u2019re already using this plug-in, but for the ones who don\u2019t you should know that it will greatly speed up your blog since it saves and stores static html pages of your blog and serves them to the browser without any heavy impact on your host.<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2083\" title=\"mysql_database_host\" src=\"http:\/\/www.kcyeap.net\/blogs\/wp-content\/uploads\/2009\/12\/mysql_database_host.png\" alt=\"mysql_database_host\" width=\"300\" height=\"304\" srcset=\"https:\/\/www.kcyeap.net\/blogs\/wp-content\/uploads\/2009\/12\/mysql_database_host.png 300w, https:\/\/www.kcyeap.net\/blogs\/wp-content\/uploads\/2009\/12\/mysql_database_host-296x300.png 296w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p style=\"text-align: justify;\">\n<p style=\"text-align: justify;\"><span style=\"color: #0000ff;\"><strong>Database<\/strong><\/span><\/p>\n<ul style=\"text-align: justify;\">\n<li> <em>Remove extra tables in WordPress Database.<\/em><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Login to phpMyadmin, open your blog database and you\u2019ll see the table structure of your wordpress database. The default DB tables for wordpress are these ones:<\/p>\n<blockquote>\n<p style=\"text-align: justify;\">* wp_comments<br \/>\n* wp_links<br \/>\n* wp_options<br \/>\n* wp_postmeta<br \/>\n* wp_posts<br \/>\n* wp_terms<br \/>\n* wp_term_relationships<br \/>\n* wp_term_taxonomy<br \/>\n* wp_usermeta<br \/>\n* wp_users<\/p><\/blockquote>\n<p style=\"text-align: justify;\">If you have some extra tables which belong to your plugin that you disable, delete them.<\/p>\n<ul style=\"text-align: justify;\">\n<li><em>Clean up your WordPress Database.<\/em><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Use the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/clean-options\/\">Clean Options wordpress plugin<\/a> to clean up your wordpress database, it will erase unnecessary, redounded, orphaned records. Once again, remove it when you have clean your database \ud83d\ude42 If you plugin is not functionnal after clean your database, you just need to reactive you wordprss plugin again<\/p>\n<ul style=\"text-align: justify;\">\n<li><em>Repair and optimize your WordPress Database.<\/em><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Go to phpMyadmin again, select your database check all the tables, and in the dropdown menu select repair. Then select the database again, check all the tables, and in the dropdown menu select optimize.<\/p>\n<p style=\"text-align: justify;\">\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2084\" title=\"wordpress-logo-shine\" src=\"http:\/\/www.kcyeap.net\/blogs\/wp-content\/uploads\/2009\/12\/wordpress-logo-shine.jpg\" alt=\"wordpress-logo-shine\" width=\"262\" height=\"272\" \/><\/p>\n<p style=\"text-align: justify;\">\n<p style=\"text-align: justify;\"><strong><span style=\"color: #0000ff;\">WordPress Related<\/span><br \/>\n<\/strong><\/p>\n<ul style=\"text-align: justify;\">\n<li><em>Change php code with html where applicable.<\/em><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">The point is that in the header (sometimes footer and sidebars) of your wordpress theme you have php strings that every time when your blog loads they call your blog name, location of favicon.ico, stylesheet, ping file, feeds, charset etc.<\/p>\n<p style=\"text-align: justify;\">All these php requests are slowing down your blog so why not changing them to static html code.<\/p>\n<p style=\"text-align: justify;\">For example the following code:<\/p>\n<blockquote><p><span style=\"color: #000000;\">&lt;link rel=\u201dstylesheet\u201d type=\u201dtext\/css\u201d media=\u201dscreen\u201d href=\u201d&lt;?php bloginfo(\u2019stylesheet_url\u2019); ?&gt;\u201d \/&gt;<\/span><\/p><\/blockquote>\n<p style=\"text-align: justify;\">Can be changed to:<\/p>\n<blockquote><p>&lt;link rel=\u201dstylesheet\u201d type=\u201dtext\/css\u201d media=\u201dscreen\u201d href=\u201dhttp:\/\/domain.com\/wp-content\/themes\/your-theme- folder-here\/style.css\u201d \/&gt;<\/p><\/blockquote>\n<p style=\"text-align: justify;\">You can also:<\/p>\n<p style=\"text-align: justify;\">* make your pingback URL static,<br \/>\n* make your feed URL\u2019s static,<br \/>\n* you can remove the blog\u2019s WordPress version,<br \/>\n* make your blog\u2019s name and tagline\/description static.<\/p>\n<p style=\"text-align: justify;\">The easiest way to do this is to compare the actual header code of your blog with the outcome header code (right click, view source code in your browser). Look at the original php code and see what the results are in the outcome source code of your blog. By doing this you will realize which php lines you can change to static html lines.<\/p>\n<ul style=\"text-align: justify;\">\n<li><em>Optimize Images.<\/em><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Large image size is the thing that slows down many WordPress websites. Instead, take advantage of WordPress\u2019 great thumbnail features and opt not to use the full-sized image. You can also optimize images before uploading them to WordPress.<\/p>\n<p style=\"text-align: justify;\">\n<p style=\"text-align: justify;\"><span style=\"color: #ff0000;\">Note: <\/span><em>Please backup everything before you try the step as above. Backup everything first, you never know what will happen. <\/em><\/p>\n<p><a href=\"http:\/\/wpwebhost.com\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.kcyeap.net\/blogs\/wp-content\/uploads\/2009\/12\/wpwebhostbanner.gif\" alt=\"wpwebhostbanner\" title=\"wpwebhostbanner\" width=\"468\" height=\"60\" class=\"alignnone size-full wp-image-2087\" srcset=\"https:\/\/www.kcyeap.net\/blogs\/wp-content\/uploads\/2009\/12\/wpwebhostbanner.gif 468w, https:\/\/www.kcyeap.net\/blogs\/wp-content\/uploads\/2009\/12\/wpwebhostbanner-300x38.gif 300w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/a><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Long time no write technical blog and also write in eng &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.kcyeap.net\/blogs\/archives\/2046\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cYour WordPress Slow????\u201d<\/span><\/a><\/p>\n<p><!-- AddThis Advanced Settings generic via filter on wp_trim_excerpt --><!-- AddThis Share Buttons generic via filter on wp_trim_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[81],"class_list":["post-2046","post","type-post","status-publish","format-standard","hentry","category-5","tag-wordpress-slow"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.kcyeap.net\/blogs\/wp-json\/wp\/v2\/posts\/2046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kcyeap.net\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kcyeap.net\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kcyeap.net\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kcyeap.net\/blogs\/wp-json\/wp\/v2\/comments?post=2046"}],"version-history":[{"count":41,"href":"https:\/\/www.kcyeap.net\/blogs\/wp-json\/wp\/v2\/posts\/2046\/revisions"}],"predecessor-version":[{"id":4019,"href":"https:\/\/www.kcyeap.net\/blogs\/wp-json\/wp\/v2\/posts\/2046\/revisions\/4019"}],"wp:attachment":[{"href":"https:\/\/www.kcyeap.net\/blogs\/wp-json\/wp\/v2\/media?parent=2046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kcyeap.net\/blogs\/wp-json\/wp\/v2\/categories?post=2046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kcyeap.net\/blogs\/wp-json\/wp\/v2\/tags?post=2046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}