Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.46ms] 75% from 4 tests
Server-side resources used by Increase Maximum Upload File Size
Please fix the following
- CPU: The total CPU usage must kept under 500.00ms (currently 923.42ms on /wp-admin/options-general.php?page=upload-max-file-size)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 39.21 ▼0.51 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.70 ▲2.04 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.59 ▼6.18 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 95.96 ▼5.20 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 38.31 ▲6.34 |
Increase Maximum Upload File Size /wp-admin/options-general.php?page=upload-max-file-size | 3.58 | 923.42 |
Server storage [IO: ▲2.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Increase Maximum Upload File Size: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.20 ▼1.59 | 1.68 ▼0.38 | 44.06 ▼0.04 |
Dashboard /wp-admin | 2,210 ▲22 | 5.91 ▲1.05 | 101.16 ▼6.90 | 37.93 ▼5.39 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.02 ▼0.11 | 35.91 ▼4.19 | 31.47 ▼5.30 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.36 ▼5.01 | 623.06 ▼60.11 | 56.18 ▲4.62 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▼0.07 | 97.52 ▼8.50 | 43.06 ▼2.44 |
Increase Maximum Upload File Size /wp-admin/options-general.php?page=upload-max-file-size | 1,594 | 2.33 | 33.22 | 51.45 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=upload-max-file-size
- > Notice in wp-content/plugins/upload-max-file-size/Plugin_Card_Helper.php+244
Undefined index: 2x
SRP 0% 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 fix the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/upload-max-file-size/Notices.php
- > /wp-content/plugins/upload-max-file-size/Imagify_Partner.php
- > /wp-content/plugins/upload-max-file-size/views/admin-page.php
- > /wp-content/plugins/upload-max-file-size/Plugin_Card_Helper.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/upload-max-file-size/views/admin-form.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function UMFS\\plugin_dir_path() in wp-content/plugins/upload-max-file-size/upload-max-file-size.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
7 plugin tags: post max size, increase upload limit, upload_max_filesize, upload limit, max upload file size...
upload-max-file-size/upload-max-file-size.php Passed 13 tests
The main PHP file in "Increase Maximum Upload File Size" ver. 2.0.4 adds more information about the plugin and also serves as the entry point for this plugin
49 characters long description:
Increase maximum upload file size with one click.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin3,099 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 283 | 821 | 1,204 |
JavaScript | 5 | 241 | 180 | 937 |
CSS | 2 | 65 | 12 | 734 |
SVG | 9 | 0 | 9 | 214 |
Sass | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 28 | 37.33% |
▷ Public methods | 58 | 77.33% |
▷ Protected methods | 16 | 21.33% |
▷ Private methods | 1 | 1.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 3 | 30.00% |
▷ Class constants | 7 | 70.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/ordi.png | 47.36KB | 13.82KB | ▼ 70.82% |