90% wc-a11y

Code Review | Improving WooCommerce Accessibility

WordPress plugin Improving WooCommerce Accessibility scored90%from 54 tests.

About plugin

  • Plugin page: wc-a11y
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Dec 16, 2021
  • Latest release: Dec 23, 2022
  • Number of updates: 8
  • Update frequency: every 46.5 days
  • Top authors: webmandesign (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /854 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.80ms] Passed 4 tests

An overview of server-side resources used by Improving WooCommerce Accessibility
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.07 ▲1.59
Dashboard /wp-admin3.31 ▲0.0153.41 ▲1.32
Posts /wp-admin/edit.php3.37 ▲0.0150.34 ▼5.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.60 ▼4.62
Media Library /wp-admin/upload.php3.24 ▲0.0138.73 ▲1.68

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Improving WooCommerce Accessibility
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.69 ▲0.341.80 ▲0.2243.83 ▲0.57
Dashboard /wp-admin2,195 ▲215.64 ▲0.0386.07 ▼9.0938.42 ▼3.16
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0234.47 ▼2.5135.12 ▼0.96
Add New Post /wp-admin/post-new.php1,529 ▲323.29 ▲0.17646.57 ▼69.4558.70 ▲1.04
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0796.40 ▼15.5043.64 ▲0.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: accessibility, webman, webman design, a11y, woocommerce

wc-a11y/wc-a11y.php Passed 13 tests

The main PHP file in "Improving WooCommerce Accessibility" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
59 characters long description:
Fixes accessibility issues in WooCommerce plugin templates.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin429 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP696148344
PO File1313582
Markdown1203

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin