78% file-limits-uploads

Code Review | File Limits Uploads

WordPress plugin File Limits Uploads scored 78% from 54 tests.

About plugin

  • Plugin page: file-limits-uploads
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 13, 2023
  • Latest release: Jan 13, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: vijayrathod245 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 170 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.46ms] Passed 4 tests

Analyzing server-side resources used by File Limits Uploads
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0337.19 ▼6.88
Dashboard /wp-admin3.32 ▲0.0250.42 ▲0.63
Posts /wp-admin/edit.php3.37 ▲0.0249.29 ▼0.67
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.17 ▼14.91
Media Library /wp-admin/upload.php3.25 ▲0.0239.20 ▲3.57

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by File Limits Uploads
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲17113.64 ▼0.664.87 ▲2.9340.04 ▼4.42
Dashboard /wp-admin2,223 ▲385.84 ▲0.8799.56 ▼9.4942.57 ▼1.59
Posts /wp-admin/edit.php2,109 ▲202.00 ▲0.0134.80 ▼1.3731.59 ▼3.07
Add New Post /wp-admin/post-new.php1,531 ▲1717.72 ▲0.19677.79 ▼9.6357.66 ▲0.33
Media Library /wp-admin/upload.php1,402 ▲144.19 ▲0.0394.33 ▼8.4941.61 ▼2.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/file-limits-uploads/public/partials/file-limits-uploads-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'File_Limits_Uploads_Admin' not found in wp-content/plugins/file-limits-uploads/admin/partials/file-limits-uploads-admin-display.php:24

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Select Maximum Upload File Size And Maximum Execution Time - Backend.)
You can look at the official readme.txt

file-limits-uploads/file-limits-uploads.php Passed 13 tests

This is the main PHP file of "File Limits Uploads" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
70 characters long description:
With this plugin option, you can increase the file upload size easily.

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 detected318 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12127555272
CSS20840
JavaScript24546

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.43
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods30
▷ Static methods310.00%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin