• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / 3209e85c9df308a2653f9e35788020dfea4d0d81

01 Apr 2026 07:09AM UTC coverage: 53.511% (-3.2%) from 56.662%
3209e85c9df308a2653f9e35788020dfea4d0d81

push

github

leonidasmi
Merge trunk

9081 of 16722 branches covered (54.31%)

Branch coverage included in aggregate %.

188 of 271 new or added lines in 30 files covered. (69.37%)

3 existing lines in 2 files now uncovered.

34583 of 64876 relevant lines covered (53.31%)

46367.1 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.33
/src/plugins-tab/user-interface/plugins-tab-integration.php
1
<?php
2

3
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
4
namespace Yoast\WP\SEO\Plugins_Tab\User_Interface;
5

6
use Yoast\WP\SEO\Conditionals\Admin_Conditional;
7
use Yoast\WP\SEO\Integrations\Integration_Interface;
8
use Yoast\WP\SEO\Plugins_Tab\Application\Plugins_List_Handler;
9

10
/**
11
 * Registers the Yoast tab on the WordPress Plugins screen.
12
 *
13
 * @phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded
14
 */
15
class Plugins_Tab_Integration implements Integration_Interface {
16

17
        /**
18
         * The plugins list handler.
19
         *
20
         * @var Plugins_List_Handler
21
         */
22
        private $handler;
23

24
        /**
25
         * Constructs the integration.
26
         *
27
         * @param Plugins_List_Handler $handler The plugins list handler.
28
         */
NEW
29
        public function __construct( Plugins_List_Handler $handler ) {
×
NEW
30
                $this->handler = $handler;
×
31
        }
32

33
        /**
34
         * Returns the conditionals based on which this loadable should be active.
35
         *
36
         * @return array<string> The conditionals.
37
         */
38
        public static function get_conditionals(): array {
2✔
39
                return [
2✔
40
                        Admin_Conditional::class,
2✔
41
                ];
2✔
42
        }
43

44
        /**
45
         * Registers the hooks for the Yoast plugins tab.
46
         *
47
         * @return void
48
         */
49
        public function register_hooks(): void {
6✔
50
                global $wp_version;
6✔
51

52
                if ( \version_compare( $wp_version, '7.0-alpha0', '<' ) ) {
6✔
53
                        return;
2✔
54
                }
55

56
                \add_filter( 'plugins_list', [ $this->handler, 'filter_plugins_list' ] );
4✔
57
                \add_filter( 'plugins_list_status_text', [ $this->handler, 'get_status_text' ], 10, 3 );
4✔
58
        }
59
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc