• Good work but looks like you have reinvented the wheel, which does happen very often in the scripts area.
    Estimate compression for all tables and indexes with both Row and Page