- 
		Home
	
 
	- 
Jetpack – WP Security, Backup, Speed, & Growth
 
- 
12.7.1
 
- 
Code
 
- 
Classes
 
-  WPCOM_JSON_API 
 
	
	
		
			
				
					
													
								
																			
											| Total Complexity | 
											178 | 
										
																			
											| Dependencies | 
											7 | 
										
																			
											| Dependents | 
											8 | 
										
																	
							 
													
								
																			
											| Total lines | 
											1,207 | 
										
																			
											| Lines of code | 
											605 | 
										
																			
											| Logical lines of code | 
											338 | 
										
																	
							 
													
								
																			
											| Comment lines | 
											442 | 
										
																			
											| Methods | 
											36 | 
										
																			
											| Properties | 
											21 | 
										
																	
							 
											 
				 
									
							 
		 
	 
	Methods 36
	
		
		
			| Method | 
							Rating | 
													
					
						Maintainability
					
				 | 
										
					Complexity
				 | 
										
					Lines of code
				 | 
					
		
		
					
				| serve() | 
									D  | 
																	26  | 
													39 | 
													132 | 
							
					
				| output() | 
									B  | 
																	38 | 
													19 | 
													73 | 
							
					
				| filter_fields() | 
									B  | 
																	41 | 
													19 | 
													55 | 
							
					
				| setup_inputs() | 
									B  | 
																	42 | 
													18 | 
													48 | 
							
					
				| trap_wp_die() | 
									A  | 
																	49 | 
													11 | 
													29 | 
							
					
				| wp_count_comments() | 
									A  | 
																	42 | 
													9 | 
													55 | 
							
					
				| wp_die_handler() | 
									S  | 
																	51 | 
													6 | 
													26 | 
							
					
				| is_jetpack_authorized_for_site() | 
									S  | 
																	58 | 
													6 | 
													17 | 
							
					
				| switch_to_blog_and_validate_user() | 
									S  | 
																	62 | 
													5 | 
													12 | 
							
					
				| serializable_error() | 
									S  | 
																	55 | 
													4 | 
													21 | 
							
					
				| output_early() | 
									S  | 
																	60 | 
													4 | 
													13 | 
							
					
				| get_avatar_url() | 
									S  | 
																	63 | 
													4 | 
													11 | 
							
					
				| is_truthy() | 
									S  | 
																	66 | 
													4 | 
													9 | 
							
					
				| is_falsy() | 
									S  | 
																	66 | 
													4 | 
													9 | 
							
					
				| add() | 
									S  | 
																	62 | 
													2 | 
													13 | 
							
					
				| init() | 
									S  | 
																	70 | 
													2 | 
													6 | 
							
					
				| ensure_http_scheme_of_home_url() | 
									S  | 
																	71 | 
													2 | 
													6 | 
							
					
				| finish_request() | 
									S  | 
																	74 | 
													2 | 
													5 | 
							
					
				| __construct() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| initialize() | 
									S  | 
																	75 | 
													1 | 
													4 | 
							
					
				| process_request() | 
									S  | 
																	75 | 
													1 | 
													4 | 
							
					
				| set_output_status_code() | 
									S  | 
																	81 | 
													1 | 
													3 | 
							
					
				| output_error() | 
									S  | 
																	74 | 
													1 | 
													4 | 
							
					
				| comment_edit_pre() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| json_encode() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| ends_with() | 
									S  | 
																	78 | 
													1 | 
													3 | 
							
					
				| get_blog_id_for_output() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| get_blog_id() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| is_restricted_blog() | 
									S  | 
																	74 | 
													1 | 
													4 | 
							
					
				| post_like_count() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| is_liked() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| is_reblogged() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| is_following() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| add_global_ID() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| wp_die_handler_callback() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| output_trapped_error() | 
									S  | 
																	65 | 
													1 | 
													10 |