83% kunato-ai

Code Review | Kunato.ai

WordPress plugin Kunato.ai scored83%from 54 tests.

About plugin

  • Plugin page: kunato-ai
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 13, 2023
  • Latest release: Sep 15, 2023
  • Number of updates: 8
  • Update frequency: every 26.4 days
  • Top authors: ms01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /729 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.10ms] Passed 4 tests

An overview of server-side resources used by Kunato.ai
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1035.03 ▼2.49
Dashboard /wp-admin3.41 ▲0.1146.90 ▲1.36
Posts /wp-admin/edit.php3.52 ▲0.1745.13 ▼1.85
Add New Post /wp-admin/post-new.php5.99 ▲0.1081.20 ▼13.41
Media Library /wp-admin/upload.php3.33 ▲0.1037.68 ▲6.23

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Kunato.ai
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲9415.09 ▲0.579.44 ▲7.7739.56 ▼0.01
Dashboard /wp-admin2,214 ▲345.64 ▼0.0181.50 ▼8.6537.56 ▼9.11
Posts /wp-admin/edit.php2,119 ▲191.99 ▼0.0032.63 ▼1.9531.88 ▼6.85
Add New Post /wp-admin/post-new.php1,543 ▲1723.91 ▲0.34614.30 ▼50.8664.26 ▲9.15
Media Library /wp-admin/upload.php1,419 ▲194.18 ▼0.0599.54 ▼7.9143.65 ▼5.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/kunato-ai/admin/partials/kunato-admin-display.php
    • > /wp-content/plugins/kunato-ai/public/partials/kunato-public-display.php

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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: plugin, quor, kunato

kunato-ai/kunato.php 77% from 13 tests

The entry point to "Kunato.ai" version 1.0.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kunato-ai.php" instead of "kunato.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 226 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
There were no executable files found in this plugin387 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP12165680384
JavaScript12273
CSS1040

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.57
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods3888.37%
▷ Protected methods00.00%
▷ Private methods511.63%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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