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.19MB] [CPU: ▼12.65ms] Passed 4 tests
A check of server-side resources used by Max Image Size Control
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.05 ▼5.71 |
Dashboard /wp-admin | 3.32 ▼0.02 | 47.18 ▼17.11 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.05 ▼1.97 |
Add New Post /wp-admin/post-new.php | 5.15 ▼0.73 | 67.33 ▼25.79 |
Media Library /wp-admin/upload.php | 3.22 ▼0.01 | 37.53 ▲5.01 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Max Image Size Control
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.42 ▲0.14 | 1.68 ▼0.03 | 40.48 ▼1.71 |
Dashboard /wp-admin | 2,202 ▲25 | 5.65 ▲0.07 | 90.76 ▼5.08 | 39.31 ▼1.58 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▲0.05 | 36.25 ▼1.04 | 30.46 ▼4.54 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.28 ▲0.29 | 682.29 ▲55.62 | 52.48 ▲2.30 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.19 ▼0.06 | 110.72 ▲10.85 | 45.86 ▲1.71 |
Max Image Size Control /wp-admin/max-image-size-control.php | 26 | 0.42 | 0.11 | 13.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/max-image-size-control/max-image-size-control.php:34
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/max-image-size-control.php
- > Network (severe)
wp-admin/max-image-size-control.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Screenshots: Please add an image for screenshot #1 (Max Image Size Control - Settings)
max-image-size-control/max-image-size-control.php 85% from 13 tests
Analyzing the main PHP file in "Max Image Size Control" version 0.2.7
It is important to fix the following:
- Domain Path: Please prefix the domain path with a forward slash character ("//")
- Domain Path: The domain path should use only dashes and lowercase characters ("/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,022 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 9 | 314 | 1,336 | 599 |
PHP | 1 | 43 | 28 | 423 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 112.00 |
▷ Minimum class complexity | 112.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 10.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 18.58KB | 17.43KB | ▼ 6.19% |