68% woo-quick-assign-sku-images

Code Review | Quick Assign SKU Images for WooCommerce

WordPress plugin Quick Assign SKU Images for WooCommerce scored68%from 54 tests.

About plugin

  • Plugin page: woo-quick-assign-...
  • Plugin version: 1.1.6
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.6
  • WordPress version: 6.3.1
  • First release: Aug 27, 2019
  • Latest release: Jun 14, 2021
  • Number of updates: 23
  • Update frequency: every 29.0 days
  • Top authors: extremeidea (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,423 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Quick Assign SKU Images for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.44 ▼0.93
Dashboard /wp-admin3.31 ▼0.0452.04 ▼7.07
Posts /wp-admin/edit.php3.36 ▲0.0044.36 ▼3.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.95 ▼12.20
Media Library /wp-admin/upload.php3.23 ▲0.0033.78 ▼1.57

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 194 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Quick Assign SKU Images for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.47 ▲0.091.83 ▲0.1238.00 ▼3.26
Dashboard /wp-admin2,206 ▲184.88 ▼0.21111.53 ▲10.6443.61 ▼3.98
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0139.65 ▲1.7636.86 ▲1.53
Add New Post /wp-admin/post-new.php1,514 ▼817.61 ▼5.77643.01 ▼3.6455.63 ▲2.09
Media Library /wp-admin/upload.php1,385 ▼04.16 ▼0.0494.21 ▼8.3141.72 ▼1.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 12× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/woo-quick-assign-sku-images/vendor/symfony/http-foundation/Tests/Fixtures/response-functional/cookie_raw_urlencode.php
    • > /wp-content/plugins/woo-quick-assign-sku-images/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/Fixtures/empty_destroys.php
    • > /wp-content/plugins/woo-quick-assign-sku-images/vendor/symfony/http-foundation/Tests/Fixtures/response-functional/cookie_samesite_lax.php
    • > /wp-content/plugins/woo-quick-assign-sku-images/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/Fixtures/storage.php
    • > /wp-content/plugins/woo-quick-assign-sku-images/vendor/symfony/http-foundation/Tests/Fixtures/response-functional/cookie_urlencode.php
    • > /wp-content/plugins/woo-quick-assign-sku-images/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/Fixtures/with_cookie_and_session.php
    • > /wp-content/plugins/woo-quick-assign-sku-images/vendor/symfony/http-foundation/Tests/Fixtures/response-functional/cookie_samesite_strict.php
    • > /wp-content/plugins/woo-quick-assign-sku-images/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/Fixtures/read_only.php
    • > /wp-content/plugins/woo-quick-assign-sku-images/vendor/symfony/http-foundation/Tests/Fixtures/response-functional/invalid_cookie_name.php
    • > /wp-content/plugins/woo-quick-assign-sku-images/vendor/symfony/http-foundation/Tests/Session/Storage/Handler/Fixtures/regenerate.php
  • 110× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-quick-assign-sku-images/vendor/symfony/http-foundation/Tests/Session/Flash/FlashBagTest.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\HttpFoundation\\Tests\\ResponseTestCase' not found in wp-content/plugins/woo-quick-assign-sku-images/vendor/symfony/http-foundation/Tests/ResponseTest.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\SessionStorageInterface' not found in wp-content/plugins/woo-quick-assign-sku-images/vendor/symfony/http-foundation/Session/Storage/MockArraySessionStorage.php:28
    • > PHP Warning
      include(wp-content/plugins/woo-quick-assign-sku-images/vendor/composer/../symfony/http-foundation/Session/SessionUtils.php): failed to open stream: No such file or directory in wp-content/plugins/woo-quick-assign-sku-images/vendor/composer/ClassLoader.php on line 444
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-quick-assign-sku-images/vendor/symfony/http-foundation/Tests/Session/SessionTest.php:28
    • > PHP Warning
      include(wp-content/plugins/woo-quick-assign-sku-images/vendor/composer/../symfony/http-foundation/Session/SessionUtils.php): failed to open stream: No such file or directory in wp-content/plugins/woo-quick-assign-sku-images/vendor/composer/ClassLoader.php on line 444
    • > PHP Fatal error
      require_once(): Failed opening required 'lib/byte_safe_strings.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-quick-assign-sku-images/vendor/paragonie/random_compat/psalm-autoload.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-quick-assign-sku-images/vendor/symfony/http-foundation/Tests/Session/Storage/PhpBridgeSessionStorageTest.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-quick-assign-sku-images/vendor/symfony/http-foundation/Tests/Session/Attribute/AttributeBagTest.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-quick-assign-sku-images/vendor/symfony/http-foundation/Tests/Session/Attribute/NamespacedAttributeBagTest.php:22

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: add product images in bulk

woo-quick-assign-sku-images/woo-quick-assign-sku-images.php Passed 13 tests

The principal PHP file in "Quick Assign SKU Images for WooCommerce" v. 1.1.6 is loaded by WordPress automatically on each request
63 characters long description:
Plugin helps you mass assign images for products in simple way.

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
It is important to fix the following items
  • Do not include executable or dangerous files in your plugin
    • .xlsm - Excel Macro-Enabled Workbook in Microsoft Excel
      • wp-content/plugins/woo-quick-assign-sku-images/vendor/symfony/http-foundation/Tests/File/Fixtures/case-sensitive-mime-type.xlsm
19,130 lines of code in 165 files:
LanguageFilesBlank linesComment linesLines of code
PHP1473,9376,82018,193
JSON600382
XML4200259
Markdown5690214
Pascal2417479
Bourne Shell1203

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity238.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces25
Interfaces9
Traits0
Classes119
▷ Abstract classes32.52%
▷ Concrete classes11697.48%
▷ Final classes32.59%
Methods1,436
▷ Static methods936.48%
▷ Public methods1,29790.32%
▷ Protected methods956.62%
▷ Private methods443.06%
Functions81
▷ Named functions4353.09%
▷ Anonymous functions3846.91%
Constants113
▷ Global constants43.54%
▷ Class constants10996.46%
▷ Public constants109100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected