77% increase-maximum-upload-file-size-limit

Code Review | Increase Maximum Upload file Size Limit

WordPress plugin Increase Maximum Upload file Size Limit scored77%from 54 tests.

About plugin

  • Plugin page: increase-maximum-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 26, 2022
  • Latest release: Aug 20, 2023
  • Number of updates: 3
  • Update frequency: every 99.3 days
  • Top authors: Litonice13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,758 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.92MB] [CPU: ▲1,556.29ms] 50% from 4 tests

A check of server-side resources used by Increase Maximum Upload file Size Limit
Please fix the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 1,501.69ms on /wp-admin/admin.php?page=increase-maximum-upload-file-size-limit-recommended-plugins)
  • Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 1,556.29ms on /wp-admin/admin.php?page=increase-maximum-upload-file-size-limit-recommended-plugins)
PageMemory (MB)CPU Time (ms)
Home /4.29 ▲0.831,597.95 ▲1,557.61
Dashboard /wp-admin4.39 ▲1.091,718.63 ▲1,668.56
Posts /wp-admin/edit.php4.31 ▲0.961,548.04 ▲1,499.02
Add New Post /wp-admin/post-new.php6.82 ▲0.931,616.48 ▲1,499.95
Media Library /wp-admin/upload.php4.19 ▲0.961,745.69 ▲1,710.75
Upload Size /wp-admin/admin.php?page=increase-maximum-upload-file-size-limit-settings4.261,546.54
Recommended /wp-admin/admin.php?page=increase-maximum-upload-file-size-limit-recommended-plugins4.191,501.69

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: no new tables, 14 new options
New WordPress options
can_compress_scripts
jltiusl_activation_time
widget_theysaidso_widget
db_upgraded
jltiusl_sheet_promo_data
widget_recent-posts
jltiusl_notice_subscribe
jltiusl_notice_ask_for_rating
jltiusl_sheet_promo_data_hash
jltiusl
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Increase Maximum Upload file Size Limit
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,103 ▲35714.91 ▲0.802.08 ▲0.5439.46 ▼3.50
Dashboard /wp-admin2,506 ▲3296.44 ▲0.79109.05 ▲23.1642.73 ▼1.62
Posts /wp-admin/edit.php2,389 ▲2863.60 ▲1.6052.38 ▲13.5135.97 ▲2.57
Add New Post /wp-admin/post-new.php1,801 ▲27320.47 ▼2.86617.85 ▼43.2556.89 ▲2.98
Media Library /wp-admin/upload.php1,529 ▲1294.32 ▲0.1683.79 ▼23.6242.40 ▼7.56
Upload Size /wp-admin/admin.php?page=increase-maximum-upload-file-size-limit-settings1,1473.4550.7928.10
Recommended /wp-admin/admin.php?page=increase-maximum-upload-file-size-limit-recommended-plugins1,4653.1544.3868.93

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 14 options in the database
    • jltiusl_notice_what_we_collect
    • theysaidso_admin_options
    • jltiusl_notice_subscribe
    • jltiusl_notice_ask_for_rating
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • jltiusl_sheet_promo_data
    • ...

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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: Class 'JLTIUSL\\Libs\\RowLinks' not found in wp-content/plugins/increase-maximum-upload-file-size-limit/Inc/Classes/Row_Links.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTIUSL\\Libs\\Recommended' not found in wp-content/plugins/increase-maximum-upload-file-size-limit/Inc/Classes/Recommended_Plugins.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTIUSL\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/increase-maximum-upload-file-size-limit/Inc/Classes/Notifications/Ask_For_Rating.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/increase-maximum-upload-file-size-limit/increase-maximum-upload-file-size-limit.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'JLTIUSL\\Inc\\Classes\otifications\\Model\\Popup' not found in wp-content/plugins/increase-maximum-upload-file-size-limit/Inc/Classes/Notifications/Upgrade_Notice.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'JLTIUSL\\Libs\\Upgrader' not found in wp-content/plugins/increase-maximum-upload-file-size-limit/Inc/Classes/Upgrade_Plugin.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTIUSL\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/increase-maximum-upload-file-size-limit/Inc/Classes/Notifications/Subscribe.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'JLTIUSL\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/increase-maximum-upload-file-size-limit/Inc/Classes/Notifications/What_We_Collect.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=increase-maximum-upload-file-size-limit-settings
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=increase-maximum-upload-file-size-limit-settings 412 The specified value "Title" cannot be parsed, or is out of range.
    • > GET request to /wp-admin/admin.php?page=increase-maximum-upload-file-size-limit-recommended-plugins
    • > Network (severe)
    https://ps.w.org/ultimate-blocks-for-gutenberg/assets/icon-128x128.png - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (Increase maximum file upload size)
Please take inspiration from this readme.txt

increase-maximum-upload-file-size-limit/increase-maximum-upload-file-size-limit.php 85% from 13 tests

The primary PHP file in "Increase Maximum Upload file Size Limit" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages/")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin4,539 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP399311,7283,779
CSS311814606
JavaScript2159154

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity12.73
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces9
Interfaces0
Traits2
Classes28
▷ Abstract classes414.29%
▷ Concrete classes2485.71%
▷ Final classes14.17%
Methods229
▷ Static methods3213.97%
▷ Public methods22698.69%
▷ Protected methods10.44%
▷ Private methods20.87%
Functions10
▷ Named functions550.00%
▷ Anonymous functions550.00%
Constants16
▷ Global constants1593.75%
▷ Class constants16.25%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected