Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
This report summarizes scanner evidence for phaserjs/phaser, a JavaScript project with 40,609 GitHub stars. SynthScan examined 559,073 lines of code across 3489 source files, recording 72 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 0.7 (Low 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.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 37 finding(s).
Are imports declared and package/API names verified? 32 finding(s).
Are wrappers, guards, and repeated structures necessary? 16 finding(s).
Which changes need focused human review? 72 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
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 72 distinct pattern matches across 8 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 |
|---|---|---|---|---|
| CRITICAL | …nderer/webgl/wrappers/WebGLTextureUnitsWrapper.test.js | 397 | var nullBindCalls = renderer.gl.bindTexture.mock.calls.filter(function (call) | CODE |
| CRITICAL | …nderer/webgl/wrappers/WebGLTextureUnitsWrapper.test.js | 425 | renderer.gl.bindTexture.mock.calls.forEach(function (call) | CODE |
| CRITICAL | tests/gameobjects/bitmaptext/ParseFromAtlas.test.js | 119 | scene.sys.cache.xml.get.mockReturnValue(null); | CODE |
| CRITICAL | tests/gameobjects/bitmaptext/ParseFromAtlas.test.js | 137 | scene.sys.cache.xml.get.mockReturnValue(undefined); | CODE |
| CRITICAL | tests/gameobjects/bitmaptext/ParseFromAtlas.test.js | 147 | scene.sys.cache.xml.get.mockReturnValue(null); | CODE |
| CRITICAL | tests/gameobjects/bitmaptext/ParseFromAtlas.test.js | 222 | scene.sys.cache.xml.get.mockReturnValue(null); | CODE |
| CRITICAL | tests/gameobjects/bitmaptext/ParseFromAtlas.test.js | 247 | scene.sys.cache.xml.get.mockReturnValue(mockXml); | CODE |
| CRITICAL | tests/gameobjects/bitmaptext/ParseFromAtlas.test.js | 261 | scene.sys.cache.xml.get.mockReturnValue(mockXml); | CODE |
| CRITICAL | tests/gameobjects/bitmaptext/ParseFromAtlas.test.js | 272 | scene.sys.cache.xml.get.mockReturnValue(mockXml); | CODE |
| CRITICAL | …s/Phaser 4 Pixel Art Guide/Phaser 4 Pixel Art Guide.md | 25 | - Apply a Blocky filter to the camera: `this.cameras.main.filters.external.addBlocky({ size: 8 });` | CODE |
| CRITICAL | …s/Phaser 4 Pixel Art Guide/Phaser 4 Pixel Art Guide.md | 29 | - Apply a Pixelate filter to the camera: `this.cameras.main.filters.external.addBlocky(6);` | CODE |
| CRITICAL | …s/Phaser 4 Pixel Art Guide/Phaser 4 Pixel Art Guide.md | 245 | - `this.cameras.main.filters.external.addBlocky({ size: 8 });` | CODE |
| CRITICAL | …s/Phaser 4 Pixel Art Guide/Phaser 4 Pixel Art Guide.md | 261 | `this.cameras.main.filters.external.addPixelate(6);` | CODE |
| CRITICAL | …s/Phaser 4 Pixel Art Guide/Phaser 4 Pixel Art Guide.md | 278 | this.cameras.main.filters.external.addQuantize({ | CODE |
| CRITICAL | …s/Phaser 4 Pixel Art Guide/Phaser 4 Pixel Art Guide.md | 316 | - Apply a Blocky filter to the camera: `this.cameras.main.filters.external.addBlocky({ size: 8 });` | CODE |
| CRITICAL | …s/Phaser 4 Pixel Art Guide/Phaser 4 Pixel Art Guide.md | 320 | - Apply a Pixelate filter to the camera: `this.cameras.main.filters.external.addBlocky(6);` | CODE |
| CRITICAL | src/filters/Blend.js | 106 | var phaserTexture = this.camera.scene.sys.textures.getFrame(texture); | CODE |
| CRITICAL | src/filters/Mask.js | 283 | var phaserTexture = this.camera.scene.sys.textures.getFrame(texture); | CODE |
| CRITICAL | src/filters/ImageLight.js | 173 | var phaserTexture = texture instanceof Texture ? texture : this.camera.scene.sys.textures.getFrame(texture); | CODE |
| CRITICAL | src/filters/ImageLight.js | 194 | var phaserTexture = texture instanceof Texture ? texture : this.camera.scene.sys.textures.getFrame(texture); | CODE |
| CRITICAL | src/filters/CombineColorMatrix.js | 123 | var phaserTexture = texture instanceof Texture ? texture : this.camera.scene.sys.textures.getFrame(texture); | CODE |
| CRITICAL | src/filters/Displacement.js | 104 | var phaserTexture = this.camera.scene.sys.textures.getFrame(texture); | CODE |
| CRITICAL | src/filters/Wipe.js | 257 | this.wipeTexture = this.camera.scene.sys.textures.get(texture) || this.camera.scene.sys.textures.get('__DEFA | CODE |
| CRITICAL | src/renderer/webgl/renderNodes/ShaderQuad.js | 165 | var baseShader = this.manager.renderer.game.cache.shader.get(vertexKey); | CODE |
| CRITICAL | src/renderer/webgl/renderNodes/ShaderQuad.js | 183 | baseShader = this.manager.renderer.game.cache.shader.get(fragmentKey); | CODE |
| CRITICAL | …renderer/webgl/renderNodes/filters/BaseFilterShader.js | 54 | var baseShader = manager.renderer.game.cache.shader.get(fragmentShaderKey); | CODE |
| CRITICAL | src/gameobjects/video/Video.js | 614 | var video = this.scene.sys.cache.video.get(key); | CODE |
| CRITICAL | src/gameobjects/bitmaptext/static/BitmapText.js | 111 | var entry = this.scene.sys.cache.bitmapFont.get(font); | CODE |
| CRITICAL | src/gameobjects/bitmaptext/static/BitmapText.js | 835 | var entry = this.scene.sys.cache.bitmapFont.get(key); | CODE |
| CRITICAL | src/loader/filetypes/VideoFile.js | 53 | var urlConfig = loader.systems.game.device.video.getVideoURL(url); | CODE |
| CRITICAL | src/sound/html5/HTML5AudioSoundManager.js | 175 | this.game.cache.audio.entries.each(function (key, tags) | CODE |
| CRITICAL | src/sound/html5/HTML5AudioSoundManager.js | 215 | _this.game.cache.audio.entries.each(function (key, tags) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/scale/ScaleManager.js | 553 | // The un-modified game size, as requested in the game config (the raw width / height) as used for world bounds | COMMENT |
| HIGH | src/scale/ScaleManager.js | 780 | // The un-modified game size, as requested in the game config (the raw width / height) as used for world bounds | COMMENT |
| HIGH | src/scale/ScaleManager.js | 845 | // The un-modified game size, as requested in the game config (the raw width / height) as used for world bounds | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | types/index.d.ts | 1 | /// <reference types="./phaser" /> | COMMENT |
| LOW | tests/textures/parsers/PVRParser.test.js | 1 | var PVRParser = require('../../../src/textures/parsers/PVRParser'); | COMMENT |
| LOW | tests/textures/parsers/KTXParser.test.js | 1 | var KTXParser = require('../../../src/textures/parsers/KTXParser'); | COMMENT |
| LOW | scripts/tsgen/test/bin/game.js | 1 | "use strict"; | COMMENT |
| LOW | src/textures/parsers/VerifyCompressedTexture.js | 161 | // ATC internal formats: | COMMENT |
| LOW | src/plugins/BasePlugin.js | 81 | // Here are the game-level events you can listen to. | COMMENT |
| LOW | src/tweens/tween/ReservedProps.js | 1 | /** | COMMENT |
| LOW | src/tweens/builders/GetValueOp.js | 261 | // y: { value: 300, ... } | COMMENT |
| LOW | src/gameobjects/BuildGameObjectAnimation.js | 41 | } | COMMENT |
| LOW | src/gameobjects/blitter/BlitterFactory.js | 41 | // this.displayList - a reference to the Display List the Scene owns | COMMENT |
| LOW | …objects/bitmaptext/dynamic/DynamicBitmapTextFactory.js | 61 | // this.scene - a reference to the Scene that owns the GameObjectFactory | COMMENT |
| LOW | src/gameobjects/pathfollower/PathFollowerFactory.js | 41 | COMMENT | |
| LOW | src/gameobjects/text/TextCreator.js | 41 | // backgroundColor: [ 'backgroundColor', null ], | COMMENT |
| LOW | src/gameobjects/extern/ExternFactory.js | 41 | // this.scene - a reference to the Scene that owns the GameObjectFactory | COMMENT |
| LOW | src/gameobjects/captureframe/CaptureFrameFactory.js | 41 | // this.displayList - a reference to the Display List the Scene owns | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/renderer/webgl/wrappers/WebGLVAOWrapper.test.js | 59 | function makeAttributeBufferLayout (layouts, opts) | CODE |
| LOW | tests/input/keyboard/KeyboardPlugin.test.js | 4 | function createMockSceneInputPlugin () | CODE |
| LOW | tests/tilemaps/parsers/tiled/ParseTilesets.test.js | 39 | function makeCollectionTilesetJSON(overrides) | CODE |
| LOW | …sts/tilemaps/components/HexagonalWorldToTileXY.test.js | 30 | function makeLayerWithTilemapLayer (overrides) | CODE |
| LOW | tests/tilemaps/components/WorldToTileX.test.js | 16 | function makeLayerWithTilemapLayer (tileWidth, tileHeight, layerX, layerY, scaleX, scaleY, scrollFactorX) | CODE |
| LOW | …sts/tilemaps/components/HexagonalTileToWorldXY.test.js | 20 | function makeLayerWithTilemapLayer (staggerAxis, staggerIndex, layerOptions, cameraOptions) | CODE |
| LOW | tests/sound/webaudio/WebAudioSound.test.js | 44 | function createMockStereoPannerNode () | CODE |
| LOW | tests/sound/webaudio/WebAudioSound.test.js | 59 | function createMockBufferSourceNode () | CODE |
| LOW | tests/animations/AnimationState.test.js | 59 | function createMockAnimationManager () | CODE |
| LOW | …derer/webgl/wrappers/WebGLVertexBufferLayoutWrapper.js | 32 | initialize: function WebGLVertexBufferLayoutWrapper (renderer, layout, buffer) | CODE |
| LOW | src/physics/matter-js/poly-decomp/index.js | 610 | function polygonRemoveCollinearPoints(polygon, precision){ | CODE |
| LOW | src/physics/matter-js/poly-decomp/index.js | 627 | function polygonRemoveDuplicatePoints(polygon, precision){ | CODE |
| LOW | src/data/DataManager.js | 31 | * @class DataManager | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/setup.js | 13 | // ── Globals that jsdom doesn't provide ────────────────────────────────────── | COMMENT |
| MEDIUM | tests/setup.js | 46 | // ── Image mock ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/setup.js | 92 | // ── Canvas 2D Context mock ────────────────────────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/gameobjects/particles/ParticleEmitter.js | 1880 | // emitZone: { type: 'edge', source: X, quantity: 32, [stepRate=0], [yoyo=false], [seamless=true], [tot | COMMENT |
| MEDIUM | src/gameobjects/particles/zones/EdgeZone.js | 107 | * @name Phaser.GameObjects.Particles.Zones.EdgeZone#seamless | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | skills/filters-and-postfx/SKILL.md | 16 | // Step 1: Enable the filter system on the game object (WebGL only) | COMMENT |
| LOW | skills/filters-and-postfx/SKILL.md | 19 | // Step 2: Add filters via .filters.internal or .filters.external | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/renderer/webgl/renderNodes/RenderNode.js | 89 | * Don't forget to call it in your custom method. | COMMENT |
| LOW | src/renderer/webgl/renderNodes/RenderNode.js | 102 | * Don't forget to call it in your custom method. | COMMENT |