Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.46ms] Passed 4 tests
Server-side resources used by PayTR Sanal POS WooCommerce - iFrame API
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.50 ▼3.68 |
Dashboard /wp-admin | 3.33 ▲0.02 | 48.56 ▼5.12 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 52.91 ▲3.28 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 101.21 ▲0.55 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.05 ▲2.41 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_paytr_iframe_transaction |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by PayTR Sanal POS WooCommerce - iFrame API
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲6 | 14.29 ▼0.32 | 1.77 ▼0.15 | 42.27 ▼1.19 |
Dashboard /wp-admin | 2,201 ▲24 | 5.55 ▼0.09 | 84.43 ▼3.68 | 44.92 ▲3.27 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.99 ▲0.04 | 37.31 ▼4.61 | 34.13 ▼4.11 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.11 ▲0.06 | 669.81 ▲53.46 | 65.53 ▲17.27 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▼0.03 | 95.53 ▼12.94 | 42.13 ▼4.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: deme, paytr, woocommerce, checkout, sanal pos
paytr-sanal-pos-woocommerce-iframe-api/paytr-sanal-pos-woocommerce-iframe-api.php Passed 13 tests
"PayTR Sanal POS WooCommerce - iFrame API" version 2.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
95 characters long description:
The infrastructure required to receive payments through WooCommerce with your PayTR membership.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,128 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 198 | 99 | 899 |
PO File | 1 | 65 | 96 | 177 |
JavaScript | 1 | 4 | 2 | 47 |
CSS | 1 | 0 | 0 | 4 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 17.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 4.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 6 | 19.35% |
▷ Public methods | 28 | 90.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 9.68% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin