Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.67ms] Passed 4 tests
Analyzing server-side resources used by Images Advanced Settings
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 35.86 ▼5.41 |
Dashboard /wp-admin | 3.43 ▲0.13 | 47.43 ▼3.49 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 46.51 ▲1.88 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 92.38 ▼7.67 |
Media Library /wp-admin/upload.php | 3.36 ▲0.12 | 37.67 ▲2.16 |
Images (advanced) /wp-admin/options-general.php?page=image-settings | 3.36 | 32.83 |
Server storage [IO: ▲0.21MB] [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: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
images_advanced_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for Images Advanced Settings
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.26 ▼1.04 | 1.56 ▼0.11 | 38.56 ▼10.93 |
Dashboard /wp-admin | 2,210 ▲22 | 5.86 ▲0.95 | 105.44 ▲4.41 | 39.65 ▼2.38 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.04 ▲0.01 | 38.94 ▲1.22 | 34.47 ▲5.05 |
Add New Post /wp-admin/post-new.php | 1,539 ▼3 | 23.43 ▲4.97 | 657.83 ▲2.08 | 69.10 ▲8.24 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.26 ▲0.07 | 97.47 ▼4.22 | 44.66 ▲2.15 |
Images (advanced) /wp-admin/options-general.php?page=image-settings | 1,141 | 2.07 | 27.62 | 27.97 |
Uninstaller [IO: ▲0.21MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attentionThis plugin does not fully uninstall, leaving 7 options in the database
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/images-advanced-settings/uninstall.php+5
Undefined index: plugin
- This plugin has failed uninstalling correctly, leaving 34 files (0.21MB) in the plugin directory
- (new file) admin/includes/class-ias-admin-optimizations.php
- (new file) README.txt
- (new file) admin/includes/class-ias-admin-attachments.php
- (new file) admin/css/ias-admin.css
- (new file) LICENSE.txt
- (new file) admin/images/success.svg
- (new file) admin/includes/class-ias-admin-helpers.php
- (new file) admin/class-ias-admin.php
- (new file) admin/images/error.svg
- (new file) admin/includes/class-ias-admin-sizes.php
- ...
- can_compress_scripts
- theysaidso_admin_options
- images_advanced_settings
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/images-advanced-settings/admin/views/ias-admin-section-sizes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/images-advanced-settings/admin/views/ias-admin-section-regeneration.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/images-advanced-settings/admin/views/ias-admin-page.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/images-advanced-settings/admin/views/ias-admin-part-custom-sizes.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/images-advanced-settings/admin/views/ias-admin-section-optimization.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_attachment_image() in wp-content/plugins/images-advanced-settings/admin/views/ias-admin-part-log.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Default sizes disabling), #2 (Add and update your custom sizes), #3 (Regenerate your images), #4 (Inject Lazy loading script)
- Tags: There are too many tags (12 tag instead of maximum 10)
images-advanced-settings/images-advanced-settings.php Passed 13 tests
This is the main PHP file of "Images Advanced Settings" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
63 characters long description:
Additional settings for images as custom sizes or regeneration.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,560 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 232 | 272 | 832 |
JavaScript | 3 | 96 | 11 | 360 |
PO File | 1 | 65 | 70 | 168 |
CSS | 1 | 27 | 0 | 124 |
SVG | 2 | 0 | 2 | 76 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 9.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 11 | 18.64% |
▷ Public methods | 35 | 59.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 24 | 40.68% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 39.71KB | 17.63KB | ▼ 55.62% |
screenshot-2.png | 29.03KB | 13.22KB | ▼ 54.45% |
screenshot-1.png | 19.39KB | 8.96KB | ▼ 53.80% |
screenshot-4.png | 8.77KB | 4.85KB | ▼ 44.71% |