Coding Insights to Reduce Future Technical Debt

Program Summary of C:\Users\MisterDan\browser-agent\tests\employee_web_db.spsrc

(Compiled On: 2026-04-29 at 04:39:15)

MetricValue
Total Lines of Code (LOC)615
Total Adjusted LOC527
Include Files0
Routines13
Variables62
Unused Routines0
Unused Variables0
Clusters0
Arrays0
Database Tables1
Literals497
Constants0
Pass Statements0
External Libraries0
External Calls0

Summary Notes

Most Complex Routine: serve_list -- Complexity: 22)

Suggestions:
  1. Reduce nesting in complex routines.
  2. Replace literals with named constants where reasonable.
  3. Modularize large routines for better readability.

Routine: serve_list

Filename: C:\\Users\\MisterDan\\browser-agent\\tests\\employee_web_db.spsrc
Line#: 69

MetricValueStatus
22good
63moderate
79critical
SuggestionsSimplify logic and decompose into smaller local routines.

Routine: build_toolbar

Filename: C:\\Users\\MisterDan\\browser-agent\\tests\\employee_web_db.spsrc
Line#: 486

MetricValueStatus
18good
51moderate
52critical
SuggestionsWhere possible, replace literals with named constants.

Filename: C:\\Users\\MisterDan\\browser-agent\\tests\\employee_web_db.spsrc
Line#: 164

MetricValueStatus
17good
65moderate
70critical
SuggestionsWhere possible, replace literals with named constants.

Routine: serve_view

Filename: C:\\Users\\MisterDan\\browser-agent\\tests\\employee_web_db.spsrc
Line#: 430

MetricValueStatus
9good
46moderate
58critical
SuggestionsWhere possible, replace literals with named constants.

Routine: serve_edit_form

Filename: C:\\Users\\MisterDan\\browser-agent\\tests\\employee_web_db.spsrc
Line#: 327

MetricValueStatus
3good
67moderate
66critical
SuggestionsWhere possible, replace literals with named constants.

Routine: serve_update

Filename: C:\\Users\\MisterDan\\browser-agent\\tests\\employee_web_db.spsrc
Line#: 400

MetricValueStatus
3good
12good
14good
SuggestionsRoutine is well-optimized. No changes needed.

Routine: serve_delete

Filename: C:\\Users\\MisterDan\\browser-agent\\tests\\employee_web_db.spsrc
Line#: 418

MetricValueStatus
3good
6good
2good
SuggestionsRoutine is well-optimized. No changes needed.

Routine: serve_add_form

Filename: C:\\Users\\MisterDan\\browser-agent\\tests\\employee_web_db.spsrc
Line#: 254

MetricValueStatus
0good
55moderate
51critical
SuggestionsWhere possible, replace literals with named constants.

Routine: build_department_options

Filename: C:\\Users\\MisterDan\\browser-agent\\tests\\employee_web_db.spsrc
Line#: 552

MetricValueStatus
0good
11good
11good
SuggestionsRoutine is well-optimized. No changes needed.

Routine: build_department_filter

Filename: C:\\Users\\MisterDan\\browser-agent\\tests\\employee_web_db.spsrc
Line#: 566

MetricValueStatus
0good
14good
17moderate
SuggestionsRoutine is well-optimized. No changes needed.

Routine: build_status_options

Filename: C:\\Users\\MisterDan\\browser-agent\\tests\\employee_web_db.spsrc
Line#: 583

MetricValueStatus
0good
11good
11good
SuggestionsRoutine is well-optimized. No changes needed.

Routine: build_sort_options

Filename: C:\\Users\\MisterDan\\browser-agent\\tests\\employee_web_db.spsrc
Line#: 597

MetricValueStatus
0good
18good
23moderate
SuggestionsWhere possible, replace literals with named constants.

Routine: serve_save

Filename: C:\\Users\\MisterDan\\browser-agent\\tests\\employee_web_db.spsrc
Line#: 312

MetricValueStatus
0good
12good
13good
SuggestionsRoutine is well-optimized. No changes needed.

Top Significant Include Files


Top Significant Unused Variables


Top Significant Unused Routines


Top Significant Tables

Name

Top Significant Clusters


Top Significant Arrays


Top Significant Pass Statements


Top Significant Library Statements


Top Significant External Calls