- 
		Home
	
 
	- 
WP Statistics – Simple, privacy-friendly Google Analytics alternative
 
- 
14.9
 
- 
Code
 
- 
Classes
 
-  WP_Background_Process 
 
	
	
		
			
				
					
													
								
																			
											| Total Complexity | 
											84 | 
										
																			
											| Dependencies | 
											2 | 
										
																			
											| Dependents | 
											1 | 
										
																	
							 
													
								
																			
											| Total lines | 
											720 | 
										
																			
											| Lines of code | 
											306 | 
										
																			
											| Logical lines of code | 
											170 | 
										
																	
							 
													
								
																			
											| Comment lines | 
											293 | 
										
																			
											| Methods | 
											39 | 
										
																			
											| Properties | 
											4 | 
										
																	
							 
											 
				 
									
							 
		 
	 
	Methods 39
	
		
		
			| Method | 
							Rating | 
													
					
						Maintainability
					
				 | 
										
					Complexity
				 | 
										
					Lines of code
				 | 
					
		
		
					
				| handle() | 
									A  | 
																	45 | 
													15 | 
													41 | 
							
					
				| get_batches() | 
									S  | 
																	46 | 
													6 | 
													42 | 
							
					
				| maybe_handle() | 
									S  | 
																	56 | 
													5 | 
													22 | 
							
					
				| get_memory_limit() | 
									S  | 
																	62 | 
													4 | 
													11 | 
							
					
				| schedule_cron_healthcheck() | 
									S  | 
																	57 | 
													3 | 
													16 | 
							
					
				| is_active() | 
									S  | 
																	78 | 
													4 | 
													3 | 
							
					
				| handle_cron_healthcheck() | 
									S  | 
																	66 | 
													3 | 
													10 | 
							
					
				| dispatch() | 
									S  | 
																	70 | 
													2 | 
													7 | 
							
					
				| save() | 
									S  | 
																	67 | 
													2 | 
													8 | 
							
					
				| update() | 
									S  | 
																	71 | 
													2 | 
													6 | 
							
					
				| delete_all() | 
									S  | 
																	67 | 
													2 | 
													8 | 
							
					
				| is_cancelled() | 
									S  | 
																	68 | 
													2 | 
													7 | 
							
					
				| is_paused() | 
									S  | 
																	68 | 
													2 | 
													7 | 
							
					
				| is_processing() | 
									S  | 
																	71 | 
													2 | 
													6 | 
							
					
				| lock_process() | 
									S  | 
																	68 | 
													2 | 
													6 | 
							
					
				| memory_exceeded() | 
									S  | 
																	64 | 
													2 | 
													9 | 
							
					
				| time_exceeded() | 
									S  | 
																	66 | 
													2 | 
													8 | 
							
					
				| schedule_event() | 
									S  | 
																	73 | 
													2 | 
													5 | 
							
					
				| clear_scheduled_event() | 
									S  | 
																	71 | 
													2 | 
													6 | 
							
					
				| __construct() | 
									S  | 
																	67 | 
													1 | 
													7 | 
							
					
				| push_to_queue() | 
									S  | 
																	76 | 
													1 | 
													4 | 
							
					
				| delete() | 
									S  | 
																	77 | 
													1 | 
													4 | 
							
					
				| cancel() | 
									S  | 
																	76 | 
													1 | 
													4 | 
							
					
				| cancelled() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| pause() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| paused() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| resume() | 
									S  | 
																	72 | 
													1 | 
													6 | 
							
					
				| resumed() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| is_queued() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| generate_key() | 
									S  | 
																	71 | 
													1 | 
													5 | 
							
					
				| get_status_key() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| is_queue_empty() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| is_process_running() | 
									S  | 
																	81 | 
													1 | 
													3 | 
							
					
				| unlock_process() | 
									S  | 
																	76 | 
													1 | 
													4 | 
							
					
				| get_batch() | 
									S  | 
																	68 | 
													1 | 
													9 | 
							
					
				| complete() | 
									S  | 
																	74 | 
													1 | 
													5 | 
							
					
				| completed() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| cancel_process() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| task() | 
									S  | 
																	100 | 
													1 | 
													0 |