Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.94ms] 75% from 4 tests
This is a short check of server-side resources used by Performance Checker
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 2,181.06ms on /wp-admin/admin.php?page=pagespeed_insights)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 39.01 ▲9.94 |
Dashboard /wp-admin | 3.07 ▲0.01 | 47.28 ▼0.91 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 44.04 ▲1.06 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 86.14 ▼572.83 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 33.42 ▲0.93 |
GT-Metrix /wp-admin/admin.php?page=gt_metrix | 3.05 | 26.00 |
Performance Checker /wp-admin/admin.php?page=performance_checker | 3.01 | 29.20 |
PageSpeed Insights /wp-admin/admin.php?page=pagespeed_insights | 3.02 | 2,181.06 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Performance Checker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,345 ▲749 | 16.10 ▲0.45 | 10.77 ▲1.96 | 56.10 ▲5.78 |
Dashboard /wp-admin | 3,612 ▲675 | 6.18 ▲0.25 | 156.64 ▼2.73 | 83.27 ▼25.85 |
Posts /wp-admin/edit.php | 3,381 ▲642 | 2.78 ▲0.07 | 75.69 ▲0.25 | 66.80 ▼22.71 |
Add New Post /wp-admin/post-new.php | 1,646 ▲31 | 21.51 ▲0.15 | 296.91 ▲2.06 | 129.44 ▲26.11 |
Media Library /wp-admin/upload.php | 2,449 ▲627 | 5.21 ▲0.17 | 159.13 ▲8.75 | 122.56 ▲5.09 |
GT-Metrix /wp-admin/admin.php?page=gt_metrix | 1,893 | 2.36 | 57.24 | 70.05 |
Performance Checker /wp-admin/admin.php?page=performance_checker | 1,759 | 2.40 | 54.72 | 62.42 |
PageSpeed Insights /wp-admin/admin.php?page=pagespeed_insights | 1,904 | 2.39 | 55.90 | 70.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=gt_metrix
- > Notice in wp-content/plugins/performance-checker/template/gtmetrix.php+38
Undefined variable: url_to_test
- > GET request to /wp-admin/admin.php?page=gt_metrix
- > Notice in wp-content/plugins/performance-checker/template/gtmetrix.php+45
Undefined variable: fully_loaded_time
- > GET request to /wp-admin/admin.php?page=gt_metrix
- > Notice in wp-content/plugins/performance-checker/template/gtmetrix.php+53
Undefined variable: onload_time
- > GET request to /wp-admin/admin.php?page=gt_metrix
- > Notice in wp-content/plugins/performance-checker/template/gtmetrix.php+61
Undefined variable: page_size
- > GET request to /wp-admin/admin.php?page=gt_metrix
- > Notice in wp-content/plugins/performance-checker/template/gtmetrix.php+69
Undefined variable: page_load_time
- > GET request to /wp-admin/admin.php?page=gt_metrix
- > Notice in wp-content/plugins/performance-checker/template/gtmetrix.php+79
Undefined variable: html_load_time
- > GET request to /wp-admin/admin.php?page=gt_metrix
- > Notice in wp-content/plugins/performance-checker/template/gtmetrix.php+87
Undefined variable: yslow_score
- > GET request to /wp-admin/admin.php?page=gt_metrix
- > Notice in wp-content/plugins/performance-checker/template/gtmetrix.php+95
Undefined variable: pagespeed_score
- > GET request to /wp-admin/admin.php?page=gt_metrix
- > Notice in wp-content/plugins/performance-checker/template/gtmetrix.php+103
Undefined variable: onload_duration
- > GET request to /wp-admin/admin.php?page=gt_metrix
- > Notice in wp-content/plugins/performance-checker/template/gtmetrix.php+109
Undefined variable: report_url
- > GET request to /wp-admin/admin.php?page=pagespeed_insights
- > Notice in wp-content/plugins/performance-checker/template/pagespeed.php+12
Undefined index: lighthouseResult
- 19 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pagespeed_insights
- > Notice in wp-content/plugins/performance-checker/template/pagespeed.php+21
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/performance-checker/template/gtmetrix.php
- > /wp-content/plugins/performance-checker/template/pagespeed.php
- > /wp-content/plugins/performance-checker/template/Services_WTF_Test.php
- > /wp-content/plugins/performance-checker/index.php
- > /wp-content/plugins/performance-checker/PerformanceChecker.php
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: html_load_time in wp-content/plugins/performance-checker/template/gtmetrix.php on line 79
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/performance-checker/template/admin.php:4
- > PHP Notice
Undefined variable: onload_duration in wp-content/plugins/performance-checker/template/gtmetrix.php on line 103
- > PHP Notice
Undefined variable: onload_time in wp-content/plugins/performance-checker/template/gtmetrix.php on line 53
- > PHP Notice
Undefined variable: fully_loaded_time in wp-content/plugins/performance-checker/template/gtmetrix.php on line 45
- > PHP Notice
Undefined variable: page_load_time in wp-content/plugins/performance-checker/template/gtmetrix.php on line 69
- > PHP Notice
Undefined variable: page_size in wp-content/plugins/performance-checker/template/gtmetrix.php on line 61
- > PHP Notice
Undefined variable: url_to_test in wp-content/plugins/performance-checker/template/gtmetrix.php on line 38
- > PHP Notice
Undefined variable: pagespeed_score in wp-content/plugins/performance-checker/template/gtmetrix.php on line 95
- > PHP Notice
Undefined variable: report_url in wp-content/plugins/performance-checker/template/gtmetrix.php on line 109
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=performance_checker
- > Network (severe)
wp-content/plugins/performance-checker/assets/img/logo.png%22 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=performance_checker
- > Network (severe)
wp-content/plugins/performance-checker/assets/img/lg.double-ring-spinner.gif%22 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: performance, gtmetrix, pagespeed
performance-checker/PerformanceChecker.php 77% from 13 tests
The primary PHP file in "Performance Checker" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("performance-checker.php" instead of "PerformanceChecker.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 188 characters long)
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin526 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 96 | 198 | 509 |
CSS | 2 | 1 | 0 | 13 |
JavaScript | 2 | 0 | 0 | 3 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 92.31% |
▷ Protected methods | 2 | 7.69% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/pagespeed_64dp.png | 3.34KB | 2.58KB | ▼ 22.72% |
assets/img/logo.png | 6.45KB | 3.58KB | ▼ 44.54% |