Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.42ms] Passed 4 tests
A check of server-side resources used by Kiko Chatbot
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 27.67 ▼19.89 |
Dashboard /wp-admin | 3.43 ▲0.13 | 46.40 ▼4.29 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 49.08 ▲6.39 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 99.00 ▲3.27 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.42 ▼0.78 |
Server storage [IO: ▲2.76MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
These are issues you should consider
- Illegal file modification found: 2 files (0.06KB) outside of "wp-content/plugins/kiko-bot/" and "wp-content/uploads/"
- (new file) wp-content/wpmvc/log/.empty
- (new file) wp-content/wpmvc/cache/pcom/.htaccess
Filesystem: 558 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Kiko Chatbot
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 13.16 ▼1.19 | 1.80 ▼0.33 | 41.34 ▼2.33 |
Dashboard /wp-admin | 2,221 ▲33 | 4.86 ▼0.95 | 111.72 ▲13.37 | 42.42 ▼3.09 |
Posts /wp-admin/edit.php | 2,107 ▲36 | 2.06 ▲0.05 | 39.38 ▲0.97 | 34.29 ▲0.52 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 23.26 ▲0.00 | 638.08 ▼47.60 | 53.92 ▼5.42 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.18 ▼0.05 | 98.59 ▼11.62 | 40.75 ▼6.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/kiko-bot/assets/views/kiko-embed-code.php
- 331× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Cluster\\Distributor\\HashRing' not found in wp-content/plugins/kiko-bot/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Cluster/Distributor/KetamaRing.php:22
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/kiko-bot/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Command/KeyDump.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Predis\\Protocol\\Text\\Handler\\ResponseHandlerInterface' not found in wp-content/plugins/kiko-bot/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Protocol/Text/Handler/MultiBulkResponse.php:25
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/kiko-bot/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Command/HashValues.php:18
- > PHP Fatal error
Uncaught Error: Class 'Predis\\PredisException' not found in wp-content/plugins/kiko-bot/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Response/ServerException.php:21
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/kiko-bot/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Command/StringSet.php:18
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Profile\\RedisProfile' not found in wp-content/plugins/kiko-bot/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Profile/RedisVersion300.php:19
- > PHP Fatal error
Uncaught Predis\\Connection\\ConnectionException: Connection refused [tcp://127.0.0.1:6379] in wp-content/plugins/kiko-bot/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Connection/AbstractConnection.php:146
- > PHP Fatal error
Uncaught Error: Class 'Predis\\Command\\Command' not found in wp-content/plugins/kiko-bot/vendor/10quality/wpmvc-phpfastcache/src/_extensions/predis-1.0/src/Command/StringGetMultiple.php:18
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/kiko-bot/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Donate link: Please fix this invalid URI: "-"
kiko-bot/plugin.php 77% from 13 tests
This is the main PHP file of "Kiko Chatbot" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, 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 ("kiko-bot.php" instead of "plugin.php")
- Requires PHP: The required version number must match the one declared in readme.txt ("7.0" instead of "5.4")
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected30,855 lines of code in 521 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 471 | 5,425 | 17,719 | 24,320 |
Markdown | 22 | 1,621 | 0 | 4,664 |
JSON | 17 | 1 | 0 | 1,425 |
PO File | 3 | 57 | 57 | 341 |
XML | 5 | 0 | 0 | 71 |
INI | 1 | 6 | 6 | 24 |
make | 1 | 4 | 0 | 9 |
CSS | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 121)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 7.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 121.00 |
Code structure | ||
---|---|---|
Namespaces | 49 | |
Interfaces | 61 | |
Traits | 16 | |
Classes | 366 | |
▷ Abstract classes | 23 | 6.28% |
▷ Concrete classes | 343 | 93.72% |
▷ Final classes | 22 | 6.41% |
Methods | 2,109 | |
▷ Static methods | 210 | 9.96% |
▷ Public methods | 1,740 | 82.50% |
▷ Protected methods | 192 | 9.10% |
▷ Private methods | 177 | 8.39% |
Functions | 182 | |
▷ Named functions | 67 | 36.81% |
▷ Anonymous functions | 115 | 63.19% |
Constants | 93 | |
▷ Global constants | 5 | 5.38% |
▷ Class constants | 88 | 94.62% |
▷ Public constants | 88 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.74MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/kiko-icon-filled.png | 27.70KB | 11.22KB | ▼ 59.48% |
assets/icon-256x256.png | 23.56KB | 7.75KB | ▼ 67.11% |
assets/img/kiko-icon.png | 24.59KB | 9.76KB | ▼ 60.32% |
assets/screenshot-2.png | 216.45KB | 75.53KB | ▼ 65.11% |
assets/icon-128x128.png | 9.92KB | 2.97KB | ▼ 70.00% |