73% trendyol-entegrasyon

Code Review | Trendyol Stok Entegrasyonu Free

WordPress plugin Trendyol Stok Entegrasyonu Free scored73%from 54 tests.

About plugin

  • Plugin page: trendyol-entegrasyon
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 3, 2023
  • Latest release: Jun 3, 2023
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: erguncan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /102 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.49ms] Passed 4 tests

Analyzing server-side resources used by Trendyol Stok Entegrasyonu Free
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.18 ▼3.65
Dashboard /wp-admin3.36 ▲0.0647.96 ▼1.56
Posts /wp-admin/edit.php3.41 ▲0.0647.79 ▼1.02
Add New Post /wp-admin/post-new.php5.95 ▲0.0687.83 ▼7.74
Media Library /wp-admin/upload.php3.29 ▲0.0636.87 ▲0.32
Trendyol Senkronizasyon /wp-admin/admin.php?page=trendyol-sync-settings3.2330.69

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

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

Browser metrics Passed 4 tests

Trendyol Stok Entegrasyonu Free: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.44 ▲0.081.74 ▼0.0641.37 ▲0.22
Dashboard /wp-admin2,206 ▲205.77 ▲0.8497.57 ▼9.0439.85 ▼3.79
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0635.87 ▼1.5032.89 ▼0.55
Add New Post /wp-admin/post-new.php1,533 ▼023.15 ▲0.05636.32 ▼20.0253.26 ▼1.71
Media Library /wp-admin/upload.php1,385 ▼04.22 ▲0.0195.48 ▼13.6539.49 ▼7.42
Trendyol Senkronizasyon /wp-admin/admin.php?page=trendyol-sync-settings6571.536.5216.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_trendyol_error
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% 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 50% 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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/trendyol-entegrasyon/trendyol-integration-utils.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/trendyol-entegrasyon/trendyol-order-sync.php:89
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/trendyol-entegrasyon/trendyol-integration-admin-panel.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Trendyol Entegrasyon Ayarları sayfası.), #2 (Hatalar sekmesi ve geri bildirim formu.), #3 (Premium bilgi ekranı.)
You can take inspiration from this readme.txt

trendyol-entegrasyon/trendyol-integration.php 77% from 13 tests

This is the main PHP file of "Trendyol Stok Entegrasyonu Free" 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
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Name the main plugin file the same as the plugin slug ("trendyol-entegrasyon.php" instead of "trendyol-integration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin367 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP56416367

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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