10% pco-kint

Code Review | PCo Kint

WordPress plugin PCo Kint scored10%from 54 tests.

About plugin

  • Plugin page: pco-kint
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 6.3.1
  • First release: Jul 24, 2015
  • Latest release: Oct 28, 2015
  • Number of updates: 9
  • Update frequency: every 11.0 days
  • Top authors: Compute (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,441 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/pco-kint/vendor/raveren/kint/inc/kintParser.class.php+465
    Array and string offset access syntax with curly braces is deprecated

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

This is a short check of server-side resources used by PCo Kint
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.67 ▼16.07
Dashboard /wp-admin3.31 ▲0.0149.34 ▼2.58
Posts /wp-admin/edit.php3.42 ▲0.0751.16 ▼5.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.24 ▼9.88
Media Library /wp-admin/upload.php3.23 ▲0.0035.66 ▼0.21

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for PCo Kint
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.081.83 ▲0.1042.98 ▼1.20
Dashboard /wp-admin2,209 ▲214.84 ▼0.0897.64 ▼12.3139.92 ▲2.90
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0138.82 ▼4.2236.72 ▲0.71
Add New Post /wp-admin/post-new.php1,514 ▼2817.65 ▼0.46645.99 ▲4.4854.62 ▲4.18
Media Library /wp-admin/upload.php1,391 ▲94.20 ▼0.0597.60 ▼0.3042.56 ▼0.37

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pco-kint/vendor/raveren/kint/examples/overview.php
  • 14× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/pco-kint/vendor/raveren/kint/parsers/custom/fspath.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/pco-kint/vendor/raveren/kint/parsers/custom/classmethods.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/pco-kint/vendor/raveren/kint/parsers/custom/xml.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintVariableData' not found in wp-content/plugins/pco-kint/vendor/raveren/kint/inc/kintParser.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/pco-kint/vendor/raveren/kint/parsers/custom/objectiterateable.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/pco-kint/vendor/raveren/kint/parsers/custom/microtime.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'KintObject' not found in wp-content/plugins/pco-kint/vendor/raveren/kint/parsers/objects/closure.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/pco-kint/vendor/raveren/kint/parsers/custom/json.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'KintObject' not found in wp-content/plugins/pco-kint/vendor/raveren/kint/parsers/objects/smarty.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/pco-kint/vendor/raveren/kint/parsers/custom/timestamp.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 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
5 plugin tags: debug, kint, var_dump, print_r, krumo

pco-kint/pco-kint.php Passed 13 tests

The entry point to "PCo Kint" version 1.0.10 is a PHP file that has certain tags in its header comment area
71 characters long description:
Kint debugger for WordPress - a powerful and modern PHP debugging tool.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin4,604 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP307878403,125
LESS513439505
CSS403397
JavaScript27015362
JSON300113
Markdown1390102

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity26.41
▷ Minimum class complexity1.00
▷ Maximum class complexity124.00
Average method complexity6.76
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes27
▷ Abstract classes414.81%
▷ Concrete classes2385.19%
▷ Final classes00.00%
Methods123
▷ Static methods7560.98%
▷ Public methods5847.15%
▷ Protected methods2016.26%
▷ Private methods4536.59%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants220.00%
▷ Class constants880.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin