Linux 软件免费装
Banner图

P3 (Plugin Performance Profiler)

开发者 Godaddy
StarfieldTech
kurtpayne
asink
wpmudev
更新时间 2020年10月27日 08:46
PHP版本: 3.3 及以上
WordPress版本: 5.5
版权: GPLv2
版权网址: 版权信息

标签

speed debug performance plugin development debugging developer profiler

下载

1.0 1.0.1 1.0.3 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.4 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.3.1 1.5.3.3 1.5.3.4 1.5.3.5 1.5.3.6 1.5.3.7 1.5.3.8 1.5.3.9 1.5.4 1.0.2 1.0.4 1.0.5 1.1.0 1.1.3 1.5.3.2

详情介绍:

This plugin creates a profile of your WordPress site's plugins' performance by measuring their impact on your site's load time. Often times, WordPress sites load slowly because of poorly configured plugins or because there are so many of them. By using the P3 plugin, you can narrow down anything causing slowness on your site. This plugin uses the canvas element for drawing charts and requires requires Firefox, Chrome, Opera, Safari, or IE9 or later. This plugin will not work in IE8 or lower.

安装:

Automatic installation
  1. Log into your WordPress admin
  2. Click Plugins
  3. Click Add New
  4. Search for P3
  5. Click Install Now under "P3 (Plugin Performance Profiler)"
  6. Activate the plugin
Manual installation:
  1. Download the plugin
  2. Extract the contents of the zip file
  3. Upload the contents of the zip file to the wp-content/plugins/ folder of your WordPress installation
  4. Then activate the Plugin from Plugins page.

屏幕截图:

  • First, profile your site. The scanner generates some traffic on your site and monitors your site's performance on the server, then shows you the results. With this information, you can decide what action to take.
  • After profiling, you'll see a breakdown of relative runtime for each plugin.
  • Callouts at the top give you quick information like how much load time (in seconds) is dedicated to plugins and how many database queries your site is running per page.
  • The detailed timeline gives you timing information for every plugin, the theme, and the core for every page during the profile. Find out exactly what's happening on slow loading pages.
  • You can toggle each series on and off to customize this timeline for your precise needs.
  • The query timeline gives you the number of database queries for every page during the profile. Find out which pages generate the most database queries.
  • Keep a history of your performance scans, compare your current performance with your previous performance.
  • Full in-app help documentation
  • Send a summary of your performance profile via e-mail. If you want to show your developer, site admin, hosting support, or a plugin developer what's going on with your site, this is good way to start the conversation.
  • Use the advanced settings to activate debug mode, control cache busting, or lock down profiling to a set of IP addresses.
  • View the debug log on the help page to help troubleshoot if P3 isn't recording properly.

升级注意事项:

1.5.4 Fix: Compatibility with PHP 7 and fix JavaScript errors (props gabriel-munteanu) Fix: Deprecated create_function() warning 1.5.3.9 Security update: Escape URLs returned by add_query_arg and remove_query_arg 1.5.3.8 Bugfix for HTML element with space in the id 1.5.3.7 Ensure HTML element names are distinct. Props mogulbuster 1.5.3.6 Internal version bump to ensure new CSS/JS isn't cached 1.5.3.5 CSS fix for jQuery UI Dialogs 1.5.3.4 Fixes another CSS issue with overlays and some browsers 1.5.3.3 Fixes a CSS issue with overlays and some browsers 1.5.3.2 Style updates for 4.1 1.5.3.1 Fixed logic bug in determining debug_backtrace arguements 1.5.3 Improved scanner performance (props askapache). Fixed a CSS conflict in overlays 1.5.2 Fixed a race condition in the error detection logic. Now P3 will auto deactivate 60 seconds after an error if it is not cleared. 1.5.1 Fix a bug which broke debug mode and caused scanning to not work properly for some users. 1.5.0 Avoid a race condition on NFS systems. Also fix PHP strict notices and stylesheet conflict with MP6/3.8 admin theme. 1.4.1 Fixed 2 php notices and removed a reference to a missing stylesheet. 1.4 Added 3.5 compatibility and refreshed UI colors. 1.3.1 Fixed an error when upgrading to 1.3.x from 1.1.x and skipping the 1.2.x upgrade. 1.3.0 Internationalized P3, major refactoring for lower memory usage, compatibility with WordPress 3.4. 1.2.0 Many compatibility fixes based on user feedback. Upgrading is recommended. 1.1.3 Fixed a regression bug re-introduced in v 1.1.2. Thanks to user adamf for finding this so quickly! 1.1.2 Fix a few bugs reported by users. Upgrading is optional if this plugin is working well for you. 1.1.1 This release addresses a bug which which broke the UI on sites that used other plugins that contained an apostrophe in their name. Upgrading is recommended if you were affected by this bug. 1.1.0 Several usability enhancements and bugfixes. 1.0.5 This version addresses a path disclosure issue. Users are encouraged to upgrade.

常见问题:

I installed P3, what now?

Open the Tools menu, then open P3 Plugin Profiler then click Scan Now.

What if I get a warning about usort()?

Warning messages like this: Warning: usort() [function.usort]: Array was modified by the user comparison function are due to a known php bug. See php bug #50688 for more information. This warning does not affect the functionality of your site and it is not visible to your users.

In the e-mail report, why is my theme detected as "unknown?"

Previous version of the plugin (before 1.1.0) did not have theme name detection support. If you performed a scan with a previous version, then upgraded to 1.1.0+ to view the scan, the theme name will show as "unknown."

Help! I used P3 and now my site is down!

First, get your site back up! There are two ways to do this. Try the emergency shutoff switch first. If that doesn't work, delete the plugin files. Emergency Shutoff Switch

  1. Visit yoursite.com/wordpress/index.php?P3_SHUTOFF=1
Delete the Plugin Files
  1. Delete wp-content/plugins/p3-profiler (the whole folder)
  2. Delete wp-content/mu-plugins/p3-profiler.php (if it exists)
This can happen if P3 hits the memory limit on your server while it's running. This happens most often on sites with many active plugins or a complex theme. Consider switching to the Twenty Eleven theme or deactivating a few plugins before re-running P3.

I get "Warning: file_put_contents( .... )"

Please check your media settings. This is in Settings -> Media -> Store uploads in this folder. If this folder is not set correctly, P3 won't know where to read the files.

How do I use P3 with multisite?

P3 is available on the Tools menu for each site in the network.

How can I change the list of pages scanned with auto-scan?

You can write a plugin to hook the p3_automatic_scan_urls filter. Here's some sample code: function my_p3_auto_scan_pages() { return array( 'http://example.com/', 'http://example.com/some-cool-post', 'http://example.com/wp-admin/edit.php', ); } add_filter( 'p3_automatic_scan_urls', 'my_p3_auto_scan_pages' );

更新日志:

1.5.4 Fix: Compatibility with PHP 7 and fix JavaScript errors (props gabriel-munteanu) Fix: Deprecated create_function() warning 1.5.3.9 Security update: Escape URLs returned by add_query_arg and remove_query_arg 1.5.3.8 Bugfix for HTML element with space in the id 1.5.3.7 Ensure HTML element names are distinct. Props mogulbuster 1.5.3.6 Internal version bump to ensure new CSS/JS isn't cached 1.5.3.5 1.5.3.3 1.5.3.2 1.5.3.1 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4 1.3.1 1.3.0 1.2.0 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0