Giter Club home page Giter Club logo

expertstatsplugin's People

Contributors

11digitlabs avatar ahanzek avatar defunctl avatar dimadin avatar jin0x avatar jonathanbossenger avatar kakoma avatar panossynetos avatar raleighleslie avatar robin-scott avatar spyrosvl avatar stracker-phil avatar vimes1984 avatar wpbullet 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

Watchers

 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

expertstatsplugin's Issues

PHP Notice: Undefined index: auth_token in /public_html/wp-content/plugins/expertstatsplugin-master/classes/api_calls.php on line 87

We have been using this plugin for Codeable in past. It seems like its not working any more. While debugging I figured out that "auth_token" is missing in the initial login request. Is there any change on the API end? Or am I missing something?

Getting following error in the debug log;

PHP Notice: Undefined index: auth_token in /public_html/wp-content/plugins/expertstatsplugin-master/classes/api_calls.php on line 87

Can we have the expert-to-expert transactions integrated?

Pretty pretty please! :)

I assume it is a challenge to count in the ones a user would send to a colleague,
but it would be great if the stats would update the $ amount with the transactions received from other colleagues.

In essence, that's the more important angle - if we were to measure one VS the other :)

Pretty please! :D

bug

Great job from screenshots

From live i got error 500

[23-Feb-2017 21:22:59 UTC] PHP Notice: Undefined index: revenue in C:\wamp\www\wptest\wp-content\plugins\expertstatsplugin-master\functions\admin-page.php on line 90 [23-Feb-2017 21:22:59 UTC] PHP Notice: Undefined index: total_cost in C:\wamp\www\wptest\wp-content\plugins\expertstatsplugin-master\functions\admin-page.php on line 91 [23-Feb-2017 21:22:59 UTC] PHP Notice: Undefined index: totals in C:\wamp\www\wptest\wp-content\plugins\expertstatsplugin-master\functions\admin-page.php on line 184 [23-Feb-2017 21:22:59 UTC] PHP Notice: Undefined index: clients in C:\wamp\www\wptest\wp-content\plugins\expertstatsplugin-master\functions\admin-page.php on line 428 [23-Feb-2017 21:22:59 UTC] PHP Warning: Invalid argument supplied for foreach() in C:\wamp\www\wptest\wp-content\plugins\expertstatsplugin-master\functions\admin-page.php on line 428 [23-Feb-2017 21:23:48 UTC] WordPress database error Column 'client_id' cannot be null for query REPLACE INTO wp_codeable_clients (client_id, full_name, role, last_sign_in_at, pro, timezone_offset, tiny, small, medium, large) VALUES (NULL, NULL, NULL, '1970-01-01 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL) made by do_action('codeable-stats_page_codeable_settings'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, codeable_settings_callback, wpcable_transcactions->store_transactions [23-Feb-2017 21:23:48 UTC] PHP Notice: Undefined offset: 2 in C:\wamp\www\wptest\wp-content\plugins\expertstatsplugin-master\classes\transactions.php on line 134 [23-Feb-2017 21:23:48 UTC] PHP Notice: Undefined offset: 2 in C:\wamp\www\wptest\wp-content\plugins\expertstatsplugin-master\classes\transactions.php on line 135 [23-Feb-2017 21:23:48 UTC] PHP Notice: Undefined offset: 1 in C:\wamp\www\wptest\wp-content\plugins\expertstatsplugin-master\classes\transactions.php on line 138 [23-Feb-2017 21:23:48 UTC] PHP Notice: Undefined offset: 1 in C:\wamp\www\wptest\wp-content\plugins\expertstatsplugin-master\classes\transactions.php on line 139 [23-Feb-2017 21:23:48 UTC] WordPress database error Column 'task_id' cannot be null for query INSERT INTO wp_codeable_amounts (task_id, client_id, credit_revenue_id, credit_revenue_amount, credit_fee_id, credit_fee_amount, credit_user_id, credit_user_amount, debit_cost_id, debit_cost_amount, debit_user_id, debit_user_amount) VALUES (NULL, NULL, '255629', '12019.0', '255628', '50.0', NULL, NULL, '255630', '12069.0', NULL, NULL) made by do_action('codeable-stats_page_codeable_settings'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, codeable_settings_callback, wpcable_transcactions->store_transactions [23-Feb-2017 21:24:08 UTC] WordPress database error Column 'client_id' cannot be null for query REPLACE INTO wp_codeable_clients (client_id, full_name, role, last_sign_in_at, pro, timezone_offset, tiny, small, medium, large) VALUES (NULL, NULL, NULL, '1970-01-01 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL) made by do_action('codeable-stats_page_codeable_settings'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, codeable_settings_callback, wpcable_transcactions->store_transactions [23-Feb-2017 21:24:08 UTC] PHP Notice: Undefined offset: 2 in C:\wamp\www\wptest\wp-content\plugins\expertstatsplugin-master\classes\transactions.php on line 134 [23-Feb-2017 21:24:08 UTC] PHP Notice: Undefined offset: 2 in C:\wamp\www\wptest\wp-content\plugins\expertstatsplugin-master\classes\transactions.php on line 135 [23-Feb-2017 21:24:08 UTC] PHP Notice: Undefined offset: 1 in C:\wamp\www\wptest\wp-content\plugins\expertstatsplugin-master\classes\transactions.php on line 138 [23-Feb-2017 21:24:08 UTC] PHP Notice: Undefined offset: 1 in C:\wamp\www\wptest\wp-content\plugins\expertstatsplugin-master\classes\transactions.php on line 139 [23-Feb-2017 21:24:08 UTC] WordPress database error Column 'task_id' cannot be null for query INSERT INTO wp_codeable_amounts (task_id, client_id, credit_revenue_id, credit_revenue_amount, credit_fee_id, credit_fee_amount, credit_user_id, credit_user_amount, debit_cost_id, debit_cost_amount, debit_user_id, debit_user_amount) VALUES (NULL, NULL, '231596', '18088.4', '231595', '50.0', NULL, NULL, '231597', '18138.4', NULL, NULL) made by do_action('codeable-stats_page_codeable_settings'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, codeable_settings_callback, wpcable_transcactions->store_transactions [23-Feb-2017 21:24:19 UTC] WordPress database error Column 'client_id' cannot be null for query REPLACE INTO wp_codeable_clients (client_id, full_name, role, last_sign_in_at, pro, timezone_offset, tiny, small, medium, large) VALUES (NULL, NULL, NULL, '1970-01-01 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL) made by do_action('codeable-stats_page_codeable_settings'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, codeable_settings_callback, wpcable_transcactions->store_transactions [23-Feb-2017 21:24:19 UTC] PHP Notice: Undefined offset: 2 in C:\wamp\www\wptest\wp-content\plugins\expertstatsplugin-master\classes\transactions.php on line 134 [23-Feb-2017 21:24:19 UTC] PHP Notice: Undefined offset: 2 in C:\wamp\www\wptest\wp-content\plugins\expertstatsplugin-master\classes\transactions.php on line 135 [23-Feb-2017 21:24:19 UTC] PHP Notice: Undefined offset: 1 in C:\wamp\www\wptest\wp-content\plugins\expertstatsplugin-master\classes\transactions.php on line 138 [23-Feb-2017 21:24:19 UTC] PHP Notice: Undefined offset: 1 in C:\wamp\www\wptest\wp-content\plugins\expertstatsplugin-master\classes\transactions.php on line 139 [23-Feb-2017 21:24:19 UTC] WordPress database error Column 'task_id' cannot be null for query INSERT INTO wp_codeable_amounts (task_id, client_id, credit_revenue_id, credit_revenue_amount, credit_fee_id, credit_fee_amount, credit_user_id, credit_user_amount, debit_cost_id, debit_cost_amount, debit_user_id, debit_user_amount) VALUES (NULL, NULL, '219909', '350.0', '219908', '50.0', NULL, NULL, '219910', '400.0', NULL, NULL) made by do_action('codeable-stats_page_codeable_settings'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, codeable_settings_callback, wpcable_transcactions->store_transactions

What git-flow do we want to use?

Just committed to master the readme and some screenshots...

So I wanted to bring up how we should do this looking ahead with feature branches and pull requests ect...

Just creating the issue for now I assume @vimes1984 may have input as I really don't know what's best! Thanks - Raleigh :D

Chart downloads

Hey guys, I'd love to be able to download these charts to use in my blog... Specifically the "monthly money chart" + "Amounts Range" + "Tasks per Month" charts.

And by this I mean to simply download a jpg of the chart to quickly add to my blog.

Monthly to Daily Averages

Should we swicth the averages to monthly or daily averages on the table, in order to match the selected "chart display" radio button?

Updates

We need a way to notify experts that there is a new version of the plugin, that they should come to our repo and download it.

We dont want to have the plugin public to the wordpress repo, so something like a remote file with a version to check should be enough

Comments, thoughts ?

easily change chart subtitle

It would probably be a good idea to change the default chart subtitle if this will be made public. It'd also be cool to be able to customize this subtitle.

Add upgrade logic

Need to rename tables that have spelling errors in them, so adding some upgrade logic would be a good idea anyways for future releases.

Preferred Stats VS Non-Preferred

I just clicked into one of my clients and noticed you're able to track which tasks came in as preferred and which didn't.

I think it would be really cool to have a little breakdown that shows total revenue generated by preferred tasks VS non-preferred tasks.

Personally I'd like to share my #'s with the rest of the experts on Codeable to show them just how important these preferred tasks are and how easy it is to get them.

Another stat to track?

Hey guys, first off I just want to say that I'm really loving the plugin, there's so much wonderful information here at my fingertips now, I feel like a kid on Christmas!

One stat that I track personally is my average task size month-over-month as my goal as a freelancer is to work on less tasks that are ultimately worth more money... Perhaps that could be overlaid on the "tasks per month" bar graph to chart total # of tasks VS average task size.

Anyways, just thinking out loud here...

cant view transaction before 2014

As one of the oldest on ...... in my time .... they dont make good pasta like they did back then .....

.... .

There are no transactions before 2014 . Ive been on codeable since January 2013 and i have done tasks that year but even tried 3-4 times re-fetching the data the oldest i see is January 2014 .

Regards

Stop pulling tasks after page

Add an option in settings wp-admin/admin.php?page=codeable_settings for experts to set how many pages to retrieve for the new tasks page wp-admin/admin.php?page=codeable_tasks that @stracker-phil built

Write readme.md

This readme should detail how code is to be commited, what gitflow we are using on it.
Best coding practises etc etc...

Last login date not correct

Seems like tha last login date of the clients is not updated, if there are no new tasks for that client.
If we need to update this date, then we have to go through all the clients and get the last login date.

It might take a while :)

PHP Notices on nginx/PHP7

Running on my local Ubuntu 16.04 install with nginx and PHP7, with WP_DEBUG enabled, I get a bunch of PHP notices (file attached) when viewing the stats page.

PHP Notices.txt

My PHP error_reporting is set to

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

PHP 7.1 Warnings

I'm getting PHP warnings, and failure to update stats (well, anything) in PHP 7.1.7, as follows:

mod_fcgid: stderr: PHP Warning: A non-numeric value encountered in /httpdocs/wp-content/plugins/expertstatsplugin/classes/stats.php on line 470, referer: https://silicondales.com/wp-admin/admin.php?page=codeable_settings

Not 100% its just the PHP version, but will cross check in some other versions to pick apart. Posting this so I can track when I fix it :)

Additional "Task Types" Y-Axis Values

Add the ability to sort by task #'s ... Currently this graph is based on $ and I think it would be interesting to compare both graphs.

Total Tasks Complete (#) VS Income ($)

Authentication API endpoint *breaking* change

Codeable is changing authentication endpoint. Change is simple but it breaks compatibility.

screen shot 2017-03-29 at 10 50 44

We are preparing the scene for removal of "auth_token" property from user serializer.

First step that is happening in the next few days is that we are starting to send old "user" object and new "auth_token" string separately. So response will became a hash and not root user object. Then after a while user.auth_token will go away.

We have added the code in our frontend app to handle both cases so there is no downtime in transition, but eventually we will completely turn off auth_code from user and we will kill "old_way" else branch in the fronted receiver.

screen shot 2017-03-29 at 17 42 53

Highcharts error

The charts are not showing when I installed the plugin.

`Uncaught TypeError: r.attachEvent is not a function
at a.Chart.isReadyToRender (highcharts.js:13)
at a.Chart.firstRender (highcharts.js:13)
at a.Chart.init (highcharts.js:13)
at a.Chart.getArgs (highcharts.js:13)
at new a.Chart (highcharts.js:13)
at Object.a.chart (highcharts.js:13)
at HTMLDocument. (admin.php?page=codeable_transcactions_stats:1605)
at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=5.2.3:2)
at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=5.2.3:2)
at Function.ready (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=5.2.3:2)

chart-error
`

AJAX Post Unending Loop causing API hammering

Last night, ajax posts to wp-admin/admin.php?page=codeable_transcactions_stats appeared to be stuck in a loop.

I checked my site access logs, and it tried calling it about 50,000 times last night, resulting in a temporary IP ban from the Codeable API.

It looks like at some point the API timed out (possibly after my IP ban from the API), but the plugin kept attempting indefinitely.

Make this plugin public?

Hey guys, why not release the plugin publicly and if someone doesn't have a user/pass for Codeable you could either link them to either the apply to become a developer page OR create a new client account page?

This could potentially be expanded into allowing clients to install this plugin on their site and pull a completely different dashboard with their own stats into their own WP site and allow them to post a new project right from their dashboard. Maybe it would showcase the developers they've worked with in the past and you could tie Referoo into this and end up making some $ from your plugin?

Just thinking out loud here again... Will stop spamming this repo now :)

Revenue Tracked By Task Type

Hey Guys,

Also noticed we're able to drill down and see task type; "theme, plugin, project, subtask, install, etc" and I thought it might be cool to have a stat to track average task revenue based on task type?

Might give us some sort of indication where our time is best spent?

No License

I did not see a license attached to this project.

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.