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

equalizedigital / accessibility-checker / 15452164054

04 Jun 2025 08:32PM UTC coverage: 28.973%. First build
15452164054

Pull #1004

github

web-flow
Merge 28c013970 into 147ba9c27
Pull Request #1004: Release v1.24.0

7 of 92 new or added lines in 13 files covered. (7.61%)

1495 of 5160 relevant lines covered (28.97%)

1.5 hits per line

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

0.0
/admin/site-health/class-free.php
1
<?php
2
/**
3
 * Gets the free information.
4
 *
5
 * @since 1.9.0
6
 * @package Accessibility_Checker
7
 */
8

9
namespace EDAC\Admin\SiteHealth;
10

11
use EqualizeDigital\AccessibilityChecker\Fixes\FixesManager;
12

13
/**
14
 * Loads free information into Site Health
15
 *
16
 * @since 1.9.0
17
 */
18
class Free {
19

20
        /**
21
         * General constructor.
22
         */
23
        public function __construct() {
24
        }
×
25

26
        /**
27
         * Gets the site health section.
28
         *
29
         * @since 1.9.0
30
         * @return array
31
         */
32
        public function get() {
33
                // Get only the non-pro fixes.
34
                $fixes = array_filter(
×
35
                        FixesManager::get_instance()->get_fixes_settings(),
×
36
                        function ( $fix ) {
×
37
                                return ! $fix['is_pro'];
×
38
                        }
×
39
                );
×
40
                // remove the is_pro flag, this isn't needed in the output.
41
                foreach ( $fixes as $key => $fix ) {
×
42
                        unset( $fixes[ $key ]['is_pro'] );
×
43
                }
44

45
                return [
×
46
                        'label'  => __( 'Accessibility Checker &mdash; Free', 'accessibility-checker' ),
×
47
                        'fields' => [
×
48
                                'version'                 => [
×
NEW
49
                                        'label' => __( 'Version', 'accessibility-checker' ),
×
50
                                        'value' => esc_html( EDAC_VERSION ),
×
51
                                ],
×
52
                                'database_version'        => [
×
NEW
53
                                        'label' => __( 'Database Version', 'accessibility-checker' ),
×
54
                                        'value' => esc_html( EDAC_DB_VERSION ),
×
55
                                ],
×
56
                                'policy_page'             => [
×
NEW
57
                                        'label' => __( 'Policy Page', 'accessibility-checker' ),
×
NEW
58
                                        'value' => esc_html( get_option( 'edac_accessibility_policy_page' ) ? get_option( 'edac_accessibility_policy_page' ) : __( 'Unset', 'accessibility-checker' ) ),
×
59
                                ],
×
60
                                'activation_date'         => [
×
NEW
61
                                        'label' => __( 'Activation Date', 'accessibility-checker' ),
×
62
                                        'value' => esc_html( get_option( 'edac_activation_date' ) ),
×
63
                                ],
×
64
                                'footer_statement'        => [
×
NEW
65
                                        'label' => __( 'Footer Statement', 'accessibility-checker' ),
×
NEW
66
                                        'value' => esc_html( get_option( 'edac_add_footer_accessibility_statement' ) ? __( 'Enabled', 'accessibility-checker' ) : __( 'Disabled', 'accessibility-checker' ) ),
×
67
                                ],
×
68
                                'delete_data'             => [
×
NEW
69
                                        'label' => __( 'Delete Data', 'accessibility-checker' ),
×
NEW
70
                                        'value' => esc_html( get_option( 'edac_delete_data' ) ? __( 'Enabled', 'accessibility-checker' ) : __( 'Disabled', 'accessibility-checker' ) ),
×
71
                                ],
×
72
                                'include_statement_link'  => [
×
NEW
73
                                        'label' => __( 'Include Statement Link', 'accessibility-checker' ),
×
NEW
74
                                        'value' => esc_url( get_option( 'edac_include_accessibility_statement_link' ) ? __( 'Enabled', 'accessibility-checker' ) : __( 'Disabled', 'accessibility-checker' ) ),
×
75
                                ],
×
76
                                'post_types'              => [
×
NEW
77
                                        'label' => __( 'Post Types', 'accessibility-checker' ),
×
NEW
78
                                        'value' => esc_html( get_option( 'edac_post_types' ) ? implode( ', ', get_option( 'edac_post_types' ) ) : __( 'Unset', 'accessibility-checker' ) ),
×
79
                                ],
×
80
                                'simplified_sum_position' => [
×
NEW
81
                                        'label' => __( 'Simplified Sum Position', 'accessibility-checker' ),
×
82
                                        'value' => esc_html( get_option( 'edac_simplified_summary_position' ) ),
×
83
                                ],
×
84
                                'simplified_sum_prompt'   => [
×
NEW
85
                                        'label' => __( 'Simplified Sum Prompt', 'accessibility-checker' ),
×
86
                                        'value' => esc_html( get_option( 'edac_simplified_summary_prompt' ) ),
×
87
                                ],
×
88
                                'post_count'              => [
×
NEW
89
                                        'label' => __( 'Post Count', 'accessibility-checker' ),
×
90
                                        'value' => esc_html( edac_get_posts_count() ),
×
91
                                ],
×
92
                                'error_count'             => [
×
NEW
93
                                        'label' => __( 'Error Count', 'accessibility-checker' ),
×
94
                                        'value' => absint( edac_get_error_count() ),
×
95
                                ],
×
96
                                'warning_count'           => [
×
NEW
97
                                        'label' => __( 'Warning Count', 'accessibility-checker' ),
×
98
                                        'value' => absint( edac_get_warning_count() ),
×
99
                                ],
×
100
                                'db_table_count'          => [
×
NEW
101
                                        'label' => __( 'DB Table Count', 'accessibility-checker' ),
×
102
                                        'value' => absint( edac_database_table_count( 'accessibility_checker' ) ),
×
103
                                ],
×
104
                                'fixes'                   => [
×
NEW
105
                                        'label' => __( 'Fixes', 'accessibility-checker' ),
×
106
                                        'value' => esc_html( wp_json_encode( $fixes ) ),
×
107
                                ],
×
108
                        ],
×
109
                ];
×
110
        }
111
}
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