84% multi-image-upload

Code Review | Multi Image Upload

WordPress plugin Multi Image Upload scored84%from 54 tests.

About plugin

  • Plugin page: multi-image-upload
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.1.1
  • WordPress version: 6.3.1
  • First release: Nov 14, 2013
  • Latest release: Apr 4, 2019
  • Number of updates: 27
  • Update frequency: every 72.9 days
  • Top authors: tahiryasin (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

700+ active /16,109 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Multi Image Upload
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.41 ▼1.21
Dashboard /wp-admin3.32 ▼0.0250.76 ▼8.84
Posts /wp-admin/edit.php3.37 ▲0.0246.78 ▲2.24
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.54 ▼4.59
Media Library /wp-admin/upload.php3.25 ▲0.0233.81 ▼0.35

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Multi Image Upload: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.29 ▼0.061.57 ▼0.0335.33 ▼4.16
Dashboard /wp-admin2,195 ▲175.65 ▲0.0393.15 ▼4.8941.87 ▲3.03
Posts /wp-admin/edit.php2,100 ▼02.09 ▲0.1038.78 ▲1.1935.43 ▼1.39
Add New Post /wp-admin/post-new.php6,226 ▲4,70026.14 ▲2.42881.54 ▲223.2455.23 ▼6.75
Media Library /wp-admin/upload.php1,394 ▼64.22 ▲0.04100.29 ▼9.7442.37 ▼7.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/multi-image-upload/multi-image-upload.php:64

User-side errors Passed 1 test

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

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: metabox, upload, multi, image

multi-image-upload/multi-image-upload.php Passed 13 tests

The main PHP file in "Multi Image Upload" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
74 characters long description:
This plugin adds a meta box to upload multiple images for posts and pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected169 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13363109
JavaScript17960

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
There were not PNG files found in your plugin