72% upload-max-file-size

Code Review | Increase Maximum Upload File Size

WordPress plugin Increase Maximum Upload File Size scored 72% from 54 tests.

About plugin

  • Plugin page: upload-max-file-size
  • Plugin version: 2.0.4
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8
  • WordPress version: 6.3.1
  • First release: Nov 19, 2014
  • Latest release: Aug 14, 2023
  • Number of updates: 50
  • Update frequency: every 64.8 days
  • Top authors: looklikeme05 (60%)wp_media (22%)WebFactory (22%)

Code review

54 tests

User reviews

100 reviews

Install metrics

70,000+ active / 844,897 total downloads

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)
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.21 ▼0.51
Dashboard /wp-admin3.34 ▲0.0447.70 ▲2.04
Posts /wp-admin/edit.php3.39 ▲0.0445.59 ▼6.18
Add New Post /wp-admin/post-new.php5.92 ▲0.0495.96 ▼5.20
Media Library /wp-admin/upload.php3.26 ▲0.0438.31 ▲6.34
Increase Maximum Upload File Size /wp-admin/options-general.php?page=upload-max-file-size3.58923.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.20 ▼1.591.68 ▼0.3844.06 ▼0.04
Dashboard /wp-admin2,210 ▲225.91 ▲1.05101.16 ▼6.9037.93 ▼5.39
Posts /wp-admin/edit.php2,090 ▲12.02 ▼0.1135.91 ▼4.1931.47 ▼5.30
Add New Post /wp-admin/post-new.php1,545 ▲2618.36 ▼5.01623.06 ▼60.1156.18 ▲4.62
Media Library /wp-admin/upload.php1,395 ▲74.21 ▼0.0797.52 ▼8.5043.06 ▼2.44
Increase Maximum Upload File Size /wp-admin/options-general.php?page=upload-max-file-size1,5942.3333.2251.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP62838211,204
JavaScript5241180937
CSS26512734
SVG909214
Sass10010

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 code0.39
Average class complexity40.00
▷ Minimum class complexity12.00
▷ Maximum class complexity68.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods75
▷ Static methods2837.33%
▷ Public methods5877.33%
▷ Protected methods1621.33%
▷ Private methods11.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants330.00%
▷ Class constants770.00%
▷ Public constants7100.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
FileSize - originalSize - compressedSavings
assets/img/ordi.png47.36KB13.82KB▼ 70.82%