Silky smooth profiling for Django
This report summarizes scanner evidence for jazzband/django-silk, a Python project with 4,996 GitHub stars. SynthScan examined 18,462 lines of code across 205 source files, recording 221 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 17.8 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 190 finding(s).
Are imports declared and package/API names verified? 10 finding(s).
Are wrappers, guards, and repeated structures necessary? 188 finding(s).
Which changes need focused human review? 221 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 221 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | silk/auth.py | 15 | def permissions_possibly_required(function=None): | CODE |
| LOW | silk/models.py | 128 | def time_spent_on_sql_queries(self): | CODE |
| LOW | silk/models.py | 390 | def time_spent_on_sql_queries(self): | CODE |
| LOW | silk/collector.py | 42 | def ensure_middleware_installed(self): | CODE |
| LOW | silk/profiling/dynamic.py | 46 | def profile_function_or_method(module, func, name=None): | CODE |
| LOW | silk/profiling/dynamic.py | 77 | def _get_context_manager_source(end_line, file_path, name, start_line): | CODE |
| LOW | silk/profiling/dynamic.py | 153 | def _inject_context_manager_func(func, start_line, end_line, name): | CODE |
| LOW | silk/profiling/dynamic.py | 202 | def inject_context_manager_func(module, func, start_line, end_line, name): | CODE |
| LOW | silk/profiling/profiler.py | 74 | def _query_identifiers_from_collector(self): | CODE |
| LOW | silk/views/code.py | 34 | def _code_context_from_request(request, end_line_num=None, prefix=''): | CODE |
| LOW | silk/views/code.py | 43 | def _should_display_file_name(file_name): | CODE |
| LOW | silk/views/profile_dot.py | 32 | def _temp_file_from_file_field(source): | CODE |
| LOW | silk/views/summary.py | 20 | def _avg_time_spent_on_queries(self, filters): | CODE |
| LOW | silk/views/summary.py | 37 | def _time_spent_in_db_by_view(self, filters): | CODE |
| LOW | project/tests/test_view_sql_detail.py | 22 | def test_allowed_file_paths_nothing_specified(self): | CODE |
| LOW | project/tests/test_view_sql_detail.py | 29 | def test_allowed_file_paths_available_source(self): | CODE |
| LOW | project/tests/test_view_sql_detail.py | 46 | def test_allowed_file_paths_unavailable_source(self): | CODE |
| LOW | project/tests/test_view_sql_detail.py | 61 | def test_virtualenv_not_available_no_highlight(self): | CODE |
| LOW | project/tests/test_view_sql_detail.py | 73 | def test_virtualenv_hightlight(self): | CODE |
| LOW | project/tests/test_view_clear_db.py | 33 | def test_clear_all_and_delete_profiles(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 22 | def test_mask_credentials_preserves_single_insensitive_values(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 27 | def test_mask_credentials_masks_sensitive_values(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 32 | def test_mask_credentials_masks_multiple_sensitive_values(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 37 | def test_mask_credentials_masks_sensitive_values_between_insensitive_values(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 42 | def test_mask_credentials_preserves_insensitive_values_between_sensitive_values(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 47 | def test_mask_credentials_is_case_insensitive(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 52 | def test_mask_credentials_handles_prefixes(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 57 | def test_mask_credentials_handles_suffixes(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 62 | def test_mask_credentials_handles_regex_characters(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 67 | def test_mask_credentials_handles_complex_cases(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 72 | def test_mask_credentials_masks_sensitive_values_listed_in_settings(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 78 | def test_sensitive_values_remain_unmasked_with_empty_settings(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 92 | def test_mask_credentials_preserves_single_insensitive_values(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 95 | def test_mask_credentials_preserves_insensitive_values_in_presence_of_sensitive(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 98 | def test_mask_credentials_masks_sensitive_values(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 101 | def test_mask_credentials_masks_sensitive_values_in_presence_of_regular(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 104 | def test_mask_credentials_is_case_insensitive(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 107 | def test_mask_credentials_handles_prefixes(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 110 | def test_mask_credentials_handles_suffixes(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 113 | def test_mask_credentials_handles_complex_cases(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 119 | def test_mask_credentials_in_nested_data_structures(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 127 | def test_mask_credentials_masks_sensitive_values_listed_in_settings(self): | CODE |
| LOW⚡ | project/tests/test_sensitive_data_in_request.py | 131 | def test_sensitive_values_remain_unmasked_with_empty_settings(self): | CODE |
| LOW | project/tests/test_sensitive_data_in_request.py | 182 | def test_password_in_batched_json(self): | CODE |
| LOW | project/tests/test_sensitive_data_in_request.py | 207 | def test_authorization_header(self): | CODE |
| LOW | project/tests/test_sensitive_data_in_request.py | 245 | def test_hide_sensitive_headers(self): | CODE |
| LOW | project/tests/test_db.py | 23 | def test_profile_request_to_db(self): | CODE |
| LOW | project/tests/test_db.py | 32 | def test_profile_request_to_db_with_constraints(self): | CODE |
| LOW | project/tests/test_code.py | 40 | def test_code_context_from_request(self): | CODE |
| LOW | project/tests/test_encoding.py | 38 | def test_utf_json_not_encoded(self): | CODE |
| LOW | project/tests/test_encoding.py | 60 | def test_utf_json_encoded_no_charset(self): | CODE |
| LOW | project/tests/test_encoding.py | 72 | def test_invalid_encoding_json(self): | CODE |
| LOW | project/tests/test_encoding.py | 109 | def test_utf_json_not_encoded(self): | CODE |
| LOW | project/tests/test_encoding.py | 131 | def test_utf_json_encoded_no_charset(self): | CODE |
| LOW | project/tests/test_encoding.py | 143 | def test_invalid_encoding_json(self): | CODE |
| LOW⚡ | project/tests/test_encoding.py | 166 | def test_application_javascript_no_warning(self): | CODE |
| LOW⚡ | project/tests/test_encoding.py | 173 | def test_text_javascript_no_warning(self): | CODE |
| LOW⚡ | project/tests/test_encoding.py | 180 | def test_application_x_javascript_no_warning(self): | CODE |
| LOW⚡ | project/tests/test_encoding.py | 187 | def test_text_x_javascript_no_warning(self): | CODE |
| LOW⚡ | project/tests/test_encoding.py | 194 | def test_json_content_type_warns_on_invalid_json(self): | CODE |
| 106 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | silk/models.py | 326 | except IndexError: # Reach the end | CODE |
| HIGH | silk/model_factory.py | 49 | except (IndexError, ValueError): | CODE |
| HIGH | silk/model_factory.py | 157 | except AttributeError: | CODE |
| HIGH | silk/model_factory.py | 176 | except AttributeError: | CODE |
| HIGH | silk/model_factory.py | 162 | except AttributeError: | CODE |
| HIGH | silk/code_generation/curl.py | 22 | except TypeError: | CODE |
| HIGH | silk/code_generation/django_test_client.py | 23 | except TypeError: | CODE |
| HIGH | silk/views/summary.py | 53 | except IndexError: | CODE |
| HIGH | silk/views/profiling.py | 37 | except ValueError: | CODE |
| HIGH | silk/views/request_detail.py | 33 | except (ValueError, TypeError): | CODE |
| HIGH | project/tests/test_view_requests.py | 136 | except IndexError: | CODE |
| HIGH | project/tests/test_view_requests.py | 176 | except IndexError: | CODE |
| HIGH | project/tests/test_view_profiling.py | 54 | except IndexError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | silk/static/silk/lib/jquery-3.6.0.min.js | 2 | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):f | CODE |
| CRITICAL | silk/static/silk/lib/jquery-ui-1.13.2.min.js | 6 | !function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(V){"use strict" | CODE |
| CRITICAL | silk/static/silk/lib/jquery-ui-1.13.1.min.js | 6 | !function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(V){"use strict" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | project/tests/test_view_summary_view.py | 0 | filters are not present because there is no `session` to store them. | STRING |
| HIGH | project/tests/test_view_requests.py | 0 | filters are not present because there is no `session` to store them. | STRING |
| HIGH | project/tests/test_view_profiling.py | 0 | filters are not present because there is no `session` to store them. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/conf.py | 1 | # | COMMENT |
| LOW | docs/conf.py | 41 | project = 'silk' | COMMENT |
| LOW | docs/conf.py | 61 | # today_fmt = '%B %d, %Y' | COMMENT |
| LOW | docs/conf.py | 81 | COMMENT | |
| LOW | docs/conf.py | 101 | # html_theme_options = {} | COMMENT |
| LOW | docs/conf.py | 121 | COMMENT | |
| LOW | docs/conf.py | 141 | # html_sidebars = {} | COMMENT |
| LOW | docs/conf.py | 161 | COMMENT | |
| LOW | docs/conf.py | 181 | # 'papersize': 'letterpaper', | COMMENT |
| LOW | docs/conf.py | 201 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | silk/models.py | 300 | CODE | |
| LOW | silk/collector.py | 144 | CODE | |
| LOW | silk/sql.py | 32 | CODE | |
| LOW | silk/model_factory.py | 140 | CODE | |
| LOW | silk/model_factory.py | 258 | CODE | |
| LOW | silk/middleware.py | 183 | CODE | |
| LOW | silk/utils/data_deletion.py | 5 | CODE | |
| LOW | silk/profiling/dynamic.py | 77 | CODE | |
| LOW | silk/views/clear_db.py | 25 | CODE | |
| LOW | silk/views/profiling.py | 47 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | silk/static/silk/js/components/filters.js | 8 | text = $this.attr('placeholder').trim(); | CODE |
| LOW | silk/static/silk/lib/jquery-ui-1.13.2.min.js | 6 | !function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(V){"use strict" | CODE |
| LOW | silk/static/silk/lib/jquery-ui-1.13.1.min.js | 6 | !function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(V){"use strict" | CODE |
| LOW⚡ | project/tests/test_profile_dot.py | 100 | dummy_data = b'dummy data' | CODE |
| LOW⚡ | project/tests/test_profile_dot.py | 101 | stream = self._mock_file(dummy_data) | CODE |
| LOW⚡ | project/tests/test_profile_dot.py | 105 | self.assertEqual(f.read(), dummy_data) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | silk/model_factory.py | 110 | except Exception as e: | CODE |
| LOW | silk/model_factory.py | 115 | except Exception: | CODE |
| LOW | silk/model_factory.py | 136 | except Exception: | CODE |
| LOW | silk/model_factory.py | 166 | except Exception as e: | CODE |
| LOW | silk/profiling/profiler.py | 162 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/conf.py | 5 | # This file is execfile()d with the current directory set to its | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | silk/sql.py | 69 | """wrapper around real execute_sql in order to extract information""" | STRING |
| LOW | project/tests/test_profile_dot.py | 53 | # just use the filename of the temp file already created | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | silk/middleware.py | 110 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | project/tests/__init__.py | 1 | CODE |