89% alt-text-generator

Code Review | Alt Text Generator AI - Generate & Update Alt Texts For Your Images In Bulk

WordPress plugin Alt Text Generator AI - Generate & Update Alt Texts For Your Images In Bulk scored89%from 54 tests.

About plugin

  • Plugin page: alt-text-generator
  • Plugin version: 1.7.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.3
  • WordPress version: 6.3.1
  • First release: Sep 26, 2023
  • Latest release: Sep 30, 2023
  • Number of updates: 9
  • Update frequency: every 0.6 days
  • Top authors: dalexalimited (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /104 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 gracefully, with no errors

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

A check of server-side resources used by Alt Text Generator AI - Generate & Update Alt Texts For Your Images In Bulk
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.55 ▼12.02
Dashboard /wp-admin3.32 ▲0.0149.16 ▼8.67
Posts /wp-admin/edit.php3.37 ▲0.0148.32 ▲1.71
Add New Post /wp-admin/post-new.php5.90 ▲0.01106.23 ▲5.91
Media Library /wp-admin/upload.php3.24 ▲0.0134.87 ▼2.45

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Alt Text Generator AI - Generate & Update Alt Texts For Your Images In Bulk
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.54 ▼0.101.79 ▼0.1140.12 ▼2.03
Dashboard /wp-admin2,207 ▲275.61 ▼0.0488.69 ▼0.2941.57 ▼4.60
Posts /wp-admin/edit.php2,109 ▲61.99 ▲0.0035.08 ▲0.8440.17 ▲5.79
Add New Post /wp-admin/post-new.php1,538 ▲1223.00 ▼0.00652.41 ▼37.8972.35 ▲9.82
Media Library /wp-admin/upload.php1,412 ▲154.20 ▲0.0198.20 ▼12.0745.08 ▲0.44

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: computer vision, seo, ai, alt text, image optimization...

alt-text-generator/index.php 85% from 13 tests

The primary PHP file in "Alt Text Generator AI - Generate & Update Alt Texts For Your Images In Bulk" version 1.7.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 208 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("alt-text-generator.php" instead of "index.php")

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 plugin216 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25237215
CSS1101
JavaScript1492310

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/alttextgenerator-logo.png108.38KB33.37KB▼ 69.21%