58% wc-trendyol

Code Review | Trendyol Pazaryeri Woocommerce İçin (Ücretsiz)

WordPress plugin Trendyol Pazaryeri Woocommerce İçin (Ücretsiz) scored58%from 54 tests.

About plugin

  • Plugin page: wc-trendyol
  • Plugin version: 2.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 15, 2022
  • Latest release: Sep 27, 2023
  • Number of updates: 25
  • Update frequency: every 15.1 days
  • Top authors: hasanyuksektepe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,876 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.38MB] [CPU: ▼3.13ms] Passed 4 tests

An overview of server-side resources used by Trendyol Pazaryeri Woocommerce İçin (Ücretsiz)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.4143.72 ▲1.59
Dashboard /wp-admin3.71 ▲0.3649.68 ▼12.47
Posts /wp-admin/edit.php3.76 ▲0.4055.40 ▲4.97
Add New Post /wp-admin/post-new.php6.24 ▲0.3685.46 ▼6.59
Media Library /wp-admin/upload.php3.63 ▲0.4041.74 ▲8.08

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Trendyol Pazaryeri Woocommerce İçin (Ücretsiz)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲16514.20 ▲0.075.50 ▲3.6838.96 ▼4.10
Dashboard /wp-admin2,251 ▲485.43 ▲0.51122.07 ▲11.6144.22 ▲3.40
Posts /wp-admin/edit.php2,128 ▲282.70 ▲0.7043.07 ▼0.2637.68 ▼2.41
Add New Post /wp-admin/post-new.php1,550 ▲1023.63 ▲0.60707.60 ▲91.7638.57 ▼14.67
Media Library /wp-admin/upload.php1,430 ▲304.70 ▲0.29110.84 ▲6.6546.23 ▼0.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Error in wp-content/plugins/wc-trendyol/includes/class-wc-trendyol-deactivator.php+33
    Uncaught Error: Call to undefined function as_unschedule_action() in wp-content/plugins/wc-trendyol/includes/class-wc-trendyol-deactivator.php:33
    Stack trace:
    #0 wp-content/plugins/wc-trendyol/wc-trendyol.php(64): Wc_Trendyol_Deactivator::deactivate()
    #1 wp-includes/class-wp-hook.php(310): deactivate_wc_trendyol()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/includes/plugin.php(816): do_action()
  • This plugin has failed uninstalling correctly, leaving 2,192 files (9.78MB) in the plugin directory
    • (new file) admin/assets/css/settings.css
    • (new file) admin/assets/vendor/fontawesome/css/brands.css
    • (new file) admin/assets/vendor/fontawesome/css/all.min.css
    • (new file) admin/assets/vendor/fontawesome/css/all.css
    • (new file) README.txt
    • (new file) admin/assets/js/settings.js
    • (new file) LICENSE.txt
    • (new file) admin/assets/vendor/fontawesome/LICENSE.txt
    • (new file) admin/assets/js/wc_trendyol_general.js
    • (new file) admin/assets/css/root.css
    • ...
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • recovery_mode_email_last_sent

Smoke tests 50% 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)
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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wc-trendyol/admin/partials/wc-trendyol-product-import-page.php
    • > /wp-content/plugins/wc-trendyol/public/partials/wc-trendyol-pro-public-display.php
  • 47× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wc-trendyol/vendor/hasokeyk/trendyol/examples/Marketplace/Orders/get_my_orders.php on line 7
    • > PHP Fatal error
      require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wc-trendyol/vendor/hasokeyk/trendyol/examples/Marketplace/Products/update_product_info.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wc-trendyol/admin/partials/wc-trendyol-settings.php:9
    • > PHP Warning
      require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wc-trendyol/vendor/hasokeyk/trendyol/examples/Marketplace/Products/update_product_price.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/wc-trendyol/admin/partials/wc-trendyol-product-matching.php:21
    • > PHP Fatal error
      require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wc-trendyol/vendor/hasokeyk/trendyol/examples/Marketplace/CustomerQuestions/answer_customer_question.php on line 7
    • > PHP Fatal error
      require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wc-trendyol/vendor/hasokeyk/trendyol/examples/Marketplace/Products/update_product_price.php on line 7
    • > PHP Warning
      require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wc-trendyol/vendor/hasokeyk/trendyol/examples/Marketplace/Shipments/get_shipments.php on line 7
    • > PHP Fatal error
      require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wc-trendyol/vendor/hasokeyk/trendyol/examples/Marketplace/Products/get_product_comments.php on line 7
    • > PHP Warning
      require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wc-trendyol/vendor/hasokeyk/trendyol/examples/Marketplace/Categories/get_category_info.php on line 7

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: trendyol, cretsiz trendyol entegrasyonu, woocommerce trendyol entegrasyonu, woocommerce trendyol, trendyol entegrasyon

wc-trendyol/wc-trendyol.php Passed 13 tests

The main PHP script in "Trendyol Pazaryeri Woocommerce İçin (Ücretsiz)" version 2.1 is automatically included on every request by WordPress
50 characters long description:
Trendyoldaki mağazanızı web sitenizden yönetin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected85,156 lines of code in 2,162 files:
LanguageFilesBlank linesComment linesLines of code
JSON50038,521
CSS225,75612513,544
SVG2,0240168,121
Sass19556726,965
LESS18552726,907
JavaScript76731836,211
PHP661,1291,4964,773
Markdown1600114

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity12.47
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes30
▷ Abstract classes00.00%
▷ Concrete classes30100.00%
▷ Final classes00.00%
Methods244
▷ Static methods4116.80%
▷ Public methods23094.26%
▷ Protected methods20.82%
▷ Private methods124.92%
Functions8
▷ Named functions450.00%
▷ Anonymous functions450.00%
Constants4
▷ Global constants4100.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
6 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/woocommerce-to-trendyol.png24.50KB9.50KB▼ 61.25%
admin/img/close.png0.83KB0.55KB▼ 33.14%
admin/img/trendyol-to-woocommerce.png24.79KB9.49KB▼ 61.71%
admin/img/no.png0.83KB0.55KB▼ 33.14%
admin/img/check.png0.81KB0.61KB▼ 24.43%