84% wp-maximum-upload-file-size

Code Review | Increase Maximum Upload File Size | Increase Execution Time

WordPress plugin Increase Maximum Upload File Size | Increase Execution Time scored84%from 54 tests.

About plugin

  • Plugin page: wp-maximum-upload...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 16, 2019
  • Latest release: Sep 23, 2023
  • Number of updates: 32
  • Update frequency: every 45.9 days
  • Top authors: codepopular (100%)

Code review

54 tests

User reviews

47 reviews

Install metrics

50,000+ active /514,950 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.38MB] [CPU: ▼2.88ms] Passed 4 tests

Server-side resources used by Increase Maximum Upload File Size | Increase Execution Time
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.4144.14 ▼0.91
Dashboard /wp-admin4.17 ▲0.821,266.60 ▲1,201.54
Posts /wp-admin/edit.php3.76 ▲0.4048.38 ▲2.82
Add New Post /wp-admin/post-new.php6.25 ▲0.3688.32 ▼12.39
Media Library /wp-admin/upload.php3.57 ▲0.3440.76 ▼1.06
Increase Upload Limit /wp-admin/upload.php?page=upload_max_file_size3.5943.70

Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Increase Maximum Upload File Size | Increase Execution Time: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,966 ▲19513.24 ▼1.451.77 ▼0.3720.11 ▼21.90
Dashboard /wp-admin2,369 ▲1814.86 ▼1.01104.42 ▼1.5854.55 ▲13.44
Posts /wp-admin/edit.php2,128 ▲421.99 ▼0.1833.94 ▼2.3831.79 ▼3.62
Add New Post /wp-admin/post-new.php1,549 ▼11823.09 ▲0.66649.39 ▼50.0761.60 ▲12.81
Media Library /wp-admin/upload.php1,421 ▲304.32 ▲0.09100.67 ▼3.5945.04 ▲0.48
Increase Upload Limit /wp-admin/upload.php?page=upload_max_file_size1,2122.1529.5566.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
  • 12× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-maximum-upload-file-size/inc/codepopular-promotion.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-maximum-upload-file-size/inc/codepopular-plugin-suggest.php:23
    • > PHP Warning
      require_once(wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-maximum-upload-file-size/inc/class-wmufs-i18n.php:11
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-maximum-upload-file-size/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-maximum-upload-file-size/admin/class-wmufs-admin.php:188
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/wp-maximum-upload-file-size/inc/class-wmufs-helper.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-maximum-upload-file-size/admin/templates/class-wmufs-template.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_max_upload_size() in wp-content/plugins/wp-maximum-upload-file-size/inc/class-wmufs-chunk-files.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url_raw() in wp-content/plugins/wp-maximum-upload-file-size/admin/templates/class-wmufs-sidebar.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: max upload file size, upload_max_filesize, post max size, increase upload limit, increase file size limit...

wp-maximum-upload-file-size/wp-maximum-upload-file-size.php 92% from 13 tests

The main PHP file in "Increase Maximum Upload File Size | Increase Execution Time" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("3.0" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin4,071 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP268171,3303,106
CSS2177283
Markdown1820255
Sass1750161
JSON300113
XML161195
YAML16032
JavaScript110026

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity29.38
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity3.34
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods159
▷ Static methods3723.27%
▷ Public methods12276.73%
▷ Protected methods63.77%
▷ Private methods3119.50%
Functions15
▷ Named functions1280.00%
▷ Anonymous functions320.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.26MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/unlimited-theme-addon.png22.26KB10.71KB▼ 51.88%
assets/images/dostart.png55.95KB55.92KB0.05%
assets/images/best-elementor-countdown-timer.png183.63KB61.08KB▼ 66.74%