This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | |||
2 | <style id="yolk-profiler" type="text/css"> |
||
3 | #yolk-container { |
||
4 | clear:both; |
||
5 | color: #dddddd; |
||
6 | background: #323A42; |
||
7 | overflow: hidden; |
||
8 | margin-bottom: 20px; |
||
9 | font-family:"Lucida Grande", Tahoma, Arial, sans-serif; |
||
10 | margin: 0 auto; |
||
11 | display: none; |
||
12 | } |
||
13 | |||
14 | #yolk-container .green { color:#588E13 !important; } |
||
15 | #yolk-container .blue { color:#3769A0 !important; } |
||
16 | #yolk-container .purple { color:#953FA1 !important; } |
||
17 | #yolk-container .orange { color:#D28C00 !important; } |
||
18 | #yolk-container .red { color:#B72F09 !important; } |
||
19 | |||
20 | #yolk-container .yolk-box { |
||
21 | width: 960px; |
||
22 | padding:20px; |
||
23 | clear: left; |
||
24 | } |
||
25 | |||
26 | #yolk-container .yolk-box > h4 { |
||
27 | font-size: 20px; |
||
28 | margin:0 0 10px 0; |
||
29 | } |
||
30 | |||
31 | #yolk-container .yolk-box table { |
||
32 | border-collapse: collapse; |
||
33 | border-top: 1px solid #888888; |
||
34 | width: 100%; |
||
35 | } |
||
36 | |||
37 | #yolk-container .yolk-box table tr { |
||
38 | border-bottom: 1px solid #888888; |
||
39 | } |
||
40 | |||
41 | #yolk-container .yolk-box table th, |
||
42 | #yolk-container .yolk-box table td { |
||
43 | padding: 5px 10px; |
||
44 | text-align: right; |
||
45 | vertical-align: top; |
||
46 | } |
||
47 | |||
48 | #yolk-container .yolk-box table .center { |
||
49 | text-align: center; |
||
50 | } |
||
51 | |||
52 | #yolk-container .yolk-box table .left { |
||
53 | text-align: left; |
||
54 | } |
||
55 | |||
56 | #yolk-container .yolk-box table td { |
||
57 | color: #ffffcc; |
||
58 | } |
||
59 | |||
60 | #yolk-container .yolk-box table th, |
||
61 | #yolk-container .yolk-box table .caption { |
||
62 | color: #ffffff; |
||
63 | } |
||
64 | |||
65 | #yolk-metrics { |
||
66 | overflow: hidden; |
||
67 | padding:0; |
||
68 | } |
||
69 | |||
70 | #yolk-metrics div { |
||
71 | float:left; |
||
72 | width: 200px; |
||
73 | color:#588E13; |
||
74 | text-align: center; |
||
75 | cursor: pointer; |
||
76 | border-bottom: 5px solid #888888; |
||
77 | margin-right: 2px; |
||
78 | } |
||
79 | |||
80 | #yolk-metrics div:hover { |
||
81 | border-color: #ffffff; |
||
82 | } |
||
83 | |||
84 | #yolk-metrics div var { |
||
85 | font-style: normal; |
||
86 | font-size: 24px; |
||
87 | } |
||
88 | |||
89 | #yolk-metrics div h4 { |
||
90 | color: #eeeeee; |
||
91 | font-size: 14px; |
||
92 | margin:5px 0 0 0; |
||
93 | font-weight: normal; |
||
94 | } |
||
95 | |||
96 | |||
97 | #yolk-timing table th, |
||
98 | #yolk-timing table td { |
||
99 | white-space: nowrap; |
||
100 | } |
||
101 | |||
102 | #yolk-queries { |
||
103 | width: auto !important; |
||
104 | } |
||
105 | |||
106 | #yolk-queries table tr td, |
||
107 | #yolk-queries table tr th { |
||
108 | max-width: 800px !important; |
||
109 | } |
||
110 | |||
111 | #yolk-timing, |
||
112 | #yolk-queries, |
||
113 | #yolk-includes { |
||
114 | display: none; |
||
115 | } |
||
116 | </style> |
||
117 | |||
118 | <div id="yolk-container"> |
||
119 | <script type="text/javascript"> |
||
120 | |||
121 | addEvent(window, 'load', loadYolkCSS); |
||
122 | |||
123 | function loadYolkCSS() { |
||
124 | var sheet = document.getElementById('yolk-profiler'); |
||
125 | sheet.parentNode.removeChild(sheet); |
||
126 | document.getElementsByTagName("head")[0].appendChild(sheet); |
||
127 | setTimeout(function(){document.getElementById("yolk-container").style.display = "block"}, 10); |
||
128 | } |
||
129 | |||
130 | function addEvent( obj, type, fn ) { |
||
131 | if ( obj.attachEvent ) { |
||
132 | obj["e"+type+fn] = fn; |
||
133 | obj[type+fn] = function() { obj["e"+type+fn]( window.event ) }; |
||
134 | obj.attachEvent( "on"+type, obj[type+fn] ); |
||
135 | } |
||
136 | else{ |
||
137 | obj.addEventListener( type, fn, false ); |
||
138 | } |
||
139 | } |
||
140 | |||
141 | function showYolkPane( id ) { |
||
142 | document.getElementById('yolk-timing').style.display = 'none'; |
||
143 | document.getElementById('yolk-queries').style.display = 'none'; |
||
144 | document.getElementById('yolk-includes').style.display = 'none'; |
||
145 | document.getElementById(id).style.display = 'block'; |
||
146 | } |
||
147 | |||
148 | </script> |
||
149 | <div id="yolk-metrics" class="yolk-box"> |
||
150 | |||
151 | <div class="blue" onclick="showYolkPane('yolk-timing')"> |
||
152 | <var><?=number_format($report['duration'] * 1000, 3)?> ms</var> |
||
153 | <h4>Execution Time</h4> |
||
154 | </div> |
||
155 | |||
156 | <div class="purple" onclick="showYolkPane('yolk-queries')"> |
||
157 | <var><?=count($report['queries'])?> Queries</var> |
||
158 | <h4>Database</h4> |
||
159 | </div> |
||
160 | |||
161 | <div class="orange" onclick="showYolkPane('yolk-timing')"> |
||
162 | <var><?=number_format($report['memory'] / 1024 / 1024, 3)?> MB</var> |
||
163 | <h4>Peak Memory</h4> |
||
164 | </div> |
||
165 | |||
166 | <div class="red" onclick="showYolkPane('yolk-includes')"> |
||
167 | <var><?=count($report['includes'])?> Files</var> |
||
168 | <h4>Included</h4> |
||
169 | </div> |
||
170 | </div> |
||
171 | |||
172 | <div id="yolk-timing" class="yolk-box"> |
||
173 | |||
174 | <h4 class="blue">Timers</h4> |
||
175 | <table> |
||
176 | <tr> |
||
177 | <th class="left caption">Name</th> |
||
178 | <th>Elapsed</th> |
||
179 | </tr> |
||
180 | View Code Duplication | <?php foreach( $report['timers'] as $name => $elapsed ) { ?> |
|
0 ignored issues
–
show
|
|||
181 | <tr> |
||
182 | <td class="left caption"><?=$name?></td> |
||
183 | <td><?=number_format($elapsed * 1000, 3)?> ms</td> |
||
184 | </tr> |
||
185 | <?php } ?> |
||
186 | </table> |
||
187 | |||
188 | <h4 class="blue">Script Execution</h4> |
||
189 | <table> |
||
190 | <tr> |
||
191 | <th> </th> |
||
192 | <th class="left">Step</th> |
||
193 | <th>Elapsed</th> |
||
194 | <th>Diff</th> |
||
195 | <th>Memory</th> |
||
196 | <th>Diff</th> |
||
197 | </tr> |
||
198 | View Code Duplication | <?php $i = 1; foreach( $report['marks'] as $name => $mark ) { ?> |
|
0 ignored issues
–
show
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
199 | <tr> |
||
200 | <td class="center caption"><?=$i++?></td> |
||
201 | <td class="left caption"><?=$name?></td> |
||
202 | <td><?=number_format($mark['elapsed'] * 1000, 3)?> ms</td> |
||
203 | <td><?=number_format($mark['time_diff'] * 1000, 3)?> ms</td> |
||
204 | <td><?=number_format($mark['memory'] / 1024 / 1024, 3)?> MB</td> |
||
205 | <td><?=number_format($mark['memory_diff'] / 1024 / 1024, 3)?> MB</td> |
||
206 | </tr> |
||
207 | <?php } ?> |
||
208 | </table> |
||
209 | |||
210 | </div> |
||
211 | |||
212 | <div id="yolk-queries" class="yolk-box"> |
||
213 | |||
214 | <h4 class="purple">Database Queries</h4> |
||
215 | |||
216 | <table> |
||
217 | <tr> |
||
218 | <th> </th> |
||
219 | <th class="left caption">Query</th> |
||
220 | <th class="left">Parameters</th> |
||
221 | <th style="width: 120px">Duration</th> |
||
222 | </tr> |
||
223 | View Code Duplication | <?php $i = 1; $total = 0; foreach( $report['queries'] as $query ) { ?> |
|
0 ignored issues
–
show
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. ![]() |
|||
224 | <tr> |
||
225 | <td class="center caption"><?=$i++?></td> |
||
226 | <td class="left caption sql"><?=nl2br($query['query'])?></td> |
||
227 | <td class="left caption"> |
||
228 | <?php foreach( $query['params'] as $k => $v ) { ?> |
||
229 | <?="{$k} => {$v}<br />\n"?> |
||
230 | <?php } ?> |
||
231 | </td> |
||
232 | <td><?=number_format($query['duration'] * 1000, 3)?> ms<?php $total += $query['duration']?></td> |
||
233 | </tr> |
||
234 | <?php } ?> |
||
235 | <tr> |
||
236 | <td colspan="3" class="caption">Total:</td> |
||
237 | <td><?=number_format($total * 1000, 3)?> ms</td> |
||
238 | </tr> |
||
239 | </table> |
||
240 | |||
241 | </div> |
||
242 | |||
243 | <div id="yolk-includes" class="yolk-box"> |
||
244 | |||
245 | <h4 class="red">Included Files</h4> |
||
246 | |||
247 | <ol> |
||
248 | <?php sort($report['includes']); foreach( $report['includes'] as $file ) { ?> |
||
249 | <li><?=$file?></li> |
||
250 | <?php } ?> |
||
251 | </ol> |
||
252 | |||
253 | </div> |
||
254 | </div> |
||
255 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.