Giter Site home page Giter Site logo

edd-metrics's People

Contributors

boxystudio avatar clifgriffin avatar danlester avatar ericnicolaas avatar growdev avatar leewillis77 avatar netzberufler avatar scottopolis avatar zackkatz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

edd-metrics's Issues

Recurring Next One Year

Hello,

I wonder if this plugin development is still active, but I really hope so, because it is awesome! Would it be easy to add "Recurring Next 1 Year" next to the already existing "Recurring Next 30 Days"? It's basically the only main statistics missing for me. It would be awesome to have it.

Cheers and all the best for 2018 :)

Revenue Detail: Daily, Monthly, Yearly

Hi,

I would like to suggest a little feature. It would be great to have the choice between Daily, Monthly and Yearly (at least that) in the Revenue Detail. It's the only basic feature missing to this already great plugin. I can probably help coding it a bit but would you have a few pointers to make this dev faster and cleaner? Maybe there is very few to add to make this work, so I thought I would ask first. Thank you :)

Uncaught TypeError: Cannot read property 'count' of null

When loading the Metrics dashboard, I'm seeing this JS error:

Uncaught TypeError: Cannot read property 'count' of null
https://edd.com/basic/wp-content/plugins/edd-metrics/assets/js/admin.js?ver=1.0 line 86

I think it's because the refunds and renewals graphs have no data.

Obey currency settings

The "Recent Activity" box currency seems to show US Dollars ($) when I have EUR in EDD Settings. The EDD widget on the Dashboard, also shows EUR, correctly.

See attached screenshot.

caa944cd4fd1a468f909b2b07093b8a6

Upgrades

Additionally to the renewals it would be very helpful to get statistics for license upgrades (EDD SL Addon) as well. ๐Ÿ‘

Duplicate currency symbol

Great job with EDD Metrics!

The currency symbol is duplicated on the dashboard page. See attached screenshot.

caa944cd4fd1a468f909b2b07093b8a6

Currency disposal

My EDD install uses โ‚ฌ as currency. The symbol should be after the amount not before.

You should grab the EDD settings to set yours

E.g: 255,50 โ‚ฌ

Parse error on plugin activation

