83% custom-alt-text-for-elementor-images

Code Review | Custom Alt Text for Elementor Images

WordPress plugin Custom Alt Text for Elementor Images scored83%from 54 tests.

About plugin

  • Plugin page: custom-alt-text-f...
  • Plugin version: 1.0.2
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 20, 2023
  • Latest release: Oct 2, 2023
  • Number of updates: 6
  • Update frequency: every 18.2 days
  • Top authors: MIGHTYminnow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /372 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by Custom Alt Text for Elementor Images
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.18 ▼5.47
Dashboard /wp-admin3.32 ▼0.0240.45 ▼18.12
Posts /wp-admin/edit.php3.37 ▲0.0247.10 ▲0.45
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.47 ▼10.80
Media Library /wp-admin/upload.php3.25 ▲0.0230.80 ▼3.69

Server storage [IO: ▲0.17MB] [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: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Custom Alt Text for Elementor Images: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.125.64 ▲3.9536.98 ▼5.19
Dashboard /wp-admin2,206 ▲216.04 ▲0.98115.80 ▲13.3340.39 ▼4.58
Posts /wp-admin/edit.php2,086 ▲182.04 ▲0.0538.83 ▲3.5734.99 ▲2.34
Add New Post /wp-admin/post-new.php1,514 ▼1917.50 ▼5.77700.37 ▲17.2149.56 ▼1.71
Media Library /wp-admin/upload.php1,388 ▼04.29 ▲0.0296.20 ▲0.3439.63 ▼3.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
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_action() in wp-content/plugins/custom-alt-text-for-elementor-images/custom-alt-text-for-elementor-images.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (The Image Widget settings before adding this plugin.), #2 (The Image Widget settings after adding this plugin.), #3 (The 3 different options for the Alternative Text.)
The official readme.txt might help

custom-alt-text-for-elementor-images/custom-alt-text-for-elementor-images.php 85% from 13 tests

The primary PHP file in "Custom Alt Text for Elementor Images" version 1.0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 214 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected78 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1111169
Markdown1809

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
3 PNG files occupy 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png70.34KB20.25KB▼ 71.20%
assets/screenshot-1.png54.49KB14.98KB▼ 72.52%
assets/screenshot-3.png38.74KB13.65KB▼ 64.78%