Skip to content
CAI
Software that uses CAICheck a score

pcchou/srg

40.5

Weak · 21 September 2026

704

lines of production code

JavaScript

with Python, PHP, Java, VB.NET

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a multi-language toolkit for generating fake Speedtest.net result images and links. It provides implementations in VB.NET, Bash, Java, Node.js, PHP, and Python, each offering 'normal' and 'smart' modes to simulate network conditions. The core functionality allows users to input download, upload, and ping values to produce a visual result via the Speedtest.net API.

Features

Add SpeedTest result generator web interface

The web application now includes a new SpeedTest result generator. Users can input download/upload speeds and ping values, select between simulation and normal modes, and generate a speed test image via a PHP backend. The interface uses Bootstrap 3.2.0 from CDN and jQuery 2.1.1, with the custom srg.js script handling the form submission and result display.

web · high confidence

Add Speedtest API integration module

A new module, srg.js, has been added to the Node.js environment, providing a \getResult\ function that interfaces with the Speedtest.net API. This module allows users to perform network tests by specifying download, upload, and ping parameters, with built-in randomization and range-fixing logic to ensure valid request values.

nodejs · high confidence

Added 'smart mode' to the bash speedtest script

The bash script \bash/srg.sh\ was added, introducing a 'smart mode' that dynamically calculates download, upload, and ping parameters using random number generation, as opposed to the 'normal' mode which uses them directly. This new mode adjusts the network parameters based on a random factor to simulate different network conditions.

bash · high confidence

Added PHP backend scripts for speedtest.net API integration

The PHP directory now includes \func.php\ and \srg.php\, which implement the core logic for interacting with the speedtest.net API. \srg.php\ serves as the main entry point, handling requests for both standard and 'smart' modes, where the latter applies randomization to download, upload, and ping values. \func.php\ contains helper functions, including \getSpeedtestImageURL\ and \getSpeedtestImageURLS\, which construct the API requests and return the resulting image URLs.

php · high confidence

Added Python scripts for Speedtest.net API interaction

Two new Python scripts, srg.py and srg\_stepbystep.py, were added to the python directory. srg.py provides a command-line interface for both 'normal' and 'smart' modes, with compatibility for both Python 2 and Python 3. srg\_stepbystep.py offers an interactive, step-by-step interface for the same functionality, supporting both kbps and mbps units, and is designed for Python 3. Both scripts interact with the Speedtest.net API to generate test results.

python · high confidence

Added a Bukkit plugin to generate fake speed test results

A new Java-based Bukkit plugin named 'Srg' has been added, allowing server administrators to simulate speed test results via the '/srg' command. The plugin accepts download speed, upload speed, and ping as arguments, then calls an internal API to generate a fake result ID from speedtest.net. The implementation includes build scripts (Ant), Eclipse project configuration, and the core Java classes for command handling and API interaction.

java · high confidence

Initial release of the Speedtest Result Generator Windows Forms application

The application now includes a complete Windows Forms interface (Form1) featuring controls for selecting a server, entering ping, download, and upload speed values, and a 'SmartMode' checkbox. The main form's designer file (Form1.Designer.vb) and code-behind (Form1.vb) define the UI layout and the logic to generate a speedtest result link and image by posting data to speedtest.net. This change adds the core UI and backend logic for the tool.

VB.net · high confidence

Dependencies

Added VB.NET project file for speedtest-result-generator

A new MSBuild project file (speedtest-result-generator.vbproj) was added to the repository, defining a Windows Forms application targeting .NET Framework v2.0. This establishes the build configuration and file structure for the speedtest-result-generator component.

(dependencies) · medium confidence

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.

Score

  • CAI 41 → 40 (-0.7)
  • Rubric changed (rubric-2026.08.18 → rubric-2026.09.15) — scores are not directly comparable.

Lenses

  • Code Health 97 → 94 (-2.2)
  • Architecture 69 → 69 (+0.0)
  • Maturity 45 → 45 (+0.0)
  • Readiness 17 → 17 (+0.0)
  • Security 92 → 84 (-7.9)

Resolved (9)

  • Dependency hygiene not measured — no packages were read
  • Duplicated block (22 lines × 2) (python/srg.py)
  • No exposed public API
  • Test reliability not measured — no test run produced results
  • The README describes all versions (Python/srg_stepbystep.py/bash/php) and their usage, but it does not explain what each version does differently or how to choose between them. (README.md)
  • XML-doc coverage: speedtest-result-generator (VB.net/speedtest-result-generator.vbproj)
  • dormant codebase — no living knowledge left to concentrate
  • sub (cognitive 23) (web/srg.js)
  • sub (cyclomatic 18) (web/srg.js)

New (6)

  • Documentation: no installation or build instructions (README.md)
  • Duplicated block (31 lines × 2) (python/srg.py)
  • Medium: security finding (details withheld)
  • No ADRs found
  • srg.sub (cognitive 28) (web/srg.js)
  • srg.sub (cyclomatic 20) (web/srg.js)

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

pcchou/srg was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 21 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 69b02e844beb9e7059a3c289de467783b2cecbdd — the exact code this score is about.
  • Scored under rubric-2026.09.15 — the same rubric and the same method as every other entry in this index.
  • Measured by watchdog.canine.dev using codehealth-analyzer preprod-28e75b8e3254.