- 
		Home
	
 
	- 
Jetpack – WP Security, Backup, Speed, & Growth
 
- 
15.0.2
 
- 
Code
 
- 
Classes
 
-  Jetpack_Top_Posts_Widget 
 
	
	
		
			
				
					
													
								
																			
											| Total Complexity | 
											95 | 
										
																			
											| Dependencies | 
											5 | 
										
																			
											| Dependents | 
											1 | 
										
																	
							 
													
								
																			
											| Total lines | 
											802 | 
										
																			
											| Lines of code | 
											443 | 
										
																			
											| Logical lines of code | 
											243 | 
										
																	
							 
													
								
																			
											| Comment lines | 
											264 | 
										
																			
											| Methods | 
											13 | 
										
																			
											| Properties | 
											2 | 
										
																	
							 
											 
				 
									
							 
		 
	 
	Methods 13
	
		
		
			| Method | 
							Rating | 
													
					
						Maintainability
					
				 | 
										
					Complexity
				 | 
										
					Lines of code
				 | 
					
		
		
					
				| widget() | 
									D  | 
																	24  | 
													36 | 
													173 | 
							
					
				| form() | 
									B  | 
																	37 | 
													14 | 
													77 | 
							
					
				| get_posts() | 
									A  | 
																	46 | 
													12 | 
													37 | 
							
					
				| update() | 
									A  | 
																	49 | 
													10 | 
													28 | 
							
					
				| get_by_views() | 
									A  | 
																	44 | 
													8 | 
													43 | 
							
					
				| get_fallback_posts() | 
									S  | 
																	56 | 
													4 | 
													19 | 
							
					
				| fallback_message() | 
									S  | 
																	55 | 
													3 | 
													21 | 
							
					
				| hide_widget_in_block_editor() | 
									S  | 
																	71 | 
													2 | 
													6 | 
							
					
				| get_by_likes() | 
									S  | 
																	68 | 
													2 | 
													7 | 
							
					
				| __construct() | 
									S  | 
																	59 | 
													1 | 
													14 | 
							
					
				| enqueue_style() | 
									S  | 
																	75 | 
													1 | 
													4 | 
							
					
				| stats_explanation() | 
									S  | 
																	73 | 
													1 | 
													5 | 
							
					
				| defaults() | 
									S  | 
																	65 | 
													1 | 
													9 |