Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.70ms] Passed 4 tests
Analyzing server-side resources used by Squeeze
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.58 ▲2.63 |
Dashboard /wp-admin | 3.34 ▼0.01 | 45.99 ▼13.23 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.78 ▲1.98 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 79.68 ▼18.16 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.69 ▲3.22 |
Squeeze Bulk /wp-admin/upload.php?page=squeeze-bulk | 3.23 | 32.98 |
Squeeze /wp-admin/upload.php?page=squeeze | 3.23 | 31.73 |
Server storage [IO: ▲5.19MB] [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: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Squeeze: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲60 | 14.12 ▼0.44 | 5.57 ▲3.71 | 44.84 ▲4.87 |
Dashboard /wp-admin | 2,227 ▲56 | 6.75 ▲1.17 | 93.28 ▲7.13 | 35.84 ▼5.95 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.56 ▲0.52 | 41.03 ▲3.95 | 31.80 ▲1.26 |
Add New Post /wp-admin/post-new.php | 1,539 ▲10 | 23.27 ▲0.19 | 696.17 ▲50.95 | 40.05 ▼27.51 |
Media Library /wp-admin/upload.php | 1,410 ▲16 | 4.46 ▲0.18 | 101.60 ▲0.50 | 45.76 ▲2.37 |
Squeeze Bulk /wp-admin/upload.php?page=squeeze-bulk | 824 | 2.18 | 32.20 | 25.87 |
Squeeze /wp-admin/upload.php?page=squeeze | 1,105 | 2.19 | 34.44 | 27.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
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
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: compression, optimisation, image, bulk, optimise...
squeeze/squeeze.php Passed 13 tests
"Squeeze" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
30 characters long description:
Compress images by squoosh.app
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 plugin1,718 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 229 | 562 | 1,042 |
PHP | 3 | 80 | 115 | 474 |
PO File | 1 | 56 | 60 | 136 |
JSON | 2 | 0 | 0 | 66 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected