Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.69MB] [CPU: ▲1.50ms] Passed 4 tests
A check of server-side resources used by Image Sizes Controller, Create Custom Image Sizes, Disable Image Sizes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.70 | 44.73 ▲4.33 |
Dashboard /wp-admin | 4.00 ▲0.69 | 52.29 ▼1.13 |
Posts /wp-admin/edit.php | 4.05 ▲0.69 | 57.27 ▲7.39 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.69 | 95.09 ▼4.60 |
Media Library /wp-admin/upload.php | 3.92 ▲0.69 | 46.52 ▲9.26 |
Image Sizes Controller /wp-admin/upload.php?page=gpls-issl-images-subsizes-list | 4.00 | 43.15 |
Server storage [IO: ▲2.81MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Image Sizes Controller, Create Custom Image Sizes, Disable Image Sizes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.27 ▼1.08 | 4.50 ▲2.50 | 43.61 ▼0.06 |
Dashboard /wp-admin | 2,209 ▲24 | 5.85 ▲0.81 | 101.70 ▼7.43 | 41.77 ▼3.89 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 1.99 ▼0.05 | 40.70 ▲3.45 | 35.00 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,519 ▲5 | 17.38 ▼0.52 | 676.34 ▼0.70 | 57.91 ▼9.99 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.22 ▲0.10 | 103.38 ▼5.71 | 45.64 ▲1.08 |
Image Sizes Controller /wp-admin/upload.php?page=gpls-issl-images-subsizes-list | 3,408 | 2.31 | 31.18 | 76.55 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 21× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/image-sizes-controller/templates/pages/bulk-subsizes-template.php on line 7
- > PHP Fatal error
Trait 'GPLSCore\\GPLS_PLUGIN_ISSL\\Utils' not found in wp-content/plugins/image-sizes-controller/includes/ImageSubsizes.php on line 10
- > PHP Notice
Undefined variable: args in wp-content/plugins/image-sizes-controller/templates/pages/sizes-controller-template.php on line 7
- > PHP Fatal error
Trait 'GPLSCore\\GPLS_PLUGIN_ISSL\\Utils' not found in wp-content/plugins/image-sizes-controller/includes/ImageSizes.php on line 10
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/image-sizes-controller/templates/image-subsizes-list-template.php on line 6
- > PHP Notice
Undefined variable: args in wp-content/plugins/image-sizes-controller/templates/pages/sizes-controller-template.php on line 8
- > PHP Notice
Undefined variable: attachment_post in wp-content/plugins/image-sizes-controller/templates/image-subsizes-list-template.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_ISSL\\ImageSizes' not found in wp-content/plugins/image-sizes-controller/templates/pages/sizes-controller-template.php:9
- > PHP Notice
Undefined variable: args in wp-content/plugins/image-sizes-controller/templates/pages/bulk-subsizes-template.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function GPLSCore\\GPLS_PLUGIN_ISSL\\wp_get_registered_image_subsizes() in wp-content/plugins/image-sizes-controller/templates/pages/bulk-subsizes-template.php:10
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7, #8 in image-sizes-controller/assets to your readme.txt
image-sizes-controller/gpls-issl-images-subsizes-list.php 92% from 13 tests
Analyzing the main PHP file in "Image Sizes Controller, Create Custom Image Sizes, Disable Image Sizes" version 1.0.8
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("image-sizes-controller.php" instead of "gpls-issl-images-subsizes-list.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin3,189 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 425 | 1,314 | 3,179 |
CSS | 6 | 0 | 10 | 6 |
JavaScript | 4 | 0 | 6 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 25.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 159 | |
▷ Static methods | 59 | 37.11% |
▷ Public methods | 127 | 79.87% |
▷ Protected methods | 20 | 12.58% |
▷ Private methods | 12 | 7.55% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
18 PNG files occupy 1.29MB with 0.91MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) includes/Core/assets/images/woo-cart-limiter.png | 62.93KB | 0.00KB | ▼ 100.00% |
includes/Core/assets/images/wp-paypal-subscriptions.png | 17.91KB | 7.09KB | ▼ 60.39% |
includes/Core/assets/images/woo-best-seller.png | 42.57KB | 16.47KB | ▼ 61.31% |
includes/Core/assets/images/avif-support.png | 24.13KB | 8.56KB | ▼ 64.51% |
includes/Core/assets/images/woo-advanced-bundles.png | 847.82KB | 291.89KB | ▼ 65.57% |