Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼1.26ms] Passed 4 tests
A check of server-side resources used by Innokassa
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 41.32 ▲3.32 |
Dashboard /wp-admin | 3.52 ▲0.22 | 51.38 ▲5.98 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 45.51 ▼1.85 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 79.86 ▼11.07 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 38.71 ▲4.55 |
Настройки Innokassa /wp-admin/admin.php?page=Innokassa_submenu | 3.44 | 31.06 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 99 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_mr_checks_log |
wp_innokassa_receipts |
New WordPress options |
---|
can_compress_scripts |
recovery_mode_email_last_sent |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Innokassa
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.00 | 1.70 ▲0.04 | 43.81 ▼1.12 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▼0.05 | 86.12 ▼5.29 | 41.30 ▼0.34 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.02 | 37.38 ▲0.56 | 36.09 ▲4.34 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.18 ▼0.07 | 654.58 ▼25.68 | 50.42 ▼1.88 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.27 ▲0.02 | 93.27 ▼9.23 | 42.85 ▼4.24 |
Настройки Innokassa /wp-admin/admin.php?page=Innokassa_submenu | 681 | 1.51 | 6.31 | 19.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_mr_checks_log
- wp_innokassa_receipts
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=Innokassa_submenu
- > Error in wp-content/plugins/innokassa/admin/partials/Innokassa-admin-display.php+14
Uncaught Error: Call to undefined function wc_get_order_statuses() in wp-content/plugins/innokassa/admin/partials/Innokassa-admin-display.php:14
Stack trace:
#0 wp-content/plugins/innokassa/admin/class-Innokassa-admin.php(98): include()
#1 wp-content/plugins/innokassa/admin/class-Innokassa-admin.php(92): InnokassaAdmin->render()
#2 wp-includes/class-wp-hook.php(310): InnokassaAdmin->renderAdminPage()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown
SRP 50% 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
Almost there! Just fix the following items
- 33× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/innokassa/InnokassaCheckout.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Innokassa\\MDK\\Services\\AutomaticInterface' not found in wp-content/plugins/innokassa/mdk/src/Services/AutomaticBase.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_order_statuses() in wp-content/plugins/innokassa/admin/partials/Innokassa-admin-display.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Innokassa\\MDK\\Logger\\LoggerInterface' not found in wp-content/plugins/innokassa/mdk/src/Logger/LoggerFile.php:8
- > PHP Fatal error
Uncaught Error: Class 'Innokassa\\MDK\\Entities\\ConverterAbstract' not found in wp-content/plugins/innokassa/mdk/src/Net/ConverterApi.php:15
- > PHP Fatal error
Uncaught Error: Class 'Innokassa\\MDK\\Entities\\AtomAbstract' not found in wp-content/plugins/innokassa/mdk/src/Entities/Atoms/ReceiptItemType.php:11
- > PHP Fatal error
Uncaught Error: Class 'Innokassa\\MDK\\Entities\\AtomAbstract' not found in wp-content/plugins/innokassa/mdk/src/Entities/Atoms/ReceiptSubType.php:11
- > PHP Fatal error
Uncaught Error: Class 'Innokassa\\MDK\\Exceptions\\BaseException' not found in wp-content/plugins/innokassa/mdk/src/Exceptions/Base/InvalidArgumentException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Innokassa\\MDK\\Services\\PipelineInterface' not found in wp-content/plugins/innokassa/mdk/src/Services/PipelineBase.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Innokassa\\MDK\\Entities\\ReceiptId\\ReceiptIdFactoryInterface' not found in wp-content/plugins/innokassa/mdk/src/Entities/ReceiptId/ReceiptIdFactoryMeta.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Requires php: Invalid version format
- Requires at least: Invalid version format
- Tags: No valid plugin tags found
innokassa/InnokassaCheckout.php 77% from 13 tests
The main PHP script in "Innokassa" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("innokassa.php" instead of "InnokassaCheckout.php")
- Description: The description should be shorter than 140 characters (currently 254 characters long)
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected4,275 lines of code in 86 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 72 | 952 | 1,932 | 3,853 |
Markdown | 1 | 58 | 0 | 182 |
JSON | 4 | 0 | 0 | 110 |
YAML | 2 | 14 | 0 | 75 |
XML | 1 | 1 | 0 | 26 |
Dockerfile | 1 | 4 | 0 | 12 |
Bourne Shell | 3 | 3 | 0 | 9 |
INI | 1 | 0 | 0 | 6 |
JavaScript | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 3 | 5.45% |
▷ Concrete classes | 52 | 94.55% |
▷ Final classes | 0 | 0.00% |
Methods | 266 | |
▷ Static methods | 13 | 4.89% |
▷ Public methods | 252 | 94.74% |
▷ Protected methods | 3 | 1.13% |
▷ Private methods | 11 | 4.14% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 106 | |
▷ Global constants | 1 | 0.94% |
▷ Class constants | 105 | 99.06% |
▷ Public constants | 105 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
mdk/logo.png | 39.84KB | 18.86KB | ▼ 52.67% |