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

Yoast / wordpress-seo / ede6fd7c0b60c6046f5ca05162944c7a397d5d8b

20 Nov 2024 03:11PM UTC coverage: 54.21% (-2.9%) from 57.113%
ede6fd7c0b60c6046f5ca05162944c7a397d5d8b

Pull #21847

github

web-flow
Merge 428b097d7 into 74d330cc7
Pull Request #21847: Create API endpoints for SEO and readability scores

7593 of 13666 branches covered (55.56%)

Branch coverage included in aggregate %.

0 of 303 new or added lines in 24 files covered. (0.0%)

29764 of 55246 relevant lines covered (53.88%)

41542.83 hits per line

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

0.0
/src/dashboard/domain/scores/seo-scores/good-seo-score.php
1
<?php
2
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
3
// phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded
4
namespace Yoast\WP\SEO\Dashboard\Domain\Scores\SEO_Scores;
5

6
/**
7
 * This class describes a Good SEO score.
8
 */
9
class Good_SEO_Score extends Abstract_SEO_Score {
10

11
        /**
12
         * Gets the name of the SEO score.
13
         *
14
         * @return string The name of the SEO score.
15
         */
NEW
16
        public function get_name(): string {
×
NEW
17
                return 'good';
×
18
        }
19

20
        /**
21
         * Gets the value of the SEO score that is used when filtering on the posts page.
22
         *
23
         * @return string The name of the SEO score that is used when filtering on the posts page.
24
         */
NEW
25
        public function get_filter_value(): string {
×
NEW
26
                return 'good';
×
27
        }
28

29
        /**
30
         * Gets the position of the SEO score.
31
         *
32
         * @return int The position of the SEO score.
33
         */
NEW
34
        public function get_position(): int {
×
NEW
35
                return 0;
×
36
        }
37

38
        /**
39
         * Gets the minimum score of the SEO score.
40
         *
41
         * @return int The minimum score of the SEO score.
42
         */
NEW
43
        public function get_min_score(): ?int {
×
NEW
44
                return 71;
×
45
        }
46

47
        /**
48
         * Gets the maximum score of the SEO score.
49
         *
50
         * @return int The maximum score of the SEO score.
51
         */
NEW
52
        public function get_max_score(): ?int {
×
NEW
53
                return 100;
×
54
        }
55
}
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

© 2025 Coveralls, Inc