How the word count estimate for your site works
The word count page on wpptranslate.com estimates how many words of text your site has, so you can see which plan fits before you install anything. It reads your home page, your robots.txt and your sitemap, then about 20 pages spread over the sitemap, and works out the rest from those. That makes it a rough figure, shown as a range. Once you install the plugin, it measures your whole site, and that measurement is what counts toward your plan.
What the estimate reads
- Your home page and
robots.txt. Ifrobots.txtasks robots to stay away, the estimate stops there (see why a site can’t be read). - Your sitemap. The sitemaps named in
robots.txt, or the usual WordPress addresses such as/sitemap.xml,/wp-sitemap.xmland/sitemap_index.xml. A sitemap index is followed one level deep. On a very large site not every sitemap file is opened; the files that are not read are counted with the average size of the ones that are. - About 20 pages. They are spread over the parts of your sitemap by size: pages, posts, products and other addresses. A part with many addresses gets more of the 20 pages than a small one.
It reads only public pages, the way a search engine does, and changes nothing on your site. The robot names itself WPProviderTranslate-Estimator, with a link to the word count page at https://wpptranslate.com/word-count/. The whole estimate takes at most about 25 seconds.
A site without a sitemap. The estimate then reads up to 20 pages linked from the home page. It cannot know how many pages there are beyond those, so the result says “at least” this many words instead of a range.
What counts as a word
Each page is split into texts the same way the plugin does it once it runs on your site: headings, paragraphs, buttons, menu items, image descriptions and page titles. Scripts, styles and text marked as not to be translated are left out. Text that only appears through scripts on the page is not read, so on some sites the real count is a little higher.
Texts on many pages count once
Your menu, footer, sidebar and other text that appears on more than one of the pages read count once, not once per page. The same goes for your plan: a text counts once, however many pages it is on and however many languages you translate into.
What is left on each page, the text that is its own, is averaged per kind of page (pages, posts, products, other) and multiplied by the number of pages of that kind in your sitemap. Shared text plus those totals is the estimate.
Why the result is a range
Pages are not all the same length. When the pages read differ a lot, the pages that were not read could be shorter or longer than average too, so the range is wider. The range is twice the standard error of the average, and never narrower than 20% either side of the estimate. When every page of a kind was read, nothing is guessed for that kind.
Translated pages are left out
If your site already has translations, its sitemap lists every language. Only your site’s own language is your site’s size, so pages in other languages are left out: the language versions your home page announces (such as /en/ or /de/) are skipped before the pages are chosen, and a page whose language differs from the home page is not counted. The result then says that translated pages were left out.
Why a site can’t be read
Sometimes there is no estimate. The page then says why:
- The site can’t be reached. The address does not exist, or nothing answers there.
- The site does not let us read it. Its
robots.txtasks every robot, orWPProviderTranslate-Estimatorby name, to stay out of the whole site. A rule that allowsWPProviderTranslate-Estimatorby name goes before a rule for every robot, so you can let it in while other robots stay out. Or the home page does not answer with a normal web page: an error, a login or password prompt, or a maintenance page that answers with an error. Or fewer than 8 of the pages chosen could be read. - Too little text. The pages read hold fewer than 50 words in total. This usually means a bot check or a “checking your browser” page answered instead of your site.
In all these cases you can still install the plugin and start the free trial: the plugin measures your site from the inside, where none of this is in the way.
After you install the plugin
The estimate is only there to help you choose a plan. It is never used for what you pay. After you connect your site, the plugin opens every public page of your site in the background and finds all of its text, including what the estimate could not see. While it does so, WP Provider Translate → Settings shows Still finding pages: … of … checked., and then All … pages of your site found. More about this first run: how translation runs.
What counts toward your plan from then on is the text your site really has, each text once: see what counts toward your plan.
Good to know
- The same answer for a day. An estimate is kept for 24 hours: asking again for the same site within a day gives the same result without reading the site again. A site that could not be read is tried again after 10 minutes.
- Other addresses of the same site. An address that redirects to your site, such as the one without
www, gives the estimate of the site it leads to. - Only your public pages. Pages behind a login, such as a customer account or a members area, are not read by the estimate. Text that is only shown to logged-in users is not translated automatically either.
Troubleshooting
- The estimate is much lower than I expected. Check that your sitemap lists all your pages, posts and products. Without a sitemap the result is a minimum. Text that appears only through scripts is not read.
- The estimate is much higher than I expected. Pages in other languages that neither your home page announces nor mark their language, or many near-empty addresses in the sitemap, can push it up. The plugin’s own measurement after install is what counts.
- “Too little text”, but my site has plenty. A security plugin or your host’s bot protection probably showed a check page instead of your site. You can allow
WPProviderTranslate-Estimator, or simply install the plugin, which does not need it. - I changed my
robots.txtand still get the same answer. A site that could not be read is tried again after 10 minutes. Try again after that.