84% kk-update-control

Code Review | KK-UPDATE-CONTROL

WordPress plugin KK-UPDATE-CONTROL scored84%from 54 tests.

About plugin

  • Plugin page: kk-update-control
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 9, 2022
  • Latest release: Mar 30, 2023
  • Number of updates: 13
  • Update frequency: every 15.8 days
  • Top authors: kaikrannich (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /500 total downloads

Benchmarks

Plugin footprint 83% 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.05MB] [CPU: ▼4.77ms] Passed 4 tests

A check of server-side resources used by KK-UPDATE-CONTROL
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0533.49 ▼5.62
Dashboard /wp-admin3.36 ▲0.0643.88 ▼2.39
Posts /wp-admin/edit.php3.47 ▲0.1245.80 ▼1.83
Add New Post /wp-admin/post-new.php5.94 ▲0.0579.85 ▼9.22
Media Library /wp-admin/upload.php3.28 ▲0.0535.52 ▲2.68
KK-UPDATE-CONTROL /wp-admin/options-general.php?page=kk_uc_settings3.2532.61

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

KK-UPDATE-CONTROL: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▲0.001.64 ▼0.0140.74 ▼0.32
Dashboard /wp-admin2,199 ▲225.55 ▲0.0282.21 ▼6.0939.01 ▼1.67
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0434.39 ▼1.6236.40 ▼3.21
Add New Post /wp-admin/post-new.php1,529 ▲323.35 ▲0.22688.10 ▼9.7752.48 ▼4.29
Media Library /wp-admin/upload.php1,404 ▲44.26 ▲0.0696.16 ▲2.2943.35 ▲1.09
KK-UPDATE-CONTROL /wp-admin/options-general.php?page=kk_uc_settings8482.0322.2826.82

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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)
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/kk-update-control/includes/templates/settings-page.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: core updates, auto-update, kk, updates, plugin updates...

kk-update-control/kk-update-control.php 92% from 13 tests

The main file in "KK-UPDATE-CONTROL" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 169 characters long)

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
Everything looks great! No dangerous files found in this plugin285 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP1050447221
PO File1222364

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin