Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.28ms] Passed 4 tests
An overview of server-side resources used by Koin Official Payments for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.10 | 43.33 ▲1.29 |
Dashboard /wp-admin | 3.44 ▲0.10 | 49.65 ▼5.06 |
Posts /wp-admin/edit.php | 3.55 ▲0.16 | 53.41 ▲1.57 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.09 | 88.61 ▼14.93 |
Media Library /wp-admin/upload.php | 3.37 ▲0.10 | 41.70 ▲4.41 |
Server storage [IO: ▲1.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 123 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Koin Official Payments for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲189 | 13.69 ▼0.66 | 11.12 ▲9.36 | 51.81 ▲9.21 |
Dashboard /wp-admin | 2,227 ▲47 | 5.69 ▲0.06 | 86.32 ▼1.91 | 39.73 ▼11.03 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.17 ▲0.16 | 36.60 ▼0.77 | 33.57 ▼2.93 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 23.36 ▲0.06 | 651.84 ▼65.61 | 53.93 ▲1.32 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.25 ▲0.03 | 103.39 ▼4.22 | 45.46 ▲0.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 28× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WKO\\Controllers\\Render' not found in wp-content/plugins/wc-koin-official/app/Controllers/Render/EditOrders.php:15
- > PHP Fatal error
Uncaught Error: Class 'WKO\\Controllers\\Gateways\\Gateway' not found in wp-content/plugins/wc-koin-official/app/Controllers/Gateways/Pix.php:16
- > PHP Fatal error
Uncaught Error: Class 'WKO\\Services\\Koin\\Requests\\Request' not found in wp-content/plugins/wc-koin-official/app/Services/Koin/Requests/Orders/Cancel.php:17
- > PHP Fatal error
Uncaught Error: Class 'WKO\\Controllers\\Render' not found in wp-content/plugins/wc-koin-official/app/Controllers/Render/KoinOrders.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wc-koin-official/app/Views/templates/thankyou-page/credit.php:2
- > PHP Fatal error
Uncaught Error: Class 'WKO\\Services\\Koin\\Requests\\Request' not found in wp-content/plugins/wc-koin-official/app/Services/Koin/Requests/Orders/Create.php:15
- > PHP Fatal error
Uncaught Error: Class 'WKO\\Controllers\\Render' not found in wp-content/plugins/wc-koin-official/app/Controllers/Render/ViewOrders.php:14
- > PHP Fatal error
Uncaught Error: Class 'WKO\\Services\\Koin\\Requests\\Request' not found in wp-content/plugins/wc-koin-official/app/Services/Koin/Requests/Orders/Get.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wc-koin-official/app/Views/templates/myaccount/order-details.php:12
- > PHP Fatal error
Uncaught Error: Class 'WKO\\Controllers\\Render' not found in wp-content/plugins/wc-koin-official/app/Controllers/Render/Notification.php:13
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: wirecard, loja, payments, store, cart...
wc-koin-official/wc-koin-official.php Passed 13 tests
The primary PHP file in "Koin Official Payments for WooCommerce" version 1.2.0 is used by WordPress to initiate all plugin functionality
31 characters long description:
Koin Official Payments Gateways
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected4,425 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 65 | 920 | 1,482 | 3,601 |
PO File | 2 | 316 | 376 | 699 |
JavaScript | 2 | 2 | 2 | 94 |
SVG | 24 | 1 | 0 | 24 |
JSON | 1 | 0 | 0 | 5 |
CSS | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 3 | 6.98% |
▷ Concrete classes | 40 | 93.02% |
▷ Final classes | 0 | 0.00% |
Methods | 234 | |
▷ Static methods | 39 | 16.67% |
▷ Public methods | 161 | 68.80% |
▷ Protected methods | 32 | 13.68% |
▷ Private methods | 41 | 17.52% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.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
16 PNG files occupy 0.33MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/w-icon-256x256.png | 9.30KB | 4.50KB | ▼ 51.57% |
resources/images/koin/b-koin-258.png | 2.87KB | 1.66KB | ▼ 42.20% |
resources/images/koin/w-koin.png | 1.05KB | 0.85KB | ▼ 18.79% |
resources/images/banner-772x250.png | 13.04KB | 4.99KB | ▼ 61.73% |
resources/images/icon-128x128.png | 3.16KB | 1.84KB | ▼ 41.93% |