78% themx-maximum-upload-file-size

Code Review | Themx Maximum Upload File Size | Increase Maximum Upload File Size

WordPress plugin Themx Maximum Upload File Size | Increase Maximum Upload File Size scored78%from 54 tests.

About plugin

  • Plugin page: themx-maximum-upl...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 11, 2022
  • Latest release: Aug 10, 2023
  • Number of updates: 6
  • Update frequency: every 71.0 days
  • Top authors: themexplosion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /7,478 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.99ms] Passed 4 tests

Analyzing server-side resources used by Themx Maximum Upload File Size | Increase Maximum Upload File Size
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.08 ▼3.13
Dashboard /wp-admin3.35 ▲0.0050.35 ▼13.57
Posts /wp-admin/edit.php3.46 ▲0.1047.89 ▼1.15
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.45 ▼18.11
Media Library /wp-admin/upload.php3.27 ▲0.0438.30 ▲1.42
Increase Maximum Upload Limit /wp-admin/upload.php?page=themx_maximum_upload_file_size3.2637.93

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Themx Maximum Upload File Size | Increase Maximum Upload File Size
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.28 ▼0.272.19 ▲0.5047.35 ▲6.19
Dashboard /wp-admin2,209 ▲325.64 ▲0.0783.34 ▼11.7339.83 ▼5.67
Posts /wp-admin/edit.php2,111 ▲82.01 ▲0.0336.40 ▼7.4233.61 ▼4.32
Add New Post /wp-admin/post-new.php1,545 ▲1718.12 ▼4.95645.56 ▼31.4873.64 ▲8.71
Media Library /wp-admin/upload.php1,414 ▲144.16 ▲0.02102.47 ▼13.1243.27 ▼2.44
Increase Maximum Upload Limit /wp-admin/upload.php?page=themx_maximum_upload_file_size9561.9923.4073.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/themx-maximum-upload-file-size/admin/tmufs-helper.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/themx-maximum-upload-file-size/admin/templates/class-tmufs-template.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themx-maximum-upload-file-size/admin/class-tmufs-admin.php:202

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/upload.php?page=themx_maximum_upload_file_size
    • > Network (severe)
    wp-content/plugins/themx-maximum-upload-file-size/assets/js/admin.js?ver=1.0.3 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: upload file size, increase maximum execution time, upload_max_filesize, increase upload limit, max upload file size...

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

"Themx Maximum Upload File Size | Increase Maximum Upload File Size" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected277 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP466134276
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.00
▷ Minimum class complexity3.00
▷ Maximum class complexity13.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods17
▷ Static methods1270.59%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin