Complex sentence: This script runs on pages in article space that are tagged with or some version of it and gives the orphan status of the page by checking the number of incoming links.
Split into simpler sentences: This script runs on pages in article space that are tagged with or some version of it. It give the orphan status of the page by checking the number of incoming links.