84% better-aria-label-support

Code Review | Better Aria Label Support

WordPress plugin Better Aria Label Support scored84%from 54 tests.

About plugin

  • Plugin page: better-aria-label...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Sep 24, 2021
  • Latest release: Oct 26, 2022
  • Number of updates: 8
  • Update frequency: every 49.5 days
  • Top authors: audrasjb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /4,768 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Better Aria Label Support
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.12 ▲1.27
Dashboard /wp-admin3.32 ▲0.0150.53 ▼0.30
Posts /wp-admin/edit.php3.37 ▲0.0151.09 ▲0.61
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.19 ▼11.74
Media Library /wp-admin/upload.php3.24 ▲0.0140.53 ▲3.77

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Better Aria Label Support
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.13 ▼1.162.05 ▲0.1745.93 ▲0.22
Dashboard /wp-admin2,209 ▲215.92 ▲0.04106.30 ▼2.6540.33 ▼0.93
Posts /wp-admin/edit.php2,086 ▼62.00 ▼0.0039.37 ▲0.4934.47 ▼0.38
Add New Post /wp-admin/post-new.php1,533 ▼023.16 ▼0.05671.06 ▼3.5054.74 ▼4.32
Media Library /wp-admin/upload.php1,382 ▼34.19 ▲0.01100.70 ▼3.7142.78 ▼5.32

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/better-aria-label-support/better-aria-label-support.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: accessibility, aria-label, title, aria, menus...

better-aria-label-support/better-aria-label-support.php Passed 13 tests

"Better Aria Label Support" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
58 characters long description:
Better aria-label support for WordPress (including menus).

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
Success! There were no dangerous files found in this plugin17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141817

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
There were not PNG files found in your plugin