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.10MB] [CPU: ▼6.95ms] Passed 4 tests
Server-side resources used by WP TinyPNG
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 42.54 ▲3.92 |
Dashboard /wp-admin | 3.42 ▲0.07 | 46.80 ▼17.80 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 45.20 ▲0.66 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 79.00 ▼14.56 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.78 ▲4.98 |
PNG Compression /wp-admin/upload.php?page=wp-tinypng | 3.31 | 32.48 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
WP TinyPNG: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.26 ▼1.12 | 4.41 ▲2.89 | 42.65 ▲1.28 |
Dashboard /wp-admin | 2,210 ▲25 | 5.88 ▲0.93 | 95.20 ▼53.73 | 39.75 ▼8.53 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.00 | 33.01 ▼1.14 | 32.31 ▼5.04 |
Add New Post /wp-admin/post-new.php | 1,536 ▲7 | 22.80 ▼0.39 | 669.46 ▲52.63 | 51.73 ▼2.23 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.23 ▲0.06 | 95.23 ▲0.80 | 44.93 ▲1.61 |
PNG Compression /wp-admin/upload.php?page=wp-tinypng | 756 | 2.02 | 23.62 | 23.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- 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
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-tinypng/wp-tinypng.php:12
- > 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 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== wp-tinypng ===
)
wp-tinypng/wp-tinypng.php Passed 13 tests
"WP TinyPNG" version 0.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
91 characters long description:
Compresses images on your posts, pages and media library using the TinyPNG compression API.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin909 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 324 | 387 | 909 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 38.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 4.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 47 | 95.92% |
▷ Protected methods | 2 | 4.08% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 2 | 100.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
PNG images were not found in this plugin