79% image-alt-text

Code Review | Image Alt Text

WordPress plugin Image Alt Text scored79%from 54 tests.

About plugin

  • Plugin page: image-alt-text
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Feb 28, 2023
  • Latest release: Aug 9, 2023
  • Number of updates: 16
  • Update frequency: every 10.5 days
  • Top authors: rswebstudios (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

700+ active /1,736 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.39ms] Passed 4 tests

A check of server-side resources used by Image Alt Text
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0944.15 ▲1.98
Dashboard /wp-admin3.40 ▲0.0951.42 ▼1.54
Posts /wp-admin/edit.php3.51 ▲0.1650.75 ▼2.20
Add New Post /wp-admin/post-new.php6.00 ▲0.1197.48 ▼3.81
Media Library /wp-admin/upload.php3.32 ▲0.0938.93 ▲3.53

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Image Alt Text
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9713.28 ▼1.271.75 ▼0.0243.93 ▲1.67
Dashboard /wp-admin2,246 ▲584.91 ▼0.00109.69 ▲9.4643.70 ▼7.55
Posts /wp-admin/edit.php2,135 ▲462.06 ▲0.0743.48 ▲7.0637.09 ▲3.78
Add New Post /wp-admin/post-new.php1,564 ▲2223.30 ▲4.81661.28 ▲11.1863.63 ▼4.30
Media Library /wp-admin/upload.php1,434 ▲494.21 ▼0.05103.14 ▼0.9247.34 ▲2.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% 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 0% 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
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/image-alt-text/image-alt-text.php
    • > /wp-content/plugins/image-alt-text/includes/iat-general.php
    • > /wp-content/plugins/image-alt-text/includes/class-iat-list-table.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/image-alt-text/admin/iat-missing-alt-txt-media-list.php:7

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
5 plugin tags: image alt text, image alternative, image alt, image alternative text, alt text

image-alt-text/image-alt-text.php Passed 13 tests

The main PHP file in "Image Alt Text" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
92 characters long description:
Image Alt Text plugin provides facilities to add missing alt text for all image media files.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,363 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP68346589
JavaScript41219548
CSS34310226

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity19.33
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/sort_desc.png0.17KB0.25KB0.00%
assets/images/sort_asc.png0.16KB0.25KB0.00%
assets/images/sort_both.png0.20KB0.29KB0.00%
assets/images/image-alt-text-logo.png16.08KB5.06KB▼ 68.51%