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
Installer ran successfully
Server metrics [RAM: ▲0.56MB] [CPU: ▼1.86ms] Passed 4 tests
A check of server-side resources used by TinyPNG - JPEG, PNG & WebP image compression
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.55 | 40.10 ▼3.95 |
Dashboard /wp-admin | 3.89 ▲0.54 | 50.00 ▼11.40 |
Posts /wp-admin/edit.php | 3.99 ▲0.63 | 51.84 ▲4.14 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.59 | 102.35 ▲3.79 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 40.08 ▲7.66 |
Bulk Optimization /wp-admin/upload.php?page=tiny-bulk-optimization | 3.74 | 35.27 |
TinyPNG - JPEG, PNG & WebP image compression /wp-admin/options-general.php?page=tinify | 3.77 | 39.11 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 66 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
tinypng_compression_timing |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by TinyPNG - JPEG, PNG & WebP image compression
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲196 | 14.28 ▼0.07 | 1.60 ▼0.16 | 37.72 ▼7.98 |
Dashboard /wp-admin | 2,348 ▲168 | 5.76 ▲0.11 | 98.76 ▼0.20 | 47.08 ▲4.11 |
Posts /wp-admin/edit.php | 2,130 ▲27 | 2.03 ▲0.05 | 41.67 ▲6.51 | 41.67 ▲5.91 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.60 ▲0.14 | 585.90 ▼54.60 | 67.72 ▲11.11 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.45 ▲0.25 | 104.74 ▲3.41 | 43.21 ▲0.62 |
Bulk Optimization /wp-admin/upload.php?page=tiny-bulk-optimization | 1,071 | 2.26 | 27.63 | 50.31 |
TinyPNG - JPEG, PNG & WebP image compression /wp-admin/options-general.php?page=tinify | 1,072 | 2.27 | 29.94 | 31.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- tinypng_compression_timing
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/upload.php?page=tiny-bulk-optimization
- > Notice in wp-content/plugins/tiny-compress-images/src/class-tiny-bulk-optimization.php+41
Trying to access array offset on value of type bool
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
- 51× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'ok' of non-object in wp-content/plugins/tiny-compress-images/src/views/account-status-connected.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/tiny-compress-images/src/views/bulk-optimization.php on line 9
- > PHP Notice
Undefined variable: status in wp-content/plugins/tiny-compress-images/src/views/account-status-connected.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'Tiny_WP_Base' not found in wp-content/plugins/tiny-compress-images/src/class-tiny-settings.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tiny-compress-images/src/views/bulk-optimization.php:36
- > PHP Notice
Undefined variable: admin_colors in wp-content/plugins/tiny-compress-images/src/views/bulk-optimization.php on line 24
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/tiny-compress-images/src/views/bulk-optimization.php on line 21
- > PHP Notice
Undefined variable: admin_colors in wp-content/plugins/tiny-compress-images/src/views/bulk-optimization.php on line 9
- > PHP Notice
Undefined variable: tiny_image in wp-content/plugins/tiny-compress-images/src/views/compress-details-processing.php on line 1
- > PHP Notice
Undefined variable: admin_colors in wp-content/plugins/tiny-compress-images/src/views/bulk-optimization.php on line 25
- > PHP Notice
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 Passed 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
5 plugin tags: compression, performance, image size, page speed, compress images
tiny-compress-images/tiny-compress-images.php Passed 13 tests
The main PHP file in "TinyPNG - JPEG, PNG & WebP image compression" ver. 3.4.3 adds more information about the plugin and also serves as the entry point for this plugin
91 characters long description:
Speed up your website. Optimize your JPEG, PNG, and WebP images automatically with TinyPNG.
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
Everything looks great! No dangerous files found in this plugin5,774 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 627 | 375 | 4,075 |
CSS | 4 | 164 | 4 | 813 |
JavaScript | 3 | 76 | 9 | 593 |
YAML | 1 | 0 | 0 | 124 |
Bourne Again Shell | 6 | 23 | 0 | 94 |
JSON | 1 | 0 | 0 | 39 |
XML | 1 | 2 | 0 | 23 |
Perl | 1 | 2 | 0 | 13 |
PHP code Passed 2 tests
A brief analysis 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.35 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 2 | 8.33% |
▷ Concrete classes | 22 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 280 | |
▷ Static methods | 51 | 18.21% |
▷ Public methods | 220 | 78.57% |
▷ Protected methods | 23 | 8.21% |
▷ Private methods | 37 | 13.21% |
Functions | 16 | |
▷ Named functions | 14 | 87.50% |
▷ Anonymous functions | 2 | 12.50% |
Constants | 22 | |
▷ Global constants | 1 | 4.55% |
▷ Class constants | 21 | 95.45% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 compressed PNG files occupy 0.32MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/images/grass.png | 22.27KB | 22.90KB | 0.00% |
src/images/panda-laying.png | 70.10KB | 73.47KB | 0.00% |
src/images/panda-waiting.png | 81.14KB | 84.69KB | 0.00% |
src/images/cloud.png | 51.39KB | 56.66KB | 0.00% |
src/images/grass-ie8.png | 42.35KB | 15.78KB | ▼ 62.74% |