94% advanced-multiple-image-upload

Code Review | Advanced Multiple Image Upload

WordPress plugin Advanced Multiple Image Upload scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-multiple...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 5.9.2
  • First release: Jun 29, 2017
  • Latest release: Jun 29, 2017
  • Number of updates: 19
  • Update frequency: every 0.7 days
  • Top authors: rakeshisro331 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 675 total downloads


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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.92MB] [CPU: ▼317.25ms] Passed 4 tests

Analyzing server-side resources used by Advanced Multiple Image Upload
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0252.80 ▼25.83
Dashboard /wp-admin3.42 ▲0.0134.92 ▼0.26
Posts /wp-admin/edit.php3.66 ▲0.0145.40 ▲4.70
Add New Post /wp-admin/post-new.php3.24 ▼3.7328.74 ▼1,247.60
Media Library /wp-admin/upload.php3.31 ▲0.0143.00 ▲18.04

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Multiple Image Upload
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,767 ▲4516.21 ▲0.906.89 ▼0.702.27 ▼0.04
Dashboard /wp-admin2,895 ▲356.14 ▼0.02119.73 ▼26.76159.81 ▼1.58
Posts /wp-admin/edit.php2,694 ▲33.36 ▲0.1379.14 ▲13.95143.75 ▲0.00
Add New Post /wp-admin/post-new.php1,708 ▼4417.49 ▼4.17426.92 ▼31.62169.87 ▲0.89
Media Library /wp-admin/upload.php1,698 ▲35.51 ▲0.00150.95 ▼0.92189.53 ▼41.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

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)
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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/advanced-multiple-image-upload/advanced_multiple_image_upload.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

advanced-multiple-image-upload/advanced_multiple_image_upload.php 92% from 13 tests

The main file in "Advanced Multiple Image Upload" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-multiple-image-upload.php" instead of "advanced_multiple_image_upload.php")

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
There were no executable files found in this plugin105 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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
No PNG images were found in this plugin