78% tool-for-ada-section-508-and-seo

Code Review | WP Accessibility Tools & Missing Alt Text Finder

WordPress plugin WP Accessibility Tools & Missing Alt Text Finder scored 78% from 54 tests.

About plugin

  • Plugin page: tool-for-ada-sect...
  • Plugin version: 1.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 10, 2018
  • Latest release: Mar 13, 2023
  • Number of updates: 77
  • Update frequency: every 23.4 days
  • Top authors: foucciano (100%)

Code review

54 tests

User reviews

63 reviews

Install metrics

5,000+ active / 28,502 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼2.92ms] Passed 4 tests

An overview of server-side resources used by WP Accessibility Tools & Missing Alt Text Finder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1040.84 ▼3.01
Dashboard /wp-admin3.44 ▲0.1344.55 ▼4.50
Posts /wp-admin/edit.php3.55 ▲0.1943.97 ▼1.71
Add New Post /wp-admin/post-new.php6.02 ▲0.1494.15 ▼2.47
Media Library /wp-admin/upload.php3.36 ▲0.1336.54 ▲3.46
Accessibility Tools /wp-admin/options-general.php?page=pitheme-seo3.3330.50

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP Accessibility Tools & Missing Alt Text Finder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.30 ▼1.101.70 ▼0.1144.53 ▼2.54
Dashboard /wp-admin2,238 ▲475.84 ▼0.0198.01 ▼5.4942.90 ▼5.68
Posts /wp-admin/edit.php2,121 ▲352.05 ▲0.0835.21 ▼1.3934.22 ▲1.66
Add New Post /wp-admin/post-new.php1,562 ▲4223.18 ▲0.19613.18 ▼57.5352.70 ▼6.46
Media Library /wp-admin/upload.php1,414 ▲264.38 ▲0.1795.13 ▼18.4042.67 ▼5.00
Accessibility Tools /wp-admin/options-general.php?page=pitheme-seo8359.28436.45111.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/tool-for-ada-section-508-and-seo/toolbox/index.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/tool-for-ada-section-508-and-seo/dvin508-ada-seo.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tool-for-ada-section-508-and-seo/dvin508-media-api.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/tool-for-ada-section-508-and-seo/checklist/index.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tool-for-ada-section-508-and-seo/dvin508-post-api.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=pitheme-seo
    • > Network (severe)
    wp-json/dvin508-seo/v1/media/missing/all/1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=pitheme-seo
    • > Console-api (severe) in wp-content/plugins/tool-for-ada-section-508-and-seo/seo/dist/vendor.bundle.js+57651:18
    ERROR" SyntaxError: Unexpected token

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: missing alternative text finder, web accessibility, wcag, accessability, a11y...

tool-for-ada-section-508-and-seo/dvin508-ada-seo.php 92% from 13 tests

The entry point to "WP Accessibility Tools & Missing Alt Text Finder" version 1.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("tool-for-ada-section-508-and-seo.php" instead of "dvin508-ada-seo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin57,394 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript102,58246,26855,932
PHP5201101667
CSS3484325
HTML5427315
SVG303104
Markdown116029
JSON10022

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity18.00
▷ Minimum class complexity9.00
▷ Maximum class complexity35.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods36100.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

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
toolbox/images/webaim-head.png5.71KB2.68KB▼ 53.08%
toolbox/images/wave-logo.png11.56KB4.76KB▼ 58.79%
toolbox/images/tota11y-circle-glasses.png10.15KB4.31KB▼ 57.51%