84% large-images-uploader

Code Review | Large Images Uploader

WordPress plugin Large Images Uploader scored84%from 54 tests.

About plugin

  • Plugin page: large-images-uplo...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Aug 19, 2022
  • Latest release: Aug 22, 2023
  • Number of updates: 6
  • Update frequency: every 63.0 days
  • Top authors: grandplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /601 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.24MB] [CPU: ▼3.10ms] Passed 4 tests

A check of server-side resources used by Large Images Uploader
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2336.13 ▼0.76
Dashboard /wp-admin3.59 ▲0.2950.82 ▼0.60
Posts /wp-admin/edit.php3.64 ▲0.2851.55 ▲5.40
Add New Post /wp-admin/post-new.php6.11 ▲0.2282.52 ▼7.62
Media Library /wp-admin/upload.php3.45 ▲0.2234.21 ▼3.41
Large Images Uploader /wp-admin/upload.php?page=large-images-uploader-settings-tab-uploader3.4333.81

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Large Images Uploader
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3213.94 ▼0.331.66 ▼0.1641.96 ▼4.23
Dashboard /wp-admin2,199 ▲195.64 ▼0.0382.80 ▼7.6840.14 ▼2.14
Posts /wp-admin/edit.php2,104 ▲72.02 ▲0.0035.25 ▼1.1435.74 ▲0.42
Add New Post /wp-admin/post-new.php1,531 ▼623.04 ▲4.79657.75 ▲15.1050.20 ▼15.44
Media Library /wp-admin/upload.php1,404 ▲74.20 ▲0.0295.10 ▼0.3443.15 ▲0.97
Large Images Uploader /wp-admin/upload.php?page=large-images-uploader-settings-tab-uploader1,4492.3247.6053.04

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 fix the following
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/large-images-uploader/templates/images-uploader.php on line 7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Image_Editor' not found in wp-content/plugins/large-images-uploader/includes/WP_Large_Images_Uploader.php:4
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/large-images-uploader/templates/images-uploader.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/large-images-uploader/templates/images-uploader.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to a member function review_notice() on null in wp-content/plugins/large-images-uploader/templates/images-uploader.php:11
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/large-images-uploader/templates/images-uploader.php on line 7

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: You can take inspiration from this readme.txt

large-images-uploader/large-images-uploader.php 92% from 13 tests

"Large Images Uploader" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,084 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP151996751,076
CSS4054
JavaScript40164

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity16.14
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods76
▷ Static methods2330.26%
▷ Public methods6990.79%
▷ Protected methods00.00%
▷ Private methods79.21%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
core/assets/images/wp-watermark-images.png38.45KB14.82KB▼ 61.45%
core/assets/images/woo-quick-view-and-buy-now.png23.32KB8.67KB▼ 62.81%
core/assets/images/wp-paypal-subscriptions.png17.91KB7.09KB▼ 60.39%
core/assets/images/wp-watermark-pdf.png30.70KB10.89KB▼ 64.53%
core/assets/images/image-sizes-controller.png13.06KB5.90KB▼ 54.82%