felixarntz/wp-plugin-contracts

View on GitHub
src/Plugin_Container.php

Summary

Maintainability
A
1 hr
Test Coverage

Method load_plugin_instance has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function load_plugin_instance( string $main_file, string $class_name ) : Plugin {
        if ( ! class_exists( $class_name ) ) {
            throw new Plugin_Loading_Exception(
                sprintf(
                    'Plugin class %s does not exist.',
Severity: Minor
Found in src/Plugin_Container.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status