83% auto-populate-image-alt-tags-from-media-library

Code Review | Auto-populate Image ALT Tags from Media Library

WordPress plugin Auto-populate Image ALT Tags from Media Library scored 83% from 54 tests.

About plugin

  • Plugin page: auto-populate-ima...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.5-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 23, 2018
  • Latest release: Mar 7, 2018
  • Number of updates: 3
  • Update frequency: every 4.7 days
  • Top authors: tdcdodger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,012 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
This plugin's installer ran successfully

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

Server-side resources used by Auto-populate Image ALT Tags from Media Library
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.99 ▼1.58
Dashboard /wp-admin3.32 ▲0.0151.14 ▲0.26
Posts /wp-admin/edit.php3.37 ▲0.0153.95 ▼2.48
Add New Post /wp-admin/post-new.php5.90 ▲0.01102.31 ▲1.93
Media Library /wp-admin/upload.php3.24 ▲0.0140.43 ▼3.63

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto-populate Image ALT Tags from Media Library
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲3613.27 ▼0.375.95 ▲0.6041.55 ▼2.83
Dashboard /wp-admin2,206 ▼04.87 ▼1.04100.06 ▼7.2440.57 ▼1.84
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0440.30 ▼0.0634.94 ▼5.41
Add New Post /wp-admin/post-new.php1,542 ▲818.39 ▼4.82595.91 ▼92.3761.63 ▲2.59
Media Library /wp-admin/upload.php1,382 ▼94.12 ▼0.10101.47 ▼11.9046.82 ▼1.60

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/auto-populate-image-alt-tags-from-media-library/img-alt-media-library.php:63

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Contributors: Contributors not specified
  • Screenshots: Add images for these screenshots: #1 ([https://taylor.callsen.me/wp-content/uploads/2018/02/set-title-alt-tags-media-li.jpg Set the Image Alt and Title tags in the Media Library]), #2 ([https://taylor.callsen.me/wp-content/uploads/2018/02/see-img-alt-title-when-view.jpg The Alt and Title tags are automatically inserted into the Image HTML when viewing a page or post])
The official readme.txt might help

auto-populate-image-alt-tags-from-media-library/img-alt-media-library.php 92% from 13 tests

This is the main PHP file of "Auto-populate Image ALT Tags from Media Library" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("auto-populate-image-alt-tags-from-media-library.php" instead of "img-alt-media-library.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121932

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.58
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 functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin