Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.78ms] Passed 4 tests
Server-side resources used by KKiapay WooCommerce Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.53 ▼4.35 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.61 ▼0.76 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.43 ▼3.05 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.30 ▲1.03 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.08 ▲2.16 |
Server storage [IO: ▲1.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 141 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for KKiapay WooCommerce Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 13.54 ▼1.10 | 1.81 ▼0.40 | 42.61 ▼0.18 |
Dashboard /wp-admin | 2,206 ▲18 | 5.89 ▲0.01 | 107.46 ▲0.53 | 43.34 ▼0.16 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.05 | 38.36 ▼4.74 | 34.78 ▼0.64 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 21.16 ▲0.14 | 734.01 ▲66.32 | 69.39 ▼6.66 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▲0.04 | 102.57 ▼4.85 | 45.85 ▲0.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 items
- 44× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/kkiapay-woocommerce/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/kkiapay-woocommerce/vendor/guzzlehttp/promises/src/TaskQueue.php:13
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/kkiapay-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/kkiapay-woocommerce/vendor/guzzlehttp/psr7/src/Response.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/kkiapay-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/kkiapay-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php:4
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/kkiapay-woocommerce/vendor/guzzlehttp/psr7/src/Request.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/kkiapay-woocommerce/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/kkiapay-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/kkiapay-woocommerce/vendor/guzzlehttp/guzzle/src/Client.php:25
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Screenshot #5 (KkiaPay checkout modal.) image not found
kkiapay-woocommerce/kkiapay-woocommerce-plugin.php 92% from 13 tests
Analyzing the main PHP file in "KKiapay WooCommerce Plugin" version 2.3.14
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("kkiapay-woocommerce.php" instead of "kkiapay-woocommerce-plugin.php")
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
There were no executable files found in this plugin14,565 lines of code in 129 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 101 | 1,850 | 5,080 | 8,784 |
Markdown | 12 | 1,042 | 0 | 3,281 |
JavaScript | 4 | 344 | 6,473 | 1,393 |
JSON | 8 | 0 | 0 | 550 |
SVG | 1 | 0 | 0 | 351 |
PO File | 1 | 49 | 56 | 169 |
CSS | 1 | 8 | 0 | 28 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 13.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 68 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 68 | 100.00% |
▷ Final classes | 10 | 14.71% |
Methods | 679 | |
▷ Static methods | 83 | 12.22% |
▷ Public methods | 558 | 82.18% |
▷ Protected methods | 4 | 0.59% |
▷ Private methods | 117 | 17.23% |
Functions | 146 | |
▷ Named functions | 58 | 39.73% |
▷ Anonymous functions | 88 | 60.27% |
Constants | 63 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 63 | 100.00% |
▷ Public constants | 63 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin