Index: /sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/bin/quick-stats.php
===================================================================
--- /sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/bin/quick-stats.php (revision 6261)
+++ /sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/bin/quick-stats.php (revision 6261)
@@ -0,0 +1,69 @@
+get_results( $wpdb->prepare( "SELECT meta_value AS k, COUNT( DISTINCT post_id ) AS c FROM $wpdb->posts LEFT JOIN $wpdb->postmeta ON {$wpdb->postmeta}.post_id = {$wpdb->posts}.ID WHERE $pfx_where AND meta_key = %s GROUP BY meta_value ORDER BY c DESC", 'tested' ), ARRAY_N );
+
+ return $stats;
+}
+
+$where = $wpdb->prepare( "post_status = %s", 'publish' );
+
+if ( !empty( $opts['age'] ) && strtotime( $opts['age'] ) > 0 )
+ $where .= $wpdb->prepare( " AND post_modified >= %s", strftime( '%Y-%m-%d', strtotime( $opts['age'] ) ) );
+
+//TODO: add some more reports, and a CLI argument for choosing them
+display_top_table( tested_to_summary( $where ) );