Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > User error in wp-content/plugins/kount-fraud-prevention/includes/class-kount-activator.php+57
Please install WooCommerce before using this plugin
Server metrics [RAM: ▲0.17MB] [CPU: ▼0.18ms] Passed 4 tests
Analyzing server-side resources used by Kount Fraud Prevention
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 37.50 ▼2.86 |
Dashboard /wp-admin | 3.48 ▲0.18 | 47.00 ▼0.00 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.54 ▲1.54 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 97.69 ▲0.60 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.54 ▲1.69 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 187 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Kount Fraud Prevention
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲89 | 13.31 ▼1.37 | 4.40 ▲2.47 | 40.30 ▼7.19 |
Dashboard /wp-admin | 2,222 ▲31 | 4.88 ▼0.02 | 108.49 ▲5.74 | 39.41 ▼2.32 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.03 ▲0.03 | 40.40 ▲4.94 | 35.68 ▲1.43 |
Add New Post /wp-admin/post-new.php | 1,528 ▲7 | 17.87 ▼5.20 | 677.62 ▼15.56 | 56.64 ▲7.25 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.25 ▲0.06 | 98.40 ▼3.30 | 47.27 ▲1.76 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% 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 0% 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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/kount-fraud-prevention/public/partials/kount-public-display.php
- 104× 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/kount-fraud-prevention/services/kfpwoo-post-auth.php:33
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/kount-fraud-prevention/vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php:21
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\Handler' not found in wp-content/plugins/kount-fraud-prevention/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/kount-fraud-prevention/vendor/psr/log/Psr/Log/Test/TestLogger.php:57
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/kount-fraud-prevention/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/kount-fraud-prevention/vendor/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/kount-fraud-prevention/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/kount-fraud-prevention/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/kount-fraud-prevention/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php:19
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\BufferHandler' not found in wp-content/plugins/kount-fraud-prevention/vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: kount, fraud prevention, chargeback, woocommerce
kount-fraud-prevention/kount.php 77% from 13 tests
The primary PHP file in "Kount Fraud Prevention" version 1.0.18 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 176 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kount-fraud-prevention.php" instead of "kount.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin11,815 lines of code in 176 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 160 | 2,654 | 6,988 | 10,552 |
Markdown | 4 | 178 | 0 | 583 |
JSON | 4 | 0 | 0 | 264 |
JavaScript | 3 | 41 | 109 | 197 |
CSS | 2 | 18 | 14 | 143 |
PO File | 1 | 29 | 29 | 74 |
SVG | 2 | 0 | 0 | 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.37 |
Average class complexity | 9.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 9 | |
Traits | 5 | |
Classes | 135 | |
▷ Abstract classes | 8 | 5.93% |
▷ Concrete classes | 127 | 94.07% |
▷ Final classes | 2 | 1.57% |
Methods | 846 | |
▷ Static methods | 64 | 7.57% |
▷ Public methods | 605 | 71.51% |
▷ Protected methods | 156 | 18.44% |
▷ Private methods | 85 | 10.05% |
Functions | 28 | |
▷ Named functions | 7 | 25.00% |
▷ Anonymous functions | 21 | 75.00% |
Constants | 63 | |
▷ Global constants | 7 | 11.11% |
▷ Class constants | 56 | 88.89% |
▷ Public constants | 36 | 64.29% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected