83% iyzico-woocommerce

Code Review | iyzico WooCommerce

WordPress plugin iyzico WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: iyzico-woocommerce
  • Plugin version: 3.2.6
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: May 22, 2018
  • Latest release: Jul 6, 2023
  • Number of updates: 111
  • Update frequency: every 16.9 days
  • Top authors: iyzico (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10,000+ active /107,591 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

This is a short check of server-side resources used by iyzico WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2044.01 ▲7.60
Dashboard /wp-admin3.36 ▲0.0649.97 ▲6.10
Posts /wp-admin/edit.php3.48 ▲0.1251.23 ▲3.09
Add New Post /wp-admin/post-new.php5.94 ▲0.0688.13 ▲0.40
Media Library /wp-admin/upload.php3.28 ▲0.0641.73 ▲9.98

Server storage [IO: ▲0.15MB] [DB: ▲0.08MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: 2 new tables, 6 new options
New tables
wp_iyzico_order
wp_iyzico_card
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by iyzico WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.181.80 ▼0.0242.19 ▼6.93
Dashboard /wp-admin2,206 ▲185.80 ▲0.9296.67 ▼21.2538.03 ▼4.55
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0539.76 ▼0.6636.36 ▲1.33
Add New Post /wp-admin/post-new.php1,530 ▼323.41 ▲0.39657.62 ▲9.7660.39 ▲6.96
Media Library /wp-admin/upload.php1,379 ▼64.20 ▼0.04100.13 ▲4.7344.18 ▲1.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 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
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/iyzico-woocommerce/woocommerce-gateway-iyzico.php:14

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: iyzico, credit card, wordpress ecommerce, ecommerce, payment...

iyzico-woocommerce/woocommerce-gateway-iyzico.php 77% from 13 tests

The entry point to "iyzico WooCommerce" version 3.2.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("iyzico-woocommerce.php" instead of "woocommerce-gateway-iyzico.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,857 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13655471,537
PO File21122300
CSS19019
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity14.00
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods83
▷ Static methods1416.87%
▷ Public methods7792.77%
▷ Protected methods11.20%
▷ Private methods56.02%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
image/pwi_en.png2.51KB2.40KB▼ 4.20%
image/cards.png25.37KB7.98KB▼ 68.56%
image/pwi_tr.png2.69KB2.54KB▼ 5.38%
image/iyzico_logo.png14.82KB8.01KB▼ 45.97%