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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 44.01 ▲7.60 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.97 ▲6.10 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 51.23 ▲3.09 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 88.13 ▲0.40 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 41.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▲0.18 | 1.80 ▼0.02 | 42.19 ▼6.93 |
Dashboard /wp-admin | 2,206 ▲18 | 5.80 ▲0.92 | 96.67 ▼21.25 | 38.03 ▼4.55 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.05 | 39.76 ▼0.66 | 36.36 ▲1.33 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 23.41 ▲0.39 | 657.62 ▲9.76 | 60.39 ▲6.96 |
Media Library /wp-admin/upload.php | 1,379 ▼6 | 4.20 ▼0.04 | 100.13 ▲4.73 | 44.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 655 | 47 | 1,537 |
PO File | 2 | 112 | 2 | 300 |
CSS | 1 | 9 | 0 | 19 |
JavaScript | 1 | 0 | 0 | 1 |
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 code | 0.24 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 14 | 16.87% |
▷ Public methods | 77 | 92.77% |
▷ Protected methods | 1 | 1.20% |
▷ Private methods | 5 | 6.02% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/pwi_en.png | 2.51KB | 2.40KB | ▼ 4.20% |
image/cards.png | 25.37KB | 7.98KB | ▼ 68.56% |
image/pwi_tr.png | 2.69KB | 2.54KB | ▼ 5.38% |
image/iyzico_logo.png | 14.82KB | 8.01KB | ▼ 45.97% |