73% bulk-image-alt-text-with-yoast

Code Review | Bulk Auto Image Alt Text (Alt tag, Alt attribute) optimizer (image SEO)

WordPress plugin Bulk Auto Image Alt Text (Alt tag, Alt attribute) optimizer (image SEO) scored73%from 54 tests.

About plugin

  • Plugin page: bulk-image-alt-te...
  • Plugin version: 1.4.7.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Oct 3, 2018
  • Latest release: Oct 7, 2023
  • Number of updates: 99
  • Update frequency: every 18.5 days
  • Top authors: pagup (97.98%)The-Rock (3.03%)

Code review

54 tests

User reviews

106 reviews

Install metrics

20,000+ active /317,105 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲5.43MB] [CPU: ▲22.93ms] 75% from 4 tests

An overview of server-side resources used by Bulk Auto Image Alt Text (Alt tag, Alt attribute) optimizer (image SEO)
Please have a look at the following items
  • Extra RAM: The extra memory usage must be under 5MB (currently 5.43MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.26 ▲5.8067.01 ▲30.80
Dashboard /wp-admin9.28 ▲5.9371.48 ▲11.41
Posts /wp-admin/edit.php9.28 ▲5.9266.23 ▲19.94
Add New Post /wp-admin/post-new.php9.94 ▲4.05121.58 ▲29.55
Media Library /wp-admin/upload.php9.28 ▲6.0565.16 ▲31.34
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2860.15

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 312 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
fs_active_plugins
can_compress_scripts
db_upgraded
theysaidso_admin_options
fs_accounts
widget_recent-comments
fs_debug_mode

Browser metrics Passed 4 tests

Checking browser requirements for Bulk Auto Image Alt Text (Alt tag, Alt attribute) optimizer (image SEO)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲10514.35 ▼0.001.72 ▼0.0928.97 ▼10.51
Dashboard /wp-admin2,232 ▲525.56 ▼0.0683.32 ▼5.2840.82 ▼2.00
Posts /wp-admin/edit.php2,138 ▲382.04 ▲0.0735.76 ▼1.7839.01 ▲4.66
Add New Post /wp-admin/post-new.php6,290 ▲4,75526.03 ▲7.94869.75 ▲237.5755.98 ▼9.50
Media Library /wp-admin/upload.php1,437 ▲344.30 ▲0.0896.17 ▼0.8247.18 ▲0.65
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,1051.7126.0727.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/bulk-image-alt-text-with-yoast/vendor/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 9 options in the database
    • db_upgraded
    • widget_recent-comments
    • fs_active_plugins
    • fs_accounts
    • fs_debug_mode
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • 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 no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bulk-image-alt-text-with-yoast/admin/views/promo/vidseo.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/bulk-image-alt-text-with-yoast/admin/views/layout/top.view.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Pagup\\Bialty\\Controllers\\SettingsController' not found in wp-content/plugins/bulk-image-alt-text-with-yoast/admin/Settings.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/bulk-image-alt-text-with-yoast/admin/views/notices/support.view.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bulk-image-alt-text-with-yoast/admin/views/layout/sidebar.view.php:6
    • > PHP Fatal error
      Trait 'Pagup\\Bialty\\Traits\\DomHelper' not found in wp-content/plugins/bulk-image-alt-text-with-yoast/admin/controllers/DomController.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/bulk-image-alt-text-with-yoast/admin/views/layout/top.view.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bulk-image-alt-text-with-yoast/admin/views/notices/reset.view.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bulk-image-alt-text-with-yoast/admin/views/partials/seo-recommendations.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bulk-image-alt-text-with-yoast/admin/views/promo/robot.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: You can take inspiration from this readme.txt

bulk-image-alt-text-with-yoast/bulk-image-alt-text-with-yoast.php 85% from 13 tests

"Bulk Auto Image Alt Text (Alt tag, Alt attribute) optimizer (image SEO)" version 1.4.7.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 307 characters long)
  • Plugin Name: Please shorten the plugin name (currently 82 characters long instead of max. 70)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin59,799 lines of code in 228 files:
LanguageFilesBlank linesComment linesLines of code
PHP1508,38117,56235,274
PO File188,1719,90519,047
Sass28399772,515
CSS24406352,470
JavaScript54662244
Markdown1680214
JSON20035

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity73.14
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces5
Interfaces0
Traits1
Classes62
▷ Abstract classes23.23%
▷ Concrete classes6096.77%
▷ Final classes00.00%
Methods1,327
▷ Static methods21716.35%
▷ Public methods93770.61%
▷ Protected methods171.28%
▷ Private methods37328.11%
Functions103
▷ Named functions10299.03%
▷ Anonymous functions10.97%
Constants147
▷ Global constants10068.03%
▷ Class constants4731.97%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.31MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/imgs/p11.png25.15KB11.84KB▼ 52.91%
admin/assets/imgs/p01.png7.72KB4.95KB▼ 35.87%
admin/assets/imgs/p04.png29.72KB14.09KB▼ 52.59%
admin/assets/imgs/p07.png7.51KB4.36KB▼ 41.91%
admin/assets/imgs/5.png28.95KB8.79KB▼ 69.64%