Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼1.39ms] Passed 4 tests
A check of server-side resources used by Kafkai - AI Writer Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.36 | 37.62 ▲0.81 |
Dashboard /wp-admin | 3.67 ▲0.32 | 45.94 ▼12.74 |
Posts /wp-admin/edit.php | 3.73 ▲0.36 | 48.30 ▲3.97 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 95.63 ▲2.42 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 39.87 ▲4.62 |
Import Article /wp-admin/admin.php?page=kafkaiwp_import | 3.62 | 36.32 |
Settings /wp-admin/admin.php?page=kafkaiwp_settings | 3.51 | 33.20 |
Generate Article /wp-admin/admin.php?page=kafkaiwp_generate | 3.53 | 34.56 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 108 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Kafkai - AI Writer Plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.41 ▲0.16 | 1.75 ▲0.19 | 39.39 ▼2.98 |
Dashboard /wp-admin | 2,222 ▲41 | 5.57 ▼0.09 | 93.36 ▼5.46 | 42.27 ▲4.51 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.03 ▲0.07 | 39.42 ▲3.38 | 35.47 ▲0.82 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.25 ▲0.13 | 614.02 ▼85.06 | 55.96 ▼0.68 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.19 ▲0.01 | 96.27 ▼12.19 | 40.64 ▼6.15 |
Import Article /wp-admin/admin.php?page=kafkaiwp_import | 1,048 | 1.90 | 28.34 | 29.64 |
Settings /wp-admin/admin.php?page=kafkaiwp_settings | 905 | 1.90 | 25.88 | 29.22 |
Generate Article /wp-admin/admin.php?page=kafkaiwp_generate | 1,151 | 1.90 | 24.34 | 28.65 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Yaml\\Exception\\RuntimeException' not found in wp-content/plugins/kafkai/vendor/symfony/yaml/Exception/DumpException.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/kafkai/inc/Admin/views/settings.php:12
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/kafkai/vendor/symfony/yaml/Command/LintCommand.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/kafkai/inc/Admin/views/generate.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/kafkai/inc/Admin/views/import.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Yaml\\Exception\\ExceptionInterface' not found in wp-content/plugins/kafkai/vendor/symfony/yaml/Exception/RuntimeException.php:19
- > PHP Fatal error
Trait 'Niteo\\Kafkai\\Plugin\\Admin\\Helper' not found in wp-content/plugins/kafkai/inc/Admin.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Yaml\\Exception\\RuntimeException' not found in wp-content/plugins/kafkai/vendor/symfony/yaml/Exception/ParseException.php:19
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: articles, content, kafkai, seo
kafkai/kafkai.php 85% from 13 tests
The main PHP file in "Kafkai - AI Writer Plugin" ver. 1.5.8 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Domain Path: Prefix the domain path with a forward slash character ("/i18n")
- Domain Path: Use only dashes and lowercase characters for the domain path ("i18n")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin7,974 lines of code in 94 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 1,136 | 1,912 | 4,391 |
JavaScript | 2 | 584 | 717 | 1,993 |
SVG | 39 | 0 | 0 | 544 |
CSS | 1 | 8 | 20 | 475 |
JSON | 5 | 0 | 0 | 369 |
Markdown | 5 | 84 | 0 | 202 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 130)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 34.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 299.00 |
Average method complexity | 5.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 130.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 2 | 8.70% |
Methods | 200 | |
▷ Static methods | 56 | 28.00% |
▷ Public methods | 135 | 67.50% |
▷ Protected methods | 7 | 3.50% |
▷ Private methods | 58 | 29.00% |
Functions | 31 | |
▷ Named functions | 25 | 80.65% |
▷ Anonymous functions | 6 | 19.35% |
Constants | 26 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 26 | 100.00% |
▷ Public constants | 24 | 92.31% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin