Friday, December 22, 2017

C# SEO Tools for Google PageSpeed

PageSpeed is very important for ranking of your website on Google as also as it will get better experience for your customers when surfing your website. So Google provides its PageSpeed Insights tool which will give advices for optimizing your website. When you optimize your website meeting Google's requirements, you website will have higher score and may be your ranking will be higher. The acceptable score should be from 80 points (80 / 100).

There are many things which you need to do for meeting Google's requirements. However 2 things which impacts to your score most are image optimization and minifying JavaScript + CSS.

In this article, I'll introduce my SEO Tools (written by C#) for solving above matters. You can checkout the source code here: https://github.com/vnheros/c-seotools

The tool uses the following tools:
Below is the guideline for using this SEO Tools.

1. File XML configuration
Below is an example:
BackupSuffix is for copying the original .CSS or . JS file. For example: E:\test\big.js after optimizing ==> E:\test\big_Copy.js (containing original source code) and E:\test\big.js (minified code).
BackupOverwrite = 0 means every time running this tool, it will check and create a backup file with different suffix starting from _Copy1 to _Copy999; = 1 means all times running this tool, it only creates a backup file with suffix _Copy and overwrites it if existing.
DefaultOutPath is for out put folder (containing optimized images) in terms of you don't specify output folder in command.

2. Optimize only files listed in input file
You can use the following command:
SEOTools.exe -i input_file
For example: input_file is E:\test\files.txt. Output to a folder (e.g. E:\test\output), let use:
SEOTools.exe -i input_file -s subfolder -o output_folder
Subfolder is the folder containing image files for compressing, it is used for creating subfolders in backup folder.

3. Optimize all files in input folder (recursively)
You can use the command:
SEOTools.exe -i input_folder -t I -m FO
By default the tool will use Caesium, you can change to use ImageMagick by option -t I. As my experience Caesium gives smaller file size vs. ImageMagick, however ImageMagick runs faster than Caesium. Both also meets Google PageSpeed Insights.
With this tool, you can run after uploading images to your website or modifying CSS file / JavaScript file. Any comment is welcome.
Merry Christmas and Happy New Year!

5 comments:

  1. It was awesome to read this article. I appreciate the person who shared this article having good knowledge about the topic. The blog shares lots of good information regarding Google’s PageSpeed Insight with a complete example. Keep it!

    ReplyDelete
  2. 100% free complete SEO solutions suit, check out search engine optimization tools which often used by SEO expert on day to day online operations. See More: https://freeseosolutions.com

    ReplyDelete

  3. This is really helpful and informative, as this gave me more insight to create more ideas and solutions for my plan.keep update with your blog post.

    Website Design Company in Bangalore
    Website Development Company in Bangalore

    ReplyDelete
  4. Hi there. I discovered your web site by way of Google whilst looking for a similar matter, your website got here up. It appears to be good. I have bookmarked it in my google bookmarks to come back then.
    hire reactjs developers

    ReplyDelete
  5. Good job solving that customer need. Your ability to confidently handle problems has always been a valuable contribution to our need. You displayed great communication and problem-solving skills. I’m really loving your Sell Shop.
    I have a very small blog. There I try to write something similar. Please visit On Page SEO Checker & enjoy Free Make Money. Keep up the good work!"

    Our Product List :
    1. SEO Tools
    2. RSS Feed Commander
    3. Link Spinner.
    4. Bulk URL Checker
    5. Keyword List Multiplier
    6. How Many Diapers Does a Newborn Use a Day
    7. Vital Proteins Chocolate Collagen Powder Supplement
    8. What Are Backlinks? How To Get Free Backlinks
    9. Backlinks Sites List Of 2022 | Top 2000+ Instant Approval
    10. How to make money blogging for beginners in 2022

    ReplyDelete

Subscribe to RSS Feed Follow me on Twitter!