Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.50ms] Passed 4 tests
An overview of server-side resources used by WPPerformanceTester
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.40 ▼8.43 |
Dashboard /wp-admin | 3.33 ▼0.02 | 52.08 ▼12.85 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 50.88 ▼2.02 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 94.63 ▼6.70 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.16 ▼1.62 |
WP Performance Tester /wp-admin/tools.php?page=WPPerformanceTester_PluginSettings | 3.22 | 30.24 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 10 new options
New WordPress options |
---|
WPPerformanceTester_Plugin__installed |
can_compress_scripts |
WPPerformanceTester_Plugin_CanDoSomething |
widget_recent-posts |
WPPerformanceTester_Plugin__version |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
WPPerformanceTester_Plugin_AmAwesome |
Browser metrics Passed 4 tests
WPPerformanceTester: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.56 ▼1.05 | 2.16 ▲0.41 | 43.23 ▼0.61 |
Dashboard /wp-admin | 2,210 ▲22 | 5.89 ▲1.02 | 110.06 ▲0.30 | 40.01 ▼0.72 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.02 | 39.84 ▼0.19 | 35.07 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 23.13 ▼0.07 | 660.31 ▼17.27 | 55.60 ▲2.09 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.24 ▲0.03 | 99.62 ▼6.49 | 48.57 ▼0.06 |
WP Performance Tester /wp-admin/tools.php?page=WPPerformanceTester_PluginSettings | 779 | 2.20 | 34.46 | 26.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- WPPerformanceTester_Plugin_CanDoSomething
- theysaidso_admin_options
- WPPerformanceTester_Plugin__installed
- WPPerformanceTester_Plugin_AmAwesome
- db_upgraded
- widget_recent-posts
- WPPerformanceTester_Plugin__version
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wpperformancetester/wp-performance-tester.php:67
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: benchmark, performance, admin
wpperformancetester/wp-performance-tester.php 85% from 13 tests
Analyzing the main PHP file in "WPPerformanceTester" version 2.0.0
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wpperformancetester.php" instead of "wp-performance-tester.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,565 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 227 | 580 | 929 |
CSS | 2 | 31 | 12 | 591 |
Markdown | 1 | 31 | 0 | 43 |
JavaScript | 1 | 0 | 11 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 11.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 45 | 60.81% |
▷ Protected methods | 29 | 39.19% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/write.png | 2.40KB | 1.56KB | ▼ 35.15% |
images/down-arrow.png | 0.19KB | 0.17KB | ▼ 9.38% |