84% wp-auto-alt-image-tag

Code Review | WP Auto Alt Image Tag

WordPress plugin WP Auto Alt Image Tag scored84%from 54 tests.

About plugin

  • Plugin page: wp-auto-alt-image...
  • Plugin version: 1.1.3
  • PHP compatiblity: 5.6.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.7.0
  • WordPress version: 6.3.1
  • First release: May 12, 2020
  • Latest release: Mar 23, 2021
  • Number of updates: 11
  • Update frequency: every 28.6 days
  • Top authors: kamerdinc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /870 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by WP Auto Alt Image Tag
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.90 ▼1.91
Dashboard /wp-admin3.31 ▲0.0144.09 ▼5.35
Posts /wp-admin/edit.php3.36 ▲0.0145.79 ▲1.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.29 ▲2.48
Media Library /wp-admin/upload.php3.24 ▲0.0136.23 ▲3.65

Server storage [IO: ▲0.00MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Auto Alt Image Tag: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.49 ▲0.121.90 ▼0.5940.95 ▼6.28
Dashboard /wp-admin2,206 ▲184.82 ▼1.09107.74 ▼9.2542.66 ▼0.81
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0440.67 ▲5.4835.90 ▲1.75
Add New Post /wp-admin/post-new.php1,542 ▲918.40 ▼4.62591.14 ▼67.7152.40 ▼6.92
Media Library /wp-admin/upload.php1,391 ▲34.26 ▼0.0395.77 ▼8.7443.75 ▲1.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-auto-alt-image-tag/wp-auto-alt-image-tag.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: image alt, auto alt, alt tag

wp-auto-alt-image-tag/wp-auto-alt-image-tag.php Passed 13 tests

"WP Auto Alt Image Tag" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
81 characters long description:
Plugin for auto adding alt text for every images in article, if alt text is empty

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin38 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP291238

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin