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

Yoast / wordpress-seo / 5e87acce9cbd2afa93bed5092885ee427e6a82b7

19 Nov 2025 02:17PM UTC coverage: 52.716% (-0.001%) from 52.717%
5e87acce9cbd2afa93bed5092885ee427e6a82b7

Pull #22731

github

web-flow
Merge e418bd197 into cf9a5ebaa
Pull Request #22731: Misc improvements for the backend of the tasklist

8307 of 15558 branches covered (53.39%)

Branch coverage included in aggregate %.

0 of 19 new or added lines in 5 files covered. (0.0%)

3 existing lines in 3 files now uncovered.

31810 of 60542 relevant lines covered (52.54%)

47626.55 hits per line

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

0.0
/src/task-list/application/tasks/complete-ftc.php
1
<?php
2
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
3
namespace Yoast\WP\SEO\Task_List\Application\Tasks;
4

5
use Yoast\WP\SEO\Helpers\First_Time_Configuration_Notice_Helper;
6
use Yoast\WP\SEO\Task_List\Domain\Components\Call_To_Action_Entry;
7
use Yoast\WP\SEO\Task_List\Domain\Components\Copy_Set;
8
use Yoast\WP\SEO\Task_List\Domain\Tasks\Abstract_Task;
9

10
/**
11
 * Represents the task for the completing the FTC.
12
 */
13
class Complete_FTC extends Abstract_Task {
14

15
        /**
16
         * Holds the id.
17
         *
18
         * @var string
19
         */
20
        protected $id = 'complete-ftc';
21

22
        /**
23
         * Holds the priority.
24
         *
25
         * @var string
26
         */
27
        protected $priority = 'high';
28

29
        /**
30
         * Holds the duration.
31
         *
32
         * @var int
33
         */
34
        protected $duration = 15;
35

36
        /**
37
         * Holds the first time configuration notice helper.
38
         *
39
         * @var First_Time_Configuration_Notice_Helper
40
         */
41
        private $ftc_notice_helper;
42

43
        /**
44
         * Constructs the task.
45
         *
46
         * @param First_Time_Configuration_Notice_Helper $ftc_notice_helper The first time configuration notice helper.
47
         */
48
        public function __construct( First_Time_Configuration_Notice_Helper $ftc_notice_helper ) {
×
49
                $this->ftc_notice_helper = $ftc_notice_helper;
×
50
        }
51

52
        /**
53
         * Returns whether this task is completed.
54
         *
55
         * @return bool Whether this task is completed.
56
         */
57
        public function get_is_completed(): bool {
×
58
                return $this->ftc_notice_helper->is_first_time_configuration_finished( true );
×
59
        }
60

61
        /**
62
         * Returns the task's link.
63
         *
64
         * @return string|null
65
         */
66
        public function get_link(): ?string {
×
67
                return \self_admin_url( 'admin.php?page=wpseo_dashboard#/first-time-configuration' );
×
68
        }
69

70
        /**
71
         * Returns the task's call to action entry.
72
         *
73
         * @return string|null
74
         */
75
        public function get_call_to_action(): Call_To_Action_Entry {
×
76
                return new Call_To_Action_Entry(
×
NEW
77
                        \__( 'Start configuration', 'wordpress-seo' ),
×
78
                        'link',
×
79
                        $this->get_link()
×
80
                );
×
81
        }
82

83
        /**
84
         * Returns the task's copy set.
85
         *
86
         * @return string|null
87
         */
88
        public function get_copy_set(): Copy_Set {
×
89
                return new Copy_Set(
×
90
                        \__( 'Complete the First-time configuration', 'wordpress-seo' ),
×
91
                        /* translators: %1$s expands to Yoast SEO */
NEW
92
                        \sprintf( \__( 'Skipping the configuration limits how much %1$s can help you. Completing it makes sure the core settings are working in your favor.', 'wordpress-seo' ), 'Yoast SEO' )
×
93
                );
×
94
        }
95
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc