public function render_bulk_optimization_page()
 {
     $stats = Tiny_Image::get_optimization_statistics($this->settings);
     $estimated_costs = Tiny_Compress::estimate_cost($stats['available-unoptimised-sizes'], $this->settings->get_compression_count());
     $admin_colors = self::retrieve_admin_colors();
     $active_tinify_sizes = $this->settings->get_active_tinify_sizes();
     $auto_start_bulk = isset($_REQUEST['ids']);
     include dirname(__FILE__) . '/views/bulk-optimization.php';
 }
 public function test_estimate_cost_cheap_and_normal_and_free()
 {
     $this->assertEquals(500 * 0 + 9500 * 0.008999999999999999 + 40000 * 0.002, Tiny_Compress::estimate_cost(50000, 0));
 }