Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.84MB] [CPU: ▲14.02ms] 75% from 4 tests
This is a short check of server-side resources used by POS Entegratör - WordPress Ödeme Eklentisi
The following require your attention
- CPU: The total CPU usage must kept under 500.00ms (currently 501.20ms on /wp-admin/admin.php?page=gpos-payment-gateway)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.31 ▲1.85 | 61.29 ▲17.68 |
Dashboard /wp-admin | 5.18 ▲1.83 | 71.67 ▲4.80 |
Posts /wp-admin/edit.php | 5.22 ▲1.86 | 67.39 ▲18.53 |
Add New Post /wp-admin/post-new.php | 7.72 ▲1.83 | 112.17 ▲15.06 |
Media Library /wp-admin/upload.php | 5.10 ▲1.87 | 60.68 ▲27.15 |
Virtual POS /wp-admin/admin.php?page=gpos-payment-gateways | 5.42 | 528.19 |
Transactions /wp-admin/edit.php?post_type=gpos_transaction | 5.15 | 64.26 |
Dashboard /wp-admin/admin.php?page=gurmepos | 5.43 | 395.02 |
Settings /wp-admin/admin.php?page=gpos-settings | 5.43 | 433.57 |
/wp-admin/admin.php?page=gpos-transaction | 5.43 | 402.14 |
/wp-admin/admin.php?page=gpos-payment-gateway | 5.43 | 501.20 |
Server storage [IO: ▲13.83MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 703 new files
Database: 3 new tables, 9 new options
New tables |
---|
wp_gpos_transaction_log |
wp_gpos_redirect |
wp_gpos_session |
New WordPress options |
---|
gpos_transaction_process_type_children |
gpos_submenu_pages |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
gpos_db_version |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by POS Entegratör - WordPress Ödeme Eklentisi
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲172 | 14.41 ▲0.07 | 1.81 ▲0.08 | 44.08 ▼3.30 |
Dashboard /wp-admin | 2,301 ▲120 | 5.64 ▼0.04 | 97.17 ▼14.51 | 43.80 ▲0.24 |
Posts /wp-admin/edit.php | 2,210 ▲110 | 2.16 ▲0.22 | 42.17 ▲2.24 | 33.66 ▼2.75 |
Add New Post /wp-admin/post-new.php | 1,606 ▲70 | 23.51 ▲0.57 | 622.08 ▼12.32 | 77.75 ▲25.40 |
Media Library /wp-admin/upload.php | 1,507 ▲107 | 4.29 ▲0.06 | 101.36 ▲5.66 | 43.01 ▼1.50 |
Virtual POS /wp-admin/admin.php?page=gpos-payment-gateways | 2,093 | 7.65 | 237.21 | 80.03 |
Transactions /wp-admin/edit.php?post_type=gpos_transaction | 1,221 | 1.97 | 38.73 | 33.66 |
Dashboard /wp-admin/admin.php?page=gurmepos | 2,755 | 8.44 | 242.40 | 98.08 |
Settings /wp-admin/admin.php?page=gpos-settings | 2,747 | 8.52 | 169.39 | 63.57 |
/wp-admin/admin.php?page=gpos-transaction | 1,847 | 7.52 | 151.04 | 72.74 |
/wp-admin/admin.php?page=gpos-payment-gateway | 1,899 | 7.51 | 136.18 | 59.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure failed, leaving 3 tables in the database
- wp_gpos_redirect
- wp_gpos_transaction_log
- wp_gpos_session
- The uninstall procedure has failed, leaving 9 options in the database
- can_compress_scripts
- gpos_db_version
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- gpos_transaction_process_type_children
- gpos_submenu_pages
- db_upgraded
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gpos-payment-gateway
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 70× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/pos-entegrator/vendor/iyzico/iyzipay-php/samples/subscription-samples/create_product.php
- > /wp-content/plugins/pos-entegrator/vendor/iyzico/iyzipay-php/samples/subscription-samples/list_customers.php
- > /wp-content/plugins/pos-entegrator/vendor/iyzico/iyzipay-php/samples/create_payment.php
- > /wp-content/plugins/pos-entegrator/vendor/iyzico/iyzipay-php/samples/subscription-samples/delete_product.php
- > /wp-content/plugins/pos-entegrator/vendor/iyzico/iyzipay-php/samples/subscription-samples/cancel_subscription.php
- > /wp-content/plugins/pos-entegrator/vendor/iyzico/iyzipay-php/samples/retrieve_apm.php
- > /wp-content/plugins/pos-entegrator/vendor/iyzico/iyzipay-php/samples/retrieve_cards.php
- > /wp-content/plugins/pos-entegrator/vendor/iyzico/iyzipay-php/samples/subscription-samples/create_subscription_with_customer_reference_code.php
- > /wp-content/plugins/pos-entegrator/vendor/iyzico/iyzipay-php/samples/api_test.php
- > /wp-content/plugins/pos-entegrator/vendor/iyzico/iyzipay-php/samples/cancel_with_reason.php
- 333× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Iyzipay\\Model\\Mapper\\IyzipayResourceMapper' not found in wp-content/plugins/pos-entegrator/vendor/iyzico/iyzipay-php/src/Iyzipay/Model/Mapper/Subscription/SubscriptionDetailsResourceMapper.php:8
- > PHP Fatal error
Uncaught Error: Class 'Iyzipay\\Model\\Mapper\\IyzipayResourceMapper' not found in wp-content/plugins/pos-entegrator/vendor/iyzico/iyzipay-php/src/Iyzipay/Model/Mapper/Iyzilink/IyziLinkRetrieveProductResourceMapper.php:8
- > PHP Fatal error
Uncaught Error: Class 'GPOS_Options' not found in wp-content/plugins/pos-entegrator/includes/settings/class-gpos-form-settings.php:11
- > PHP Fatal error
Uncaught Error: Class 'Iyzipay\\Request' not found in wp-content/plugins/pos-entegrator/vendor/iyzico/iyzipay-php/src/Iyzipay/Request/Subscription/SubscriptionUpdatePricingPlanRequest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Iyzipay\\IyzipayResource' not found in wp-content/plugins/pos-entegrator/vendor/iyzico/iyzipay-php/src/Iyzipay/Model/Iyzilink/IyziLinkSaveProductResource.php:7
- > PHP Fatal error
Uncaught Error: Class 'Iyzipay\\Model\\Mapper\\UCSInitializeResourceMapper' not found in wp-content/plugins/pos-entegrator/vendor/iyzico/iyzipay-php/src/Iyzipay/Model/Mapper/UCSInitializeMapper.php:7
- > PHP Fatal error
Uncaught Error: Class 'Iyzipay\\IyzipayResource' not found in wp-content/plugins/pos-entegrator/vendor/iyzico/iyzipay-php/src/Iyzipay/Model/Subscription/SubscriptionCreateCheckoutForm.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pos-entegrator/views/wc-gateway-disabled.php:12
- > PHP Fatal error
Uncaught Error: Class 'GPOS_Gateway' not found in wp-content/plugins/pos-entegrator/includes/payment-gateways/pro/class-gpos-kuveyt-turk.php:11
- > PHP Fatal error
Uncaught Error: Class 'Iyzipay\\Model\\Mapper\\RefundResourceMapper' not found in wp-content/plugins/pos-entegrator/vendor/iyzico/iyzipay-php/src/Iyzipay/Model/Mapper/RefundMapper.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=gpos-transaction
- > Console-api (severe) in unknown
/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js 0:16584 TypeError: Cannot read properties of undefined (reading 'length')at /wp-content/plugins/pos-entegrator/assets/vue/js/transaction-3-7-11.js?ver=3.7.11:1:23963at n (/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js:1:19424)at Fb (/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js:1:36253)at Proxy. (/wp-content/plugins/pos-entegrator/assets/vue/Page-3-7-11.js:1:5634)at dc (/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js:1:19736)at Io.he [as fn] (/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js:1:56562)at Io.run (/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js:1:6707)at V.M.update (/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js:1:56843)at V (/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js:1:56870)at H (/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js:1:55671)
- > GET request to /wp-admin/admin.php?page=gpos-payment-gateway
- > Console-api (severe) in unknown
/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js 0:16584 TypeError: Cannot read properties of undefined (reading 'title')at Proxy. (/wp-content/plugins/pos-entegrator/assets/vue/js/payment-gateway-3-7-11.js?ver=3.7.11:1:10091)at dc (/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js:1:19736)at Io.he [as fn] (/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js:1:56562)at Io.run (/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js:1:6707)at V.M.update (/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js:1:56843)at V (/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js:1:56870)at H (/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js:1:55671)at G (/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js:1:55454)at v (/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js:1:52173)at He (/wp-content/plugins/pos-entegrator/assets/vue/vendor-3-7-11.js:1:60806)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: kredi kart, deme, checkout, pos, banka...
pos-entegrator/gurmepos.php 69% from 13 tests
The principal PHP file in "POS Entegratör - WordPress Ödeme Eklentisi" v. 3.7.11 is loaded by WordPress automatically on each request
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
- Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "5.8")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 366 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("pos-entegrator.php" instead of "gurmepos.php")
Code Analysis 97% from 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
There were no executable files found in this plugin45,337 lines of code in 652 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 493 | 5,024 | 7,659 | 24,342 |
SVG | 93 | 2 | 1 | 18,034 |
PO File | 1 | 569 | 763 | 1,597 |
Markdown | 6 | 130 | 0 | 522 |
JavaScript | 47 | 11 | 74 | 367 |
JSON | 4 | 0 | 0 | 246 |
CSS | 5 | 26 | 3 | 145 |
YAML | 2 | 23 | 11 | 67 |
Handlebars | 1 | 7 | 0 | 17 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 212.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 4 | |
Traits | 3 | |
Classes | 382 | |
▷ Abstract classes | 6 | 1.57% |
▷ Concrete classes | 376 | 98.43% |
▷ Final classes | 1 | 0.27% |
Methods | 2,657 | |
▷ Static methods | 227 | 8.54% |
▷ Public methods | 2,577 | 96.99% |
▷ Protected methods | 28 | 1.05% |
▷ Private methods | 52 | 1.96% |
Functions | 89 | |
▷ Named functions | 75 | 84.27% |
▷ Anonymous functions | 14 | 15.73% |
Constants | 132 | |
▷ Global constants | 9 | 6.82% |
▷ Class constants | 123 | 93.18% |
▷ Public constants | 123 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
25 PNG files occupy 0.83MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/email/arrow-uturn-left.png | 0.32KB | 0.30KB | ▼ 4.88% |
assets/images/settings/row_view.png | 31.35KB | 12.45KB | ▼ 60.28% |
assets/email/check-circle.png | 0.59KB | 0.58KB | ▼ 1.98% |
assets/images/pro.png | 37.01KB | 19.45KB | ▼ 47.44% |
assets/images/settings/standart_form.png | 4.13KB | 2.24KB | ▼ 45.62% |