src/controller/admin/class-rating.php
public function add_movie_rating() {

		$nonce = isset( $_POST['nonce'] ) ? $_POST['nonce'] : '';

		if ( ! wp_verify_nonce( $nonce, 'eliasis' ) && ! wp_verify_nonce( $nonce, 'customRatingGrifus' ) ) {
			die( 'Busted!' );
		}

		$ip      = $this->get_ip();
		$vote    = $_POST['vote'];
		$post_id = $_POST['postID'];

		$this->clear_cache( $post_id );

		$votes = $this->model->get_movie_votes( $post_id );
		$votes = $this->model->set_user_vote( $post_id, $votes, $vote, $ip );

		$response = $this->set_rating_and_votes( $post_id, $votes );

		echo json_encode( $response, true );

		die();
	}
public function add_movie_rating() {

		$nonce = isset( $_POST['nonce'] ) ? $_POST['nonce'] : '';

		if ( ! wp_verify_nonce( $nonce, 'eliasis' ) && ! wp_verify_nonce( $nonce, 'customRatingGrifus' ) ) {
			die( 'Busted!' );
		}

		$ip      = $this->get_ip();
		$vote    = $_POST['vote'];
		$post_id = $_POST['postID'];

		$this->clear_cache( $post_id );

		$votes = $this->model->get_movie_votes( $post_id );
		$votes = $this->model->set_user_vote( $post_id, $votes, $vote, $ip );

		$response = $this->set_rating_and_votes( $post_id, $votes );

		echo json_encode( $response, true );

		die();
	}
Add movie rating.

@since 1.0.1