Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼13.97ms] Passed 4 tests
Server-side resources used by WP Google PageSpeed Image Optimizer Lite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 36.07 ▼5.85 |
Dashboard /wp-admin | 3.39 ▲0.04 | 47.48 ▼17.02 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 45.93 ▼3.15 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 85.15 ▼29.84 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.70 ▼0.26 |
Bulk Image Optimizer /wp-admin/upload.php?page=bulk-image-optimizer | 3.28 | 32.97 |
Google Image Optimizer Settings /wp-admin/upload.php?page=google-image-optimizer-settings | 3.28 | 32.25 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Google PageSpeed Image Optimizer Lite
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲46 | 13.59 ▼0.79 | 4.53 ▲2.34 | 42.83 ▼0.87 |
Dashboard /wp-admin | 2,223 ▲32 | 4.85 ▼0.13 | 110.66 ▲6.20 | 39.99 ▼4.06 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.04 ▲0.07 | 34.17 ▼3.00 | 33.79 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.12 ▲4.72 | 641.59 ▲30.44 | 64.23 ▲3.06 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.23 ▼0.01 | 99.28 ▼1.79 | 44.30 ▲0.90 |
Bulk Image Optimizer /wp-admin/upload.php?page=bulk-image-optimizer | 854 | 2.19 | 28.33 | 33.77 |
Google Image Optimizer Settings /wp-admin/upload.php?page=google-image-optimizer-settings | 931 | 2.16 | 25.16 | 25.45 |
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 did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/wp-google-pagespeed-image-optimizer-lite/wp-google-pagespeed-image-optimizer-lite.php:13
- > PHP Fatal error
Uncaught Error: Class 'GoogleImageOptimizer' not found in wp-content/plugins/wp-google-pagespeed-image-optimizer-lite/google-image-optimizer-actions.php:2
- > PHP Fatal error
Uncaught Error: Class 'GoogleImageOptimizer' not found in wp-content/plugins/wp-google-pagespeed-image-optimizer-lite/google-image-optimizer-filters.php:2
- > PHP Fatal error
Uncaught Error: Class 'GoogleImageOptimizer' not found in wp-content/plugins/wp-google-pagespeed-image-optimizer-lite/google-image-optimizer-admin-styles.php:2
- > PHP Fatal error
Uncaught Error: Class 'GoogleImageOptimizer' not found in wp-content/plugins/wp-google-pagespeed-image-optimizer-lite/google-image-optimizer-admin-scripts.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 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
6 plugin tags: google, pagespeed, compression, compress, optimization...
wp-google-pagespeed-image-optimizer-lite/wp-google-pagespeed-image-optimizer-lite.php Passed 13 tests
"WP Google PageSpeed Image Optimizer Lite" version 1.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
52 characters long description:
WP Google PageSpeed Image Optimizer made by R3dRidl3
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected679 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 92 | 9 | 470 |
CSS | 1 | 7 | 0 | 209 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 7.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 17 | 100.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/590.png | 57.05KB | 21.80KB | ▼ 61.78% |