73% tuxedo-big-file-uploads

Code Review | Big File Uploads - Increase Maximum File Upload Size

WordPress plugin Big File Uploads - Increase Maximum File Upload Size scored73%from 54 tests.

About plugin

  • Plugin page: tuxedo-big-file-u...
  • Plugin version: 2.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4
  • WordPress version: 6.3.1
  • First release: Jan 8, 2016
  • Latest release: Oct 26, 2023
  • Number of updates: 24
  • Update frequency: every 119.5 days
  • Top authors: andtrev (54.17%)uglyrobot (50%)

Code review

54 tests

User reviews

236 reviews

Install metrics

80,000+ active /611,889 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.48ms] Passed 4 tests

This is a short check of server-side resources used by Big File Uploads - Increase Maximum File Upload Size
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.18 ▼2.30
Dashboard /wp-admin3.34 ▲0.0444.06 ▼1.11
Posts /wp-admin/edit.php3.39 ▲0.0441.08 ▼8.06
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.19 ▼2.46
Media Library /wp-admin/upload.php3.27 ▲0.0444.87 ▲11.14
Big File Uploads /wp-admin/options-general.php?page=big_file_uploads3.3747.75

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Big File Uploads - Increase Maximum File Upload Size
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.39 ▼0.081.65 ▲0.0144.23 ▲3.29
Dashboard /wp-admin2,202 ▲225.63 ▼0.0282.97 ▼4.2038.51 ▼0.00
Posts /wp-admin/edit.php2,101 ▼21.98 ▲0.0335.14 ▼6.2133.38 ▼9.96
Add New Post /wp-admin/post-new.php1,691 ▲15621.00 ▼2.04658.12 ▼64.1247.35 ▼21.17
Media Library /wp-admin/upload.php1,462 ▲594.33 ▲0.11112.34 ▲9.4266.12 ▲20.98
Big File Uploads /wp-admin/options-general.php?page=big_file_uploads1,6494.0987.0993.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/tuxedo-big-file-uploads/uninstall.php+34
    rmdir(wp-content/bfu-temp): No such file or directory
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tuxedo-big-file-uploads/templates/scan-results.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tuxedo-big-file-uploads/templates/scan-start.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tuxedo-big-file-uploads/templates/modal-subscribe.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tuxedo-big-file-uploads/templates/settings-filetypes.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tuxedo-big-file-uploads/templates/modal-scan.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/tuxedo-big-file-uploads/templates/footer.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/tuxedo-big-file-uploads/templates/modal-upgrade.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/tuxedo-big-file-uploads/templates/settings.php:2

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: upload limit, file upload, post max size, max upload file size, files uploader...

tuxedo-big-file-uploads/tuxedo_big_file_uploads.php 77% from 13 tests

Analyzing the main PHP file in "Big File Uploads - Increase Maximum File Upload Size" version 2.1.2
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tuxedo-big-file-uploads.php" instead of "tuxedo_big_file_uploads.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 211 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Success! There were no dangerous files found in this plugin24,184 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
CSS73,0644513,225
JavaScript72,0621,7017,934
PHP122637851,574
HTML1680986
SVG301465

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity69.67
▷ Minimum class complexity22.00
▷ Maximum class complexity161.00
Average method complexity4.68
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods56
▷ Static methods23.57%
▷ Public methods3969.64%
▷ Protected methods1425.00%
▷ Private methods35.36%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/bfu-logo-sm.png5.02KB5.31KB0.00%