94% wpsimpletools-upload-limit

Code Review | Manage Upload Limit

WordPress plugin Manage Upload Limit scored 94% from 54 tests.

About plugin

  • Plugin page: wpsimpletools-upl...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.0.0+
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jul 24, 2018
  • Latest release: Apr 14, 2021
  • Number of updates: 16
  • Update frequency: every 62.2 days
  • Top authors: wordpresssimpletools (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 584 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼142.28ms] Passed 4 tests

Server-side resources used by Manage Upload Limit
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1341.66 ▲20.27
Dashboard /wp-admin3.08 ▲0.0249.01 ▼2.65
Posts /wp-admin/edit.php3.13 ▲0.0251.07 ▲10.88
Add New Post /wp-admin/post-new.php5.43 ▼0.0082.64 ▼578.48
Media Library /wp-admin/upload.php3.02 ▲0.0135.47 ▲1.14
Upload limit /wp-admin/options-general.php?page=wpst_ul_manage_upload_limit2.9930.50

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Manage Upload Limit
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.90 ▼0.1411.32 ▲0.8650.75 ▲1.96
Dashboard /wp-admin2,972 ▲385.89 ▼0.01156.60 ▲1.92120.09 ▼3.33
Posts /wp-admin/edit.php2,744 ▲52.70 ▼0.0071.70 ▲2.5898.48 ▲6.93
Add New Post /wp-admin/post-new.php1,686 ▲318.74 ▼0.06401.42 ▲3.43111.80 ▼1.60
Media Library /wp-admin/upload.php1,812 ▲55.04 ▲0.01162.88 ▲8.09124.70 ▲5.49
Upload limit /wp-admin/options-general.php?page=wpst_ul_manage_upload_limit1,0522.0954.8979.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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 no errors were found, this is by no means 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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wpsimpletools-upload-limit/wpsimpletools-upload-limit.php

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: max upload size, upload limit, upload size

wpsimpletools-upload-limit/wpsimpletools-upload-limit.php Passed 13 tests

The main PHP file in "Manage Upload Limit" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
51 characters long description:
Sets the maximum upload size ammitted in WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin62 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1201162

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin