84% a11y-buttons

Code Review | A11y Buttons

WordPress plugin A11y Buttons scored84%from 54 tests.

About plugin

  • Plugin page: a11y-buttons
  • Plugin version: 0.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.0
  • WordPress version: 6.3.1
  • First release: Sep 29, 2022
  • Latest release: Oct 4, 2022
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: wetah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /576 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.79ms] Passed 4 tests

Server-side resources used by A11y Buttons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.81 ▼3.59
Dashboard /wp-admin3.34 ▲0.0345.00 ▼2.90
Posts /wp-admin/edit.php3.39 ▲0.0348.13 ▲0.72
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.98 ▼13.39
Media Library /wp-admin/upload.php3.26 ▲0.0333.72 ▲2.23

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by A11y Buttons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲6513.15 ▼1.505.72 ▲3.6939.14 ▼4.35
Dashboard /wp-admin2,209 ▲245.91 ▲0.1099.73 ▼1.3639.46 ▼4.51
Posts /wp-admin/edit.php2,089 ▼32.03 ▼0.0240.43 ▼2.7935.76 ▼0.72
Add New Post /wp-admin/post-new.php6,360 ▲4,83227.85 ▲9.41835.98 ▲224.5838.48 ▼17.80
Media Library /wp-admin/upload.php1,382 ▼04.23 ▼0.0896.30 ▼0.7042.24 ▼0.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/a11y-buttons/a11y-buttons.php:31

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Contributors: The plugin contributors field is missing
Please take inspiration from this readme.txt

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

The entry point to "A11y Buttons" version 0.2.0 is a PHP file that has certain tags in its header comment area
79 characters long description:
A basic list of buttons that may be used to improve your website accessibility.

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
No dangerous file extensions were detected180 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin