• Resolved someone02

    (@someone02)


    hi
    after scanning the plugin does not tobrazhaet graph only numeric values in the “Runtime By Plugin”, as well as all the “time line”.
    All numeric values on the other tabs and the top output (((
    tried in different browsers on the EP 4.1 and 4.1.1, with disabled all plugins except P3 and on the theme 2015

    what could be wrong?

    https://www.ads-software.com/plugins/p3-profiler/

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Contributor Kurt Payne

    (@kurtpayne)

    It could be a theme loading a conflicting version of jQuery-UI. Have you tried switching to one of the default themes?

    Thread Starter someone02

    (@someone02)

    yes
    WP 2015

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    Do you have any errors in your browser’s console?

    Thread Starter someone02

    (@someone02)

    no

    only this

    Consider using ‘dppx’ units, as in CSS ‘dpi’ means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual ‘dpi’ of a screen. In media query expression: print, not all, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi)

    it’s about P3

    and 1 warning about Synchronous XMLHttpRequest

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    So let’s make sure there is actually data to show … if you go to advanced metrics, how many visits do you see?

    Thread Starter someone02

    (@someone02)

    I tried different ways ..
    with plugins and without …

    I see the numerical values (how many calls to the database, how plugins work)

    in advanced metrica – 7 visits.

    Total Load Time: 0.6948seconds avg.
    Site Load Time: 0.4990seconds avg.
    Profile Overhead: 0.1957seconds avg.
    Plugin Load Time: 0.0076seconds avg.
    Theme Load Time: 0.0273seconds avg.
    Core Load Time: 0.4710seconds avg.
    Margin of Error: -0.0069seconds avg.
    (0.6948 observed, 0.7016 expected)
    Visits: 7
    Number of PHP ticks: 40 calls avg.
    Memory Usage: 13.93 MB avg.
    MySQL Queries: 26 queries avg.

    Thread Starter someone02

    (@someone02)

    this data only with the plugin P3 on the theme WP 2015

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    Can you post a screenshot?

    Thread Starter someone02

    (@someone02)

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    Hello,

    I have justed tested this with the latest versions of Chrome / Safari / Firefox / IE with Twenty Fifteen and P3 (with no other plugins) but I cannot replicate your results in any browser.

    Can you replicate this in a private browsing window or on another PC or on a staging/development copy of your site?

    Thread Starter someone02

    (@someone02)

    hi

    I just tried it in a private window chrome – the same thing.

    and I run it on 2 different versions of the site (local host) … unchanged (((

    there are other options? ??

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    If you want to work together on this and don’t mind giving me access to your site, please email kpayne -at- godaddy -dot- com and we’ll see if we can figure it out.

    Thread Starter someone02

    (@someone02)

    This plugin is installed only on my localhost.
    I can not give access there)))
    maybe team viewer?
    but there will be a low speed (

    I believe I’m seeing a similar problem with P3 on InstantWP, which I’m using to learn WordPress. When the P3 plugin is run, only the graph on the “Detailed Breakdown” tab was being drawn — all the other graphs were blank.

    I traced the problem to the fact that the HTML IDs for the divs for each of the graphs were identical. As a result, the jQuery functions that were drawing the graphs all draw in the same div, and thus only the last graph drawn survived.

    The reason all of the IDs were identical is due to the following code in the P3 plugin’s view-scan.php:

    $pie_chart_id                 = substr( md5( uniqid() ), -8 );
    $runtime_chart_id             = substr( md5( uniqid() ), -8 );
    $query_chart_id               = substr( md5( uniqid() ), -8 );
    $component_breakdown_chart_id = substr( md5( uniqid() ), -8 );
    $component_runtime_chart_id   = substr( md5( uniqid() ), -8 );

    It appears that php’s uniqid() function must be returning the same value in each of these calls, possibly because the system clock only has a granularity of milliseconds, not microseconds. Regardless, changing the above code to the following fixed the problem so that unique IDs were generated and the graphs were rendered properly:

    $baseId = substr( md5( uniqid() ), -8 );
    $pie_chart_id                 = $baseId . '_A';
    $runtime_chart_id             = $baseId . '_B';
    $query_chart_id               = $baseId . '_C';
    $component_breakdown_chart_id = $baseId . '_D';
    $component_runtime_chart_id   = $baseId . '_E';
    Plugin Contributor Kurt Payne

    (@kurtpayne)

    @mogulbuster I think you’re on to something. I took a slightly different approach, but committed your fix in 1.5.3.7.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘not displayed the graph in the results’ is closed to new replies.