89% wp-ada-compliance-check-basic

Code Review | WP ADA Compliance Check Basic - Most Comprehensive Web Accessibility Solution for WordPress

WordPress plugin WP ADA Compliance Check Basic - Most Comprehensive Web Accessibility Solution for WordPress scored 89% from 54 tests.

About plugin

  • Plugin page: wp-ada-compliance...
  • Plugin version: 3.0.8
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Oct 12, 2017
  • Latest release: Sep 4, 2023
  • Number of updates: 149
  • Update frequency: every 14.5 days
  • Top authors: seshelby (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

4,000+ active / 106,354 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲1.99MB] [CPU: ▲11.57ms] Passed 4 tests

Server-side resources used by WP ADA Compliance Check Basic - Most Comprehensive Web Accessibility Solution for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.41 ▲1.9551.33 ▲11.64
Dashboard /wp-admin5.30 ▲1.9961.55 ▲14.29
Posts /wp-admin/edit.php5.41 ▲2.0568.73 ▲23.22
Add New Post /wp-admin/post-new.php7.91 ▲2.02100.80 ▲6.96
Media Library /wp-admin/upload.php5.22 ▲1.9949.81 ▲13.39
Send Report /wp-admin/admin.php?page=ada_compliance/send-report.php5.1948.89
Web Accessibility Settings /wp-admin/options-general.php?page=wp-ada-compliance-basic-admin5.1954.32
Print Report /wp-admin/admin.php?page=ada_compliance/print-report.php5.1956.08
Settings /wp-admin/admin.php?page=wp-ada-compliance-basic-admin5.1950.44
Error References /wp-admin/admin.php?page=ada_compliance/compliancereferencereportbasic.php5.1949.06

Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 86 new files
Database: 1 new table, 10 new options
New tables
wp_wp_ada_compliance_basic
New WordPress options
wp_ada_compliance_basic_rescan_required
wp_ada_compliance_basic_scan_rules
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
wp_ada_compliance_basic_version
wp_ada_compliance_basic_import_inprocess
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

WP ADA Compliance Check Basic - Most Comprehensive Web Accessibility Solution for WordPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲21813.33 ▼1.031.75 ▼0.4129.59 ▼19.52
Dashboard /wp-admin2,342 ▲1575.03 ▼0.03107.97 ▲7.6346.39 ▲1.49
Posts /wp-admin/edit.php2,170 ▲812.25 ▲0.2641.12 ▲7.2334.64 ▲2.82
Add New Post /wp-admin/post-new.php1,605 ▲6223.08 ▲4.92675.47 ▲82.9479.47 ▲30.98
Media Library /wp-admin/upload.php1,457 ▲724.35 ▲0.1594.97 ▼7.3940.85 ▼2.09
Send Report /wp-admin/admin.php?page=ada_compliance/send-report.php9511.8331.3925.44
Web Accessibility Settings /wp-admin/options-general.php?page=wp-ada-compliance-basic-admin1,7822.0336.9465.63
Print Report /wp-admin/admin.php?page=ada_compliance/print-report.php7271.9632.6915.97
Error Report /wp-admin/admin.php?page=ada_compliance/compliancereportbasic.php1,0831.8627.5848.01
Settings /wp-admin/admin.php?page=wp-ada-compliance-basic-admin1,7941.9640.8163.48
Error References /wp-admin/admin.php?page=ada_compliance/compliancereferencereportbasic.php2,0271.8731.8156.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: You can take inspiration from this readme.txt

wp-ada-compliance-check-basic/wp-ada-compliance-basic.php 77% from 13 tests

"WP ADA Compliance Check Basic - Most Comprehensive Web Accessibility Solution for WordPress" version 3.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-ada-compliance-check-basic.php" instead of "wp-ada-compliance-basic.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 315 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin10,408 lines of code in 74 files:
LanguageFilesBlank linesComment linesLines of code
PHP672,7301,9998,707
CSS13618961
JavaScript29431355
Markdown2470326
XML20059

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity133.33
▷ Minimum class complexity13.00
▷ Maximum class complexity249.00
Average method complexity5.17
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods96
▷ Static methods77.29%
▷ Public methods8184.38%
▷ Protected methods1515.62%
▷ Private methods00.00%
Functions241
▷ Named functions22794.19%
▷ Anonymous functions145.81%
Constants23
▷ Global constants23100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.78MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
res/widget.png136.49KB42.91KB▼ 68.56%
res/passwordprotected.png36.39KB16.76KB▼ 53.94%
res/filters.png81.50KB35.83KB▼ 56.04%
res/content.png53.64KB23.55KB▼ 56.10%
res/filters5.png46.62KB22.76KB▼ 51.18%