Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼288.76ms] Passed 4 tests
A check of server-side resources used by P3 (Plugin Performance Profiler)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 61.02 ▲5.11 |
Dashboard /wp-admin | 3.45 ▲0.04 | 35.88 ▲1.19 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 44.33 ▲7.47 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 100.23 ▼1,161.41 |
Media Library /wp-admin/upload.php | 3.33 ▲0.03 | 29.09 ▲0.09 |
P3 Plugin Profiler /wp-admin/tools.php?page=p3-profiler | 3.56 | 62.83 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- There were 1 file (0.09KB) illegally modified outside of "wp-content/plugins/p3-profiler/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/p3-profiler.php
Filesystem: 49 new files
Database: no new tables, 4 new options
New WordPress options |
---|
p3-profiler_options |
p3-profiler_version |
p3-profiler_debug_log |
p3_notices |
Browser metrics Passed 4 tests
Checking browser requirements for P3 (Plugin Performance Profiler)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲14 | 14.63 ▼1.13 | 6.52 ▲0.07 | 2.40 ▼0.29 |
Dashboard /wp-admin | 2,897 ▲39 | 6.16 ▲0.01 | 119.14 ▼28.10 | 155.92 ▼33.50 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.23 ▲0.00 | 65.96 ▼5.62 | 142.27 ▼2.44 |
Add New Post /wp-admin/post-new.php | 1,664 ▲3 | 20.81 ▲4.01 | 414.06 ▼55.32 | 163.12 ▲3.97 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.51 ▲0.05 | 147.62 ▼6.83 | 187.86 ▼29.29 |
P3 Plugin Profiler /wp-admin/tools.php?page=p3-profiler | 2,203 | 5.32 | 110.02 | 195.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- p3_notices
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 15× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/p3-profiler/templates/view-scan.php
- > /wp-content/plugins/p3-profiler/templates/callouts.php
- > /wp-content/plugins/p3-profiler/templates/index.php
- > /wp-content/plugins/p3-profiler/classes/class.p3-profiler-table-sorter.php
- > /wp-content/plugins/p3-profiler/p3-profiler.php
- > /wp-content/plugins/p3-profiler/classes/class.p3-profiler.php
- > /wp-content/plugins/p3-profiler/classes/class.p3-profiler-table.php
- > /wp-content/plugins/p3-profiler/exceptions/class.p3-profiler-no-data-exception.php
- > /wp-content/plugins/p3-profiler/classes/index.php
- > /wp-content/plugins/p3-profiler/languages/index.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/p3-profiler/templates/template.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: speed, debugging, debug, plugin, development...
p3-profiler/p3-profiler.php 92% from 13 tests
The main PHP script in "P3 (Plugin Performance Profiler)" version 1.5.4 is automatically included on every request by WordPress
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 160 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Almost there! Just fix the following issues
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/p3-profiler/build.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 552 | 888 | 3,811 |
CSS | 5 | 124 | 334 | 1,108 |
JavaScript | 5 | 247 | 258 | 731 |
PO File | 1 | 282 | 391 | 725 |
XML | 1 | 0 | 0 | 22 |
DOS Batch | 1 | 3 | 0 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 32.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 4.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 30 | 37.50% |
▷ Public methods | 65 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 18.75% |
Functions | 23 | |
▷ Named functions | 5 | 21.74% |
▷ Anonymous functions | 18 | 78.26% |
Constants | 11 | |
▷ Global constants | 7 | 63.64% |
▷ Class constants | 4 | 36.36% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_cc0000_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-icons_333333_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-icons_21759b_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
css/images/ui-icons_999999_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/logo.png | 6.01KB | 2.91KB | ▼ 51.56% |