78% woo-feed-slowfashion

Code Review | WooCommerce Feed Slowfashion

WordPress plugin WooCommerce Feed Slowfashion scored78%from 54 tests.

About plugin

  • Plugin page: woo-feed-slowfashion
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Oct 19, 2018
  • Latest release: Jul 28, 2021
  • Number of updates: 6
  • Update frequency: every 168.8 days
  • Top authors: Snapshot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /785 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
Installer ran successfully

Server metrics [RAM: ▲0.31MB] [CPU: ▼1.71ms] Passed 4 tests

A check of server-side resources used by WooCommerce Feed Slowfashion
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3638.87 ▼2.44
Dashboard /wp-admin3.65 ▲0.3546.68 ▲0.10
Posts /wp-admin/edit.php3.70 ▲0.3449.90 ▲3.42
Add New Post /wp-admin/post-new.php6.17 ▲0.2888.06 ▼4.26
Media Library /wp-admin/upload.php3.51 ▲0.2837.91 ▼0.23

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Feed Slowfashion
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.15 ▲0.141.67 ▼0.1141.88 ▼6.07
Dashboard /wp-admin2,198 ▲435.61 ▼0.0483.22 ▼15.0438.87 ▼0.26
Posts /wp-admin/edit.php2,079 ▼241.99 ▼0.0433.90 ▼6.4732.05 ▼0.81
Add New Post /wp-admin/post-new.php1,526 ▼223.02 ▼0.22591.71 ▼34.3360.45 ▼5.76
Media Library /wp-admin/upload.php1,397 ▼34.21 ▼0.0197.52 ▼14.9941.01 ▼7.26

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/woo-feed-slowfashion/templates/admin/select-list.php
    • > /wp-content/plugins/woo-feed-slowfashion/templates/admin/product-tab.php
    • > /wp-content/plugins/woo-feed-slowfashion/templates/admin/button.php
    • > /wp-content/plugins/woo-feed-slowfashion/templates/admin/product-write-panel.php
  • 30× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: tab_id in wp-content/plugins/woo-feed-slowfashion/templates/admin/product-tab.php on line 10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/woo-feed-slowfashion/templates/admin/select-list.php on line 15
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/woo-feed-slowfashion/templates/admin/select-list.php on line 15
    • > PHP Warning
      current() expects parameter 1 to be array, null given in wp-content/plugins/woo-feed-slowfashion/templates/admin/select-list.php on line 17
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/woo-feed-slowfashion/templates/admin/select-list.php on line 32
    • > PHP Notice
      Undefined variable: label in wp-content/plugins/woo-feed-slowfashion/templates/admin/product-tab.php on line 10
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/woo-feed-slowfashion/templates/admin/select-list.php on line 17
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/woo-feed-slowfashion/templates/admin/select-list.php on line 32
    • > PHP Notice
      Undefined variable: identifier in wp-content/plugins/woo-feed-slowfashion/classes/vendor/woocommerce-extended-categories/templates/select-list-add.php on line 10
    • > PHP Notice
      Undefined variable: groups in wp-content/plugins/woo-feed-slowfashion/templates/admin/product-write-panel.php on line 10

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: xml, slowfashion, integracja, woocommerce

woo-feed-slowfashion/woocommerce-xml-integration-gielda.php 92% from 13 tests

The principal PHP file in "WooCommerce Feed Slowfashion" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-feed-slowfashion.php" instead of "woocommerce-xml-integration-gielda.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,697 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP224627321,642
CSS24033
JavaScript15319
XML1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity21.40
▷ Minimum class complexity2.00
▷ Maximum class complexity61.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes330.00%
▷ Concrete classes770.00%
▷ Final classes114.29%
Methods97
▷ Static methods88.25%
▷ Public methods4445.36%
▷ Protected methods2626.80%
▷ Private methods2727.84%
Functions8
▷ Named functions112.50%
▷ Anonymous functions787.50%
Constants37
▷ Global constants00.00%
▷ Class constants37100.00%
▷ Public constants37100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin