84% cs-multiple-image-import

Code Review | CS Multiple Image Import

WordPress plugin CS Multiple Image Import scored 84% from 54 tests.

About plugin

  • Plugin page: cs-multiple-image...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: Apr 1, 2018
  • Latest release: Apr 1, 2018
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: catchsquare (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 757 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.09ms] Passed 4 tests

Analyzing server-side resources used by CS Multiple Image Import
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.26 ▼1.67
Dashboard /wp-admin3.37 ▲0.0747.30 ▼0.38
Posts /wp-admin/edit.php3.49 ▲0.1345.37 ▼4.27
Add New Post /wp-admin/post-new.php5.95 ▲0.0789.38 ▼10.03
Media Library /wp-admin/upload.php3.29 ▲0.0735.01 ▲1.93

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

CS Multiple Image Import: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲8413.33 ▼0.974.72 ▲2.3845.93 ▼0.62
Dashboard /wp-admin2,222 ▲345.89 ▲0.95103.59 ▼6.5637.38 ▼11.73
Posts /wp-admin/edit.php2,105 ▲162.03 ▼0.0139.31 ▼2.0433.04 ▼3.63
Add New Post /wp-admin/post-new.php1,555 ▲1218.56 ▼4.81638.17 ▼51.4064.70 ▲3.71
Media Library /wp-admin/upload.php1,398 ▲74.20 ▼0.0598.07 ▼4.9241.60 ▼2.02

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/cs-multiple-image-import/includes/classes/CSMIISpreadsheetReaderXLSX.php on line 456
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/cs-multiple-image-import/includes/classes/CSMIISpreadsheetReaderXLSX.php on line 581
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/cs-multiple-image-import/includes/classes/CSMIISpreadsheetReaderXLSX.php on line 1049
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/cs-multiple-image-import/includes/classes/CSMIISpreadsheetReaderXLSX.php on line 1083

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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: The official readme.txt might help

cs-multiple-image-import/cs-multiple-image-import.php 92% from 13 tests

This is the main PHP file of "CS Multiple Image Import" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,847 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP73085961,847

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity56.83
▷ Minimum class complexity18.00
▷ Maximum class complexity157.00
Average method complexity6.15
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods65
▷ Static methods34.62%
▷ Public methods6193.85%
▷ Protected methods00.00%
▷ Private methods46.15%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants635.29%
▷ Class constants1164.71%
▷ Public constants11100.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 were not PNG files found in your plugin