10% kint-php-debugger

Code Review | Kint PHP Debugger

WordPress plugin Kint PHP Debugger scored10%from 54 tests.

About plugin

  • Plugin page: kint-php-debugger
  • Plugin version: 2.0.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.1
  • WordPress version: 6.3.1
  • First release: Jul 28, 2015
  • Latest release: Mar 11, 2019
  • Number of updates: 30
  • Update frequency: every 44.1 days
  • Top authors: hellofromTonya (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

200+ active /10,812 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/kint-php-debugger/src/kint-php/kint/inc/kintParser.class.php+463
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.69MB] [CPU: ▼56.07ms] Passed 4 tests

An overview of server-side resources used by Kint PHP Debugger
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.175.66 ▼34.39
Dashboard /wp-admin2.32 ▼0.996.45 ▼52.37
Posts /wp-admin/edit.php2.32 ▼1.0410.70 ▼38.89
Add New Post /wp-admin/post-new.php2.32 ▼3.579.16 ▼98.63
Media Library /wp-admin/upload.php2.32 ▼0.917.10 ▼29.98

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Kint PHP Debugger
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲7413.27 ▼1.021.68 ▼0.1842.92 ▼3.90
Dashboard /wp-admin2,232 ▲324.81 ▼1.24102.70 ▼3.1037.96 ▼3.84
Posts /wp-admin/edit.php2,115 ▲122.00 ▼0.0139.00 ▲1.3840.79 ▲3.73
Add New Post /wp-admin/post-new.php1,563 ▲1822.90 ▼0.44639.29 ▼2.6360.05 ▲6.80
Media Library /wp-admin/upload.php1,411 ▲114.17 ▼0.03115.39 ▼2.2549.12 ▲0.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/kint-php-debugger/src/kint-php/kint/inc/kintParser.class.php+463
    Array and string offset access syntax with curly braces is deprecated
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/kint-php-debugger/assets/css/admin-bar.php
    • > /wp-content/plugins/kint-php-debugger/src/kint-php/kint/examples/overview.php
  • 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'KintObject' not found in wp-content/plugins/kint-php-debugger/src/kint-php/kint/parsers/objects/splfileinfo.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function KnowTheCode\\Kint_PHP_Debugger\\add_action() in wp-content/plugins/kint-php-debugger/src/admin-color.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/kint-php-debugger/src/kint-php/kint/parsers/custom/splobjectstorage.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/kint-php-debugger/src/kint-php/kint/parsers/custom/objectiterateable.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/kint-php-debugger/src/kint-php/kint/parsers/custom/fspath.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/kint-php-debugger/src/kint-php/kint/parsers/custom/xml.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/kint-php-debugger/src/kint-php/kint/parsers/custom/classstatics.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/kint-php-debugger/src/kint-php/kint/parsers/custom/microtime.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'KintObject' not found in wp-content/plugins/kint-php-debugger/src/kint-php/kint/parsers/objects/smarty.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/kint-php-debugger/src/kint-php/kint/parsers/custom/color.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (An example of what gets rendered in the browser when using 'd( $var )'.), #2 (Profile example from Kint.), #3 ("KINT ACTIVE" indicator in the WordPress admin bar.)
You can look at the official readme.txt

kint-php-debugger/plugin.php 77% from 13 tests

The main file in "Kint PHP Debugger" v. 2.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 173 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("kint-php-debugger.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected3,787 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP255896562,387
LESS513439505
CSS403394
JavaScript27015362
Markdown2470110
JSON10029

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity25.00
▷ Minimum class complexity1.00
▷ Maximum class complexity126.00
Average method complexity7.86
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes22
▷ Abstract classes29.09%
▷ Concrete classes2090.91%
▷ Final classes00.00%
Methods79
▷ Static methods5367.09%
▷ Public methods3341.77%
▷ Protected methods1518.99%
▷ Private methods3139.24%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants220.00%
▷ Class constants880.00%
▷ Public constants8100.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 PNG files occupy 0.20MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png42.17KB9.38KB▼ 77.75%
screenshot-2.png132.83KB38.28KB▼ 71.18%
screenshot-3.png27.73KB8.43KB▼ 69.60%