90% squeeze

Code Review | Squeeze

WordPress plugin Squeeze scored90%from 54 tests.

About plugin

  • Plugin page: squeeze
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 16, 2023
  • Latest release: Aug 14, 2023
  • Number of updates: 5
  • Update frequency: every 11.8 days
  • Top authors: barb0ss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /320 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.58 ▲2.63
Dashboard /wp-admin3.34 ▼0.0145.99 ▼13.23
Posts /wp-admin/edit.php3.39 ▲0.0345.78 ▲1.98
Add New Post /wp-admin/post-new.php5.93 ▲0.0479.68 ▼18.16
Media Library /wp-admin/upload.php3.26 ▲0.0336.69 ▲3.22
Squeeze Bulk /wp-admin/upload.php?page=squeeze-bulk3.2332.98
Squeeze /wp-admin/upload.php?page=squeeze3.2331.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲6014.12 ▼0.445.57 ▲3.7144.84 ▲4.87
Dashboard /wp-admin2,227 ▲566.75 ▲1.1793.28 ▲7.1335.84 ▼5.95
Posts /wp-admin/edit.php2,138 ▲382.56 ▲0.5241.03 ▲3.9531.80 ▲1.26
Add New Post /wp-admin/post-new.php1,539 ▲1023.27 ▲0.19696.17 ▲50.9540.05 ▼27.51
Media Library /wp-admin/upload.php1,410 ▲164.46 ▲0.18101.60 ▲0.5045.76 ▲2.37
Squeeze Bulk /wp-admin/upload.php?page=squeeze-bulk8242.1832.2025.87
Squeeze /wp-admin/upload.php?page=squeeze1,1052.1934.4427.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:
LanguageFilesBlank linesComment linesLines of code
JavaScript142295621,042
PHP380115474
PO File15660136
JSON20066

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 code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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