Parse error: syntax error, unexpected โ€˜[โ€˜ in wp-content/plugins/edd-metrics/includes/class-edd-metrics-functions.php on line 302

Filter out free downloads

I run a freemium WordPress theme shop, which means we sell a lot of themes for $0. It'd be good if we could exclude these sales somehow from the metrics, as I think it might be overwhelming the plugin/WordPress. We can't get it to load Refunds, Discounts or Renewal, for example.

Recurring revenue calculation is very very wrong

Hi Scott,

I know you yanked the recurring revenue estimation from EDD's code, but it's very wrong.

It's pulling in the recurring amount of subscriptions whose expiration date is in the selected date range. However, by its nature, this means it's only including subscription that have expired.

To do this properly, I think it will need to pull all payments that happened in the date range that are associated with subscriptions, excluding first payments so that it's truly only including 'recurring' revenue.

This would need to be tolerant of trials as a trial creates a $0.00 initial payment and then the completion of the trial creates another payment. So it would need to exclude the first payment after the $0.00 trial payment as well.

I know EDD's data is a mess and I may create a PR at some point, but wanted to document the issue here in case someone else is eager for a challenge.

Clif

Unexpected end of JSON input

Just installed this on my established EDD site. See this error on all Metrics pages:

google chrome - github com - - screen shot 6 sep 2016 5 09 24 pm

On the main page the Refunds/Discounts/Renewals/New Subscriptions panels never load. On the revenue page 6/12 months, today, this month renewal rate and both the earnings graphs don't load (revenue graph seems ok).

Add a "Refresh" button to bust the cache

I updated the plugin to include the #17 fix and I wanted to refresh the results, but couldn't. It'd be nice to have a "Refresh" button, or a manual addition of a ?cache URL parameter to force refreshing the data.

Just a FYI

@scottopolis (This](https://github.com/scottopolis/edd-metrics/blob/master/edd-metrics.php#L230) isn't 100 percent true as you can replace 'EDD_Metrics_activation' function with an array with the first value set to the class instance and the second the class method to call.

Read my post on WordPress hook system https://www.sitepoint.com/understanding-namespaces-wordpress-hook-system/

Btw nice work with this plugin. Love the graph and i just might copy the design of how stats are display in my next project ๐Ÿ˜„

Revenue details: Earnings by download option/variant

Something I've been missing very hardly are statistics for single download options/variants:

e.g. selling a plugin with 3 options, right now all extension showing earnings by download but I want to see exactly which of the options produce how much income in detail.

This would be really amazing! ๐ŸŽ…

Percent change division by zero warnings

Not sure what caused this but I noticed some division by zero PHP warnings in my server logs on my production site from yesterday (running v0.5.0). Example:

[Mon Oct 10 16:41:20.579279 2016] [:error] [pid 7810] [client 209.136.228.130:20256] PHP Warning: Division by zero in .../wp-content/plugins/edd-metrics/includes/class-edd-metrics-functions.php on line 392, referer: .../wp-admin/edit.php?post_type=download&page=edd_metrics

Somehow the $old_val passed in here was zero?

public static function percent_change($new_val, $old_val) {
if( empty( $old_val ) )
return 0;
// Commas break this equation
$new_val = str_replace( ',', '', $new_val );
$old_val = str_replace( ',', '', $old_val );
return ( ( $new_val - $old_val ) / $old_val ) * 100;
}

Sorry I can't narrow it down more than that right now.

Unpaid Commissions Issue

Hi Scott,

There seems to be an issue with the "Unpaid commissions" reporting. For some reason it's reporting "undefinied12.00". I am using GBP as my preferred currency.

It's showing correctly as 1 unpaid commission, but the amount value has "undefined" prefixed for the total value.

It would also be useful to have taxes reported within the metrics (ideally by monthly, yearly, etc.).

Great plugin none the less!

Thanks,
David

Revenue compare logic for this month vs. last month

When switching the date range to "this month" the comparison shows 25% over previous 18 days (it's the 18th of the month).

But in my opinion the numbers should be compared to the complete previous month and not the last 18 days. Cause that's the reason why I select "this month" in order to get the current data AND compare it to the last month.

Beta test feedback

Hi Scott, just did a quick beta test on a slightly old staging site I've got (last sale in db was mid-June, first sale was 2012-ish). I ran into a few issues with data not displaying.

Here I chose "last year" and it's returning no sales info. If I choose last six months or a shorter time span it seems to show correctly.

selection_039

I could never get the earnings by download graph to load, no matter what time range I selected.

selection_038

When selecting All Time on the Revenue Detail page I get a JS error and the graph never loads. Here it is:

selection_037

I've worked with chartjs a bit before and I believe this is caused when any data set is missing a label. I think each data set needs a label, if I am recalling correctly.

The plugin looks great. I'm particularly interested in the breakdown of earnings by download over time. A big feature request for me would be the ability to see earnings over time for groups of downloads.

For instance, I sell plugins and themes. I'd love to be able to see earnings for all themes or all plugins. Also, I sell plugins as addons for two different base plugins. So it'd be great to be able to just arbitrarily group downloads and say, "how much did this group earn in total?".

Other metrics that would be interesting: number of downloads per cart, lots more specifically on license renewals, a list of high-value customers. Just throwing these out there, I'm sure you've got plenty of your own ideas. ๐Ÿ‘

Unexpected end of JSON input

I don't have any refunds or discounted sales so far, and the boxes load forever:

726e72132ee258c717ea07dd0eaec67d

Inspector's console shows:

VM314:1 Uncaught SyntaxError: Unexpected end of JSON input

I traced this in the minified .js file here:

b.batch2response=function(f){var h=JSON.parse(f);

I don't know what the intended behaviour should be, but never loading issue doesn't seem to be the correct approach. Maybe a "No data yet" message or something similar.

Incorrect parameter passed to get_earnings()

In several places, the get_earnings() method of EDD_Payment_Stats is called like this:

$earnings[] = $EDD_Stats->get_earnings( 0, $dt->format( "jS F, Y" ), false, array( 'publish', 'revoked' ) );

This method does not accept a status, so array( 'publish', 'revoked' ) is incorrect.

Method definition:

public function get_earnings( $download_id = 0, $start_date = false, $end_date = false, $include_taxes = true )

Warnings due to missing arguments

WordPress: 4.6.1
EDD: 2.6.8
EDD Metrics: 0.4.0

Loading the metrics page by going to Downalods > Metrics causes the following warnings:

[02-Oct-2016 17:38:09 UTC] PHP Warning:  Missing argument 2 for EDD_Metrics_Functions::metrics_batch_1() in /Users/daniel/code/growdev/edd-metrics/includes/class-edd-metrics-functions.php on line 84
[02-Oct-2016 17:38:09 UTC] PHP Stack trace:
[02-Oct-2016 17:38:09 UTC] PHP   1. {main}() /Users/daniel/sites/shopplugins/wp-admin/admin-ajax.php:0
[02-Oct-2016 17:38:09 UTC] PHP   2. do_action() /Users/daniel/sites/shopplugins/wp-admin/admin-ajax.php:91
[02-Oct-2016 17:38:09 UTC] PHP   3. call_user_func_array:{/Users/daniel/sites/shopplugins/wp-includes/plugin.php:524}() /Users/daniel/sites/shopplugins/wp-includes/plugin.php:524
[02-Oct-2016 17:38:09 UTC] PHP   4. EDD_Metrics_Functions->metrics_batch_1() /Users/daniel/sites/shopplugins/wp-includes/plugin.php:524
[02-Oct-2016 17:38:11 UTC] PHP Warning:  Missing argument 2 for EDD_Metrics_Functions::metrics_batch_2() in /Users/daniel/code/growdev/edd-metrics/includes/class-edd-metrics-functions.php on line 125
[02-Oct-2016 17:38:11 UTC] PHP Stack trace:
[02-Oct-2016 17:38:11 UTC] PHP   1. {main}() /Users/daniel/sites/shopplugins/wp-admin/admin-ajax.php:0
[02-Oct-2016 17:38:11 UTC] PHP   2. do_action() /Users/daniel/sites/shopplugins/wp-admin/admin-ajax.php:91
[02-Oct-2016 17:38:11 UTC] PHP   3. call_user_func_array:{/Users/daniel/sites/shopplugins/wp-includes/plugin.php:524}() /Users/daniel/sites/shopplugins/wp-includes/plugin.php:524
[02-Oct-2016 17:38:11 UTC] PHP   4. EDD_Metrics_Functions->metrics_batch_2() /Users/daniel/sites/shopplugins/wp-includes/plugin.php:524

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.