Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.42MB] [CPU: ▼0.49ms] Passed 4 tests
Server-side resources used by GTmetrix for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 37.13 ▼2.70 |
Dashboard /wp-admin | 3.73 ▲0.42 | 48.17 ▼0.55 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 48.34 ▲3.45 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 86.38 ▼2.18 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 38.93 ▲5.81 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
gfw_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GTmetrix for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲91 | 13.30 ▼0.87 | 1.66 ▲0.11 | 40.63 ▼5.02 |
Dashboard /wp-admin | 2,232 ▲58 | 5.07 ▼0.78 | 108.28 ▲8.09 | 43.02 ▼12.81 |
Posts /wp-admin/edit.php | 2,114 ▲28 | 2.06 ▲0.06 | 41.39 ▲4.86 | 35.56 ▲4.52 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 23.67 ▲5.55 | 670.37 ▲28.92 | 56.98 ▲0.65 |
Media Library /wp-admin/upload.php | 1,411 ▲29 | 4.23 ▲0.04 | 98.93 ▼4.15 | 40.02 ▼2.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gtmetrix-for-wordpress/widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gtmetrix-for-wordpress/widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: monitoring, page speed, statistics, gtmetrix, performance...
gtmetrix-for-wordpress/gtmetrix-for-wordpress.php 92% from 13 tests
The entry point to "GTmetrix for WordPress" version 0.4.8 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)
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
There were no executable files found in this plugin3,376 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 255 | 198 | 1,805 |
CSS | 4 | 152 | 90 | 1,224 |
JavaScript | 5 | 29 | 5 | 347 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 91.67 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 216.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 89 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 78 | 87.64% |
▷ Protected methods | 11 | 12.36% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 12 | 92.31% |
▷ Class constants | 1 | 7.69% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
23 PNG files occupy 0.22MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 9.37KB | 9.46KB | 0.00% |
lib/smoothness/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
images/letter-grades.png | 4.71KB | 4.83KB | 0.00% |
images/scanner.png | 0.16KB | 0.15KB | ▼ 6.79% |
lib/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |