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
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.98 ▲1.52 | 55.45 ▲16.45 |
Dashboard /wp-admin | 4.82 ▲1.47 | 62.46 ▲1.15 |
Posts /wp-admin/edit.php | 4.93 ▲1.58 | 70.66 ▲25.76 |
Add New Post /wp-admin/post-new.php | 7.41 ▲1.53 | 98.06 ▲8.40 |
Media Library /wp-admin/upload.php | 4.72 ▲1.49 | 54.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 |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Squidge: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,105 ▲334 | 18.92 ▲4.53 | 2.01 ▲0.03 | 38.90 ▼2.58 |
Dashboard /wp-admin | 2,483 ▲292 | 9.30 ▲4.41 | 174.83 ▲71.79 | 39.00 ▼4.51 |
Posts /wp-admin/edit.php | 2,401 ▲315 | 6.11 ▲4.13 | 88.20 ▲50.49 | 34.42 ▲3.21 |
Add New Post /wp-admin/post-new.php | 1,588 ▲55 | 19.94 ▼3.43 | 740.94 ▲68.91 | 53.36 ▼8.25 |
Media Library /wp-admin/upload.php | 1,531 ▲149 | 6.59 ▲2.39 | 107.90 ▲3.83 | 44.89 ▲1.84 |
Squidge Options /wp-admin/crb_carbon_fields_container_squidge.php | 26 | 0.44 | 0.12 | 13.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
- > PHP Fatal error
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)
Optimizations
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 175 | 5,238 | 8,572 | 13,097 |
PHP | 273 | 3,203 | 7,892 | 11,963 |
PO File | 26 | 819 | 1,020 | 2,202 |
Sass | 49 | 340 | 0 | 1,777 |
CSS | 10 | 333 | 1,152 | 1,693 |
JSON | 1 | 0 | 0 | 395 |
YAML | 3 | 31 | 3 | 123 |
Markdown | 2 | 15 | 0 | 53 |
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 code | 0.28 |
Average class complexity | 5.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 31 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 237 | |
▷ Abstract classes | 13 | 5.49% |
▷ Concrete classes | 224 | 94.51% |
▷ Final classes | 2 | 0.89% |
Methods | 1,066 | |
▷ Static methods | 137 | 12.85% |
▷ Public methods | 844 | 79.17% |
▷ Protected methods | 199 | 18.67% |
▷ Private methods | 23 | 2.16% |
Functions | 113 | |
▷ Named functions | 25 | 22.12% |
▷ Anonymous functions | 88 | 77.88% |
Constants | 49 | |
▷ Global constants | 16 | 32.65% |
▷ Class constants | 33 | 67.35% |
▷ Public constants | 33 | 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
No PNG files were detected