Update number of total sales as well as earnings
Change order of `$args` to prevent file not found error
Remove unused globals `$edd_logs` and `$wpdb` in `recount_store_earnings()`
Added PHPDoc to the entire plugin
Adjusted formatting to WordPress code style