77% otm-accessibly

Code Review | Accessibly - Wordpress Website Accessibility

WordPress plugin Accessibly - Wordpress Website Accessibility scored77%from 54 tests.

About plugin

  • Plugin page: otm-accessibly
  • Plugin version: 3.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 19, 2019
  • Latest release: Aug 29, 2023
  • Number of updates: 93
  • Update frequency: every 15.5 days
  • Top authors: onthemapmarketing (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

500+ active /6,184 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.60MB] [CPU: ▲0.84ms] Passed 4 tests

This is a short check of server-side resources used by Accessibly - Wordpress Website Accessibility
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.5840.15 ▼2.12
Dashboard /wp-admin3.92 ▲0.6149.13 ▼2.20
Posts /wp-admin/edit.php3.97 ▲0.6150.78 ▲3.79
Add New Post /wp-admin/post-new.php6.53 ▲0.6493.89 ▲4.07
Media Library /wp-admin/upload.php3.84 ▲0.6139.88 ▲3.88

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 410 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Accessibly - Wordpress Website Accessibility
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.27 ▼1.401.61 ▼0.3141.97 ▼1.43
Dashboard /wp-admin2,235 ▲444.87 ▼0.04112.35 ▲8.5041.24 ▼1.60
Posts /wp-admin/edit.php2,097 ▲112.04 ▲0.0739.41 ▲3.1137.42 ▲3.36
Add New Post /wp-admin/post-new.php1,533 ▼923.47 ▲5.22614.59 ▼30.4554.84 ▼2.36
Media Library /wp-admin/upload.php1,417 ▲294.28 ▲0.09103.98 ▲7.3642.35 ▼2.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/otm-accessibly/public/partials/accessibly-plugin-public-display.php
  • 87× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/otm-accessibly/vendor/guzzlehttp/promises/src/TaskQueue.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\AdapterInterface' not found in wp-content/plugins/otm-accessibly/vendor/vlucas/phpdotenv/src/Repository/Adapter/PutenvAdapter.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/otm-accessibly/vendor/guzzlehttp/psr7/src/ServerRequest.php:27
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/otm-accessibly/vendor/guzzlehttp/guzzle/src/Pool.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'GrahamCampbell\\ResultType\\Result' not found in wp-content/plugins/otm-accessibly/vendor/graham-campbell/result-type/src/Error.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'Dotenv\\Parser\\ParserInterface' not found in wp-content/plugins/otm-accessibly/vendor/vlucas/phpdotenv/src/Parser/Parser.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/otm-accessibly/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/otm-accessibly/vendor/guzzlehttp/promises/src/CancellationException.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/otm-accessibly/vendor/psr/http-client/src/NetworkExceptionInterface.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Dotenv\\Exception\\ExceptionInterface' not found in wp-content/plugins/otm-accessibly/vendor/vlucas/phpdotenv/src/Exception/InvalidPathException.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in otm-accessibly/assets to your readme.txt
The official readme.txt might help

otm-accessibly/accessibly-plugin.php 77% from 13 tests

"Accessibly - Wordpress Website Accessibility" version 3.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.5")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("otm-accessibly.php" instead of "accessibly-plugin.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected77,311 lines of code in 373 files:
LanguageFilesBlank linesComment linesLines of code
PHP2283,4179,07435,229
JSON260032,175
Markdown231,33303,789
JSX29195472,755
CSS81841262,010
TypeScript355662746
JavaScript124415417
YAML622398
SVG40075
Dockerfile18010
Sass1007

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
Please fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity12.66
▷ Minimum class complexity1.00
▷ Maximum class complexity179.00
Average method complexity2.99
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
Namespaces33
Interfaces35
Traits3
Classes146
▷ Abstract classes21.37%
▷ Concrete classes14498.63%
▷ Final classes7954.86%
Methods1,153
▷ Static methods31527.32%
▷ Public methods96783.87%
▷ Protected methods40.35%
▷ Private methods18215.78%
Functions320
▷ Named functions17855.62%
▷ Anonymous functions14244.38%
Constants248
▷ Global constants9136.69%
▷ Class constants15763.31%
▷ Public constants13485.35%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
app/assets/images/website-preview.png13.78KB13.07KB▼ 5.14%
static/favicon.png1.53KB1.50KB▼ 2.42%