73% squidge

Code Review | Squidge

WordPress plugin Squidge scored73%from 54 tests.

About plugin

  • Plugin page: squidge
  • Plugin version: 0.1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8
  • WordPress version: 6.3.1
  • First release: Dec 8, 2021
  • Latest release: Dec 21, 2021
  • Number of updates: 5
  • Update frequency: every 2.8 days
  • Top authors: ainsleyclark (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /1,541 total downloads


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
This plugin's installer ran successfully

Server metrics [RAM: ▲1.50MB] [CPU: ▲11.51ms] Passed 4 tests

This is a short check of server-side resources used by Squidge
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.98 ▲1.5255.45 ▲16.45
Dashboard /wp-admin4.82 ▲1.4762.46 ▲1.15
Posts /wp-admin/edit.php4.93 ▲1.5870.66 ▲25.76
Add New Post /wp-admin/post-new.php7.41 ▲1.5398.06 ▲8.40
Media Library /wp-admin/upload.php4.72 ▲1.4954.14 ▲20.03

Server storage [IO: ▲8.41MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 591 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Squidge: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,105 ▲33418.92 ▲4.532.01 ▲0.0338.90 ▼2.58
Dashboard /wp-admin2,483 ▲2929.30 ▲4.41174.83 ▲71.7939.00 ▼4.51
Posts /wp-admin/edit.php2,401 ▲3156.11 ▲4.1388.20 ▲50.4934.42 ▲3.21
Add New Post /wp-admin/post-new.php1,588 ▲5519.94 ▼3.43740.94 ▲68.9153.36 ▼8.25
Media Library /wp-admin/upload.php1,531 ▲1496.59 ▲2.39107.90 ▲3.8344.89 ▲1.84
Squidge Options /wp-admin/crb_carbon_fields_container_squidge.php260.440.1213.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/squidge/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 217× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Fields\\Pimple\\ServiceProviderInterface' not found in wp-content/plugins/squidge/vendor/htmlburger/carbon-fields/core/Provider/Container_Condition_Provider.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/squidge/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/squidge/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/squidge/vendor/composer/installers/src/Composer/Installers/MauticInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/squidge/vendor/htmlburger/carbon-fields/core/Field/Text_Field.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/squidge/vendor/htmlburger/carbon-fields/core/Field/Complex_Field.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/squidge/vendor/htmlburger/carbon-fields/core/Container/Condition/User_Capability_Condition.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/squidge/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/squidge/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/squidge/vendor/composer/installers/src/Composer/Installers/MantisBTInstaller.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/crb_carbon_fields_container_squidge.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_squidge.php - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
You can take inspiration from this readme.txt

squidge/squidge.php Passed 13 tests

"Squidge" version 0.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
103 characters long description:
A image optimisation plugin to compress and convert images using cwebp, jpegoptim, optipng and libavif.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected31,303 lines of code in 539 files:
LanguageFilesBlank linesComment linesLines of code
PO File268191,0202,202

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity5.56
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes135.49%
▷ Concrete classes22494.51%
▷ Final classes20.89%
▷ Static methods13712.85%
▷ Public methods84479.17%
▷ Protected methods19918.67%
▷ Private methods232.16%
▷ Named functions2522.12%
▷ Anonymous functions8877.88%
▷ Global constants1632.65%
▷ Class constants3367.35%
▷ Public constants33100.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
No PNG files were detected