84% upload-larger-plugins

Code Review | Upload Larger Plugins

WordPress plugin Upload Larger Plugins scored 84% from 54 tests.

About plugin

  • Plugin page: upload-larger-plu...
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.3
  • WordPress version: 6.3.1
  • First release: May 21, 2014
  • Latest release: Jul 19, 2023
  • Number of updates: 42
  • Update frequency: every 79.7 days
  • Top authors: DavidAnderson (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

10,000+ active / 112,375 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.86ms] Passed 4 tests

This is a short check of server-side resources used by Upload Larger Plugins
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0735.78 ▼4.35
Dashboard /wp-admin3.37 ▲0.0742.08 ▼4.26
Posts /wp-admin/edit.php3.42 ▲0.0643.44 ▼16.88
Add New Post /wp-admin/post-new.php5.95 ▲0.06126.86 ▲2.04
Media Library /wp-admin/upload.php3.30 ▲0.0644.45 ▲5.01

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Upload Larger Plugins
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.42 ▲0.211.66 ▼0.5837.80 ▼7.98
Dashboard /wp-admin2,203 ▲184.86 ▼0.01120.96 ▼69.3650.56 ▼35.22
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0340.51 ▼6.6237.18 ▼6.46
Add New Post /wp-admin/post-new.php1,411 ▼25717.80 ▼4.49652.13 ▼147.0069.39 ▲8.85
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.04136.58 ▼0.0856.96 ▼2.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/upload-larger-plugins/upload-larger-plugins.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 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
4 plugin tags: upload file limit, plugins installation, plupload, upload larger plugins

upload-larger-plugins/upload-larger-plugins.php Passed 13 tests

This is the main PHP file of "Upload Larger Plugins" version 1.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
63 characters long description:
Allow plugins larger than the PHP-defined limit to be uploaded.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin328 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP185115249
JavaScript120679

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity54.00
▷ Minimum class complexity54.00
▷ Maximum class complexity54.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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