84% alt-text-tools

Code Review | Alt Text Tools

WordPress plugin Alt Text Tools scored84%from 54 tests.

About plugin

  • Plugin page: alt-text-tools
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 10, 2020
  • Latest release: Aug 8, 2023
  • Number of updates: 16
  • Update frequency: every 74.1 days
  • Top authors: eatingrules (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

900+ active /7,510 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.22ms] Passed 4 tests

A check of server-side resources used by Alt Text Tools
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.28 ▲6.33
Dashboard /wp-admin3.33 ▲0.0345.11 ▼4.26
Posts /wp-admin/edit.php3.38 ▲0.0349.24 ▲3.65
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.06 ▼18.46
Media Library /wp-admin/upload.php3.26 ▲0.0332.09 ▼1.82
Alt Text Tools /wp-admin/tools.php?page=nerdpress-alt-text-tools3.2328.56

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Alt Text Tools
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.23 ▼1.061.66 ▼0.1243.39 ▲2.61
Dashboard /wp-admin2,210 ▲225.90 ▼0.07112.40 ▲12.9842.34 ▼2.08
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0238.81 ▼3.6034.64 ▼1.29
Add New Post /wp-admin/post-new.php1,531 ▲1223.09 ▼0.04650.21 ▲10.7056.28 ▲1.80
Media Library /wp-admin/upload.php1,395 ▲104.26 ▲0.0593.09 ▼5.6043.42 ▼1.27
Alt Text Tools /wp-admin/tools.php?page=nerdpress-alt-text-tools7602.0423.6623.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/alt-text-tools/alt-text-tools.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: alternative text, alt tags, accessibility, image alt, fix images...

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

"Alt Text Tools" version 0.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
113 characters long description:
Exports a CSV file of all images that are actually used in your content, along with their corresponding alt tags.

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
There were no executable files found in this plugin174 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12557139
JavaScript13035

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods450.00%
▷ Public methods675.00%
▷ Protected methods00.00%
▷ Private methods225.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin