84% automatic-image-alt-attributes

Code Review | Automatic image ALT attributes

WordPress plugin Automatic image ALT attributes scored84%from 54 tests.

About plugin

  • Plugin page: automatic-image-a...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7
  • WordPress version: 6.3.1
  • First release: Dec 29, 2016
  • Latest release: Dec 29, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: Birmingham (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /15,751 total downloads


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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Automatic image ALT attributes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.90 ▼2.32
Dashboard /wp-admin3.31 ▼0.0443.84 ▼18.06
Posts /wp-admin/edit.php3.36 ▲0.0047.12 ▲3.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.64 ▼27.76
Media Library /wp-admin/upload.php3.23 ▲0.0036.21 ▲3.14

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Automatic image ALT attributes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.281.81 ▲0.0244.47 ▲0.14
Dashboard /wp-admin2,206 ▲185.91 ▲1.06110.31 ▼8.3438.84 ▼9.87
Posts /wp-admin/edit.php2,089 ▼02.07 ▲0.1040.71 ▼1.0334.33 ▼2.34
Add New Post /wp-admin/post-new.php1,528 ▼1418.07 ▼0.16606.53 ▼63.3358.86 ▲8.37
Media Library /wp-admin/upload.php1,385 ▼34.22 ▼0.0297.07 ▼10.6743.60 ▼4.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/automatic-image-alt-attributes/automatic-image-alt-attributes.php:16

User-side errors Passed 1 test

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: image, alt, title, attribute, img

automatic-image-alt-attributes/automatic-image-alt-attributes.php Passed 13 tests

The principal PHP file in "Automatic image ALT attributes" v. 2.0 is loaded by WordPress automatically on each request
94 characters long description:
Automatically generates ALT attributes in image HTML. Restoring WordPress < 4.7 functionality.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
PNG images were not found in this plugin