Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼2.34ms] Passed 4 tests
Server-side resources used by Image Type Converter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 38.56 ▼1.74 |
Dashboard /wp-admin | 3.54 ▲0.24 | 47.27 ▼4.08 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 48.28 ▲2.07 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 83.37 ▼2.23 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.20 ▼1.32 |
Image Converter /wp-admin/upload.php?page=gpls-wicor-image-converter-settings | 3.45 | 36.22 |
Server storage [IO: ▲1.67MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 87 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image Type Converter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.25 ▼1.13 | 3.93 ▲1.84 | 36.19 ▼16.07 |
Dashboard /wp-admin | 2,212 ▲24 | 5.83 ▲0.90 | 101.87 ▼5.33 | 37.58 ▼8.95 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.06 ▲0.02 | 39.96 ▲5.12 | 36.13 ▼0.84 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.50 ▲0.18 | 676.94 ▲14.37 | 56.83 ▲5.64 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.28 ▲0.10 | 96.29 ▼1.57 | 43.17 ▼1.06 |
Image Converter /wp-admin/upload.php?page=gpls-wicor-image-converter-settings | 1,499 | 3.85 | 51.17 | 96.57 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WICOR\\Base' not found in wp-content/plugins/image-type-converter/includes/Settings/SettingsFields/Field.php:11
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WICOR\\Base' not found in wp-content/plugins/image-type-converter/includes/TypesSupport.php:10
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WICOR\\Base' not found in wp-content/plugins/image-type-converter/includes/ImageConverter.php:10
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WICOR\\Base' not found in wp-content/plugins/image-type-converter/includes/Modules/SelectImages/SelectImagesModule.php:11
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WICOR\\Pages\\PagesBase\\AdminPage' not found in wp-content/plugins/image-type-converter/includes/Pages/SettingsPage.php:12
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WICOR\\Base' not found in wp-content/plugins/image-type-converter/includes/Settings/SettingsFields/FieldBase.php:12
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WICOR\\Settings\\SettingsBase\\Settings' not found in wp-content/plugins/image-type-converter/includes/Settings/MainSettings.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: avif, image converter, webp, gif, png...
image-type-converter/gpls-wicor-image-converter.php 92% from 13 tests
The main file in "Image Type Converter" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("image-type-converter.php" instead of "gpls-wicor-image-converter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected4,700 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 755 | 2,094 | 4,220 |
JavaScript | 7 | 71 | 33 | 474 |
CSS | 6 | 0 | 5 | 6 |
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.46 |
Average class complexity | 18.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 0 | |
Traits | 6 | |
Classes | 28 | |
▷ Abstract classes | 4 | 14.29% |
▷ Concrete classes | 24 | 85.71% |
▷ Final classes | 2 | 8.33% |
Methods | 268 | |
▷ Static methods | 94 | 35.07% |
▷ Public methods | 191 | 71.27% |
▷ Protected methods | 38 | 14.18% |
▷ Private methods | 39 | 14.55% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.24MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/Core/assets/images/woo-maintenance-mode.png | 33.48KB | 11.56KB | ▼ 65.46% |
includes/Core/assets/images/image-sizes-controller.png | 13.06KB | 5.90KB | ▼ 54.82% |
includes/Core/assets/images/woo-coming-soon.png | 13.46KB | 5.89KB | ▼ 56.23% |
includes/Core/assets/images/woo-quick-view-and-buy-now.png | 23.32KB | 8.67KB | ▼ 62.81% |
includes/Core/assets/dist/images/full-logo.png | 6.58KB | 3.86KB | ▼ 41.28% |