- 
		Home
	
 
	- 
Better Messages – Live Chat for WordPress, BuddyPress, PeepSo, Ultimate Member, BuddyBoss
 
- 
2.4.27
 
- 
Code
 
- 
Classes
 
-  Better_Messages_Chats 
 
	
	
		
			
				
					
													
								
																			
											| Total Complexity | 
											131 | 
										
																			
											| Dependencies | 
											1 | 
										
																			
											| Dependents | 
											2 | 
										
																	
							 
													
								
																			
											| Total lines | 
											927 | 
										
																			
											| Lines of code | 
											679 | 
										
																			
											| Logical lines of code | 
											386 | 
										
																	
							 
													
								
																			
											| Comment lines | 
											21 | 
										
																			
											| Methods | 
											29 | 
										
																			
											| Properties | 
											0 | 
										
																	
							 
											 
				 
									
							 
		 
	 
	Methods 29
	
		
		
			| Method | 
							Rating | 
													
					
						Maintainability
					
				 | 
										
					Complexity
				 | 
										
					Lines of code
				 | 
					
		
		
					
				| save_post() | 
									D  | 
																	32 | 
													32 | 
													101 | 
							
					
				| rest_thread_item() | 
									B  | 
																	38 | 
													15 | 
													62 | 
							
					
				| sync_auto_add_users() | 
									A  | 
																	39 | 
													10 | 
													68 | 
							
					
				| layout() | 
									A  | 
																	45 | 
													9 | 
													38 | 
							
					
				| get_chat_thread_id() | 
									S  | 
																	46 | 
													5 | 
													41 | 
							
					
				| get_chat_settings() | 
									S  | 
																	47 | 
													5 | 
													34 | 
							
					
				| get_chat_participants() | 
									S  | 
																	47 | 
													4 | 
													38 | 
							
					
				| on_user_register() | 
									S  | 
																	53 | 
													5 | 
													23 | 
							
					
				| sync_roles_update() | 
									S  | 
																	53 | 
													5 | 
													22 | 
							
					
				| before_message_send() | 
									S  | 
																	59 | 
													5 | 
													13 | 
							
					
				| user_can_join() | 
									S  | 
																	59 | 
													4 | 
													13 | 
							
					
				| user_can_reply() | 
									S  | 
																	60 | 
													4 | 
													13 | 
							
					
				| guest_registered() | 
									S  | 
																	56 | 
													3 | 
													19 | 
							
					
				| leave_chat() | 
									S  | 
																	51 | 
													2 | 
													28 | 
							
					
				| chat_thread_title() | 
									S  | 
																	63 | 
													3 | 
													10 | 
							
					
				| on_message_sent() | 
									S  | 
																	62 | 
													3 | 
													10 | 
							
					
				| register_post_type() | 
									S  | 
																	49 | 
													1 | 
													30 | 
							
					
				| bpbm_chat_settings() | 
									S  | 
																	59 | 
													2 | 
													13 | 
							
					
				| add_to_chat() | 
									S  | 
																	62 | 
													2 | 
													11 | 
							
					
				| rest_api_init() | 
									S  | 
																	58 | 
													1 | 
													17 | 
							
					
				| on_chat_update() | 
									S  | 
																	58 | 
													1 | 
													17 | 
							
					
				| setup_actions() | 
									S  | 
																	56 | 
													1 | 
													16 | 
							
					
				| instance() | 
									S  | 
																	68 | 
													2 | 
													8 | 
							
					
				| on_chat_delete() | 
									S  | 
																	68 | 
													2 | 
													7 | 
							
					
				| user_is_admin() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| on_user_role_change() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| join_chat() | 
									S  | 
																	64 | 
													1 | 
													9 | 
							
					
				| register_meta_box() | 
									S  | 
																	66 | 
													1 | 
													9 | 
							
					
				| chat_participants() | 
									S  | 
																	77 | 
													1 | 
													3 |