83% kayoco-by-croco

Code Review | Kayo-co WP Plugin

WordPress plugin Kayo-co WP Plugin scored83%from 54 tests.

About plugin

  • Plugin page: kayoco-by-croco
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.3
  • WordPress version: 6.3.1
  • First release: May 16, 2022
  • Latest release: Oct 26, 2022
  • Number of updates: 11
  • Update frequency: every 15.2 days
  • Top authors: crocowpplugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /647 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.48ms] Passed 4 tests

Server-side resources used by Kayo-co WP Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.04 ▼5.84
Dashboard /wp-admin3.31 ▲0.0146.25 ▼5.54
Posts /wp-admin/edit.php3.37 ▲0.0142.54 ▼6.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.72 ▼20.14
Media Library /wp-admin/upload.php3.24 ▲0.0138.96 ▲3.29

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Kayo-co WP Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.35 ▲0.001.53 ▼0.1140.81 ▲1.21
Dashboard /wp-admin2,219 ▲385.58 ▼0.2881.21 ▼18.8974.44 ▲33.95
Posts /wp-admin/edit.php2,121 ▲181.99 ▲0.0233.89 ▼1.9234.13 ▲2.35
Add New Post /wp-admin/post-new.php1,702 ▲17622.11 ▼1.03634.50 ▼34.7645.29 ▼25.73
Media Library /wp-admin/upload.php1,421 ▲274.19 ▼0.0195.23 ▼4.0668.32 ▲26.45

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 detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

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)
Good news, no errors were detected

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/kayoco-by-croco/pages/admin.php:5

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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Just copy and paste the code from the kayo-co website.) image not found
The official readme.txt is a good inspiration

kayoco-by-croco/croco-kayoco.php 85% from 13 tests

This is the main PHP file of "Kayo-co WP Plugin" version 1.0.0, 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:
  • Main file name: The principal plugin file should be the same as the plugin slug ("kayoco-by-croco.php" instead of "croco-kayoco.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin242 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP740165242

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods10100.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.17MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png96.63KB103.29KB0.00%
screenshot-3.png27.24KB28.84KB0.00%
screenshot-1.png51.69KB53.67KB0.00%