84% ufhealth-require-image-alt-tags

Code Review | UF Health Require Image Alt Tags

WordPress plugin UF Health Require Image Alt Tags scored 84% from 54 tests.

About plugin

  • Plugin page: ufhealth-require-...
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 27, 2017
  • Latest release: Jul 20, 2018
  • Number of updates: 7
  • Update frequency: every 39.0 days
  • Top authors: ufhealth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active / 10,313 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.03MB] [CPU: ▼0.99ms] Passed 4 tests

Analyzing server-side resources used by UF Health Require Image Alt Tags
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.66 ▼7.58
Dashboard /wp-admin3.33 ▲0.0351.15 ▼2.52
Posts /wp-admin/edit.php3.38 ▲0.0356.76 ▲4.59
Add New Post /wp-admin/post-new.php5.93 ▲0.05102.76 ▲3.72
Media Library /wp-admin/upload.php3.25 ▲0.0239.18 ▲2.43

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

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

Browser metrics Passed 4 tests

Checking browser requirements for UF Health Require Image Alt Tags
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.21 ▼1.191.81 ▼0.2141.66 ▼2.10
Dashboard /wp-admin2,209 ▲65.07 ▼0.7099.07 ▼15.3742.81 ▲0.38
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.1139.84 ▼4.0535.98 ▲1.28
Add New Post /wp-admin/post-new.php1,522 ▼1923.52 ▲0.17678.17 ▼29.8763.45 ▲9.29
Media Library /wp-admin/upload.php1,388 ▲34.22 ▼0.0494.35 ▼8.4839.85 ▼4.56

Uninstaller [IO: ✅] [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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function UFHealth\\require_image_alt_tags\\add_action() in wp-content/plugins/ufhealth-require-image-alt-tags/includes/require-alt-tags.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function UFHealth\\require_image_alt_tags\\Uninstall\\status_header() in wp-content/plugins/ufhealth-require-image-alt-tags/uninstall.php:69
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ufhealth-require-image-alt-tags/ufhealth-require-image-alt-tags.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

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
3 plugin tags: a11y, alt tag, accessibility

ufhealth-require-image-alt-tags/ufhealth-require-image-alt-tags.php Passed 13 tests

The entry point to "UF Health Require Image Alt Tags" version 1.2 is a PHP file that has certain tags in its header comment area
78 characters long description:
Forces users to add an ALT tag when adding images to WordPress posts and more.

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
There were no executable files found in this plugin238 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34731121
PHP34410375
Sass15026
CSS21816

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
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
Namespaces2
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin