52% image-alt-tager

Code Review | IMAGE ALT TAGER

WordPress plugin IMAGE ALT TAGER scored52%from 54 tests.

About plugin

  • Plugin page: image-alt-tager
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 15, 2015
  • Latest release: Jul 15, 2015
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: eSas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,526 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.92MB] [CPU: ▼32.08ms] Passed 4 tests

This is a short check of server-side resources used by IMAGE ALT TAGER
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.77 ▲3.23
Dashboard /wp-admin3.02 ▼0.2827.14 ▼21.26
Posts /wp-admin/edit.php3.02 ▼0.3425.56 ▼24.51
Add New Post /wp-admin/post-new.php3.02 ▼2.8730.09 ▼73.81
Media Library /wp-admin/upload.php3.02 ▼0.2126.46 ▼8.72
IMG ALT TAGER /wp-admin/options-general.php?page=IMG_ALT_TAGER3.0224.97

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: 1 new table, 6 new options
New tables
wp_jmk_alt_tags
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for IMAGE ALT TAGER
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.31 ▼0.241.77 ▲0.1946.96 ▲6.92
Dashboard /wp-admin2,196 ▲155.63 ▼0.0396.87 ▼22.3842.09 ▼3.20
Posts /wp-admin/edit.php2,107 ▲72.00 ▲0.0338.37 ▲1.1536.56 ▲2.01
Add New Post /wp-admin/post-new.php1,529 ▲123.33 ▲0.28668.46 ▲27.6160.39 ▲10.24
Media Library /wp-admin/upload.php1,401 ▲104.19 ▼0.03107.18 ▲4.2747.31 ▲5.08
IMG ALT TAGER /wp-admin/options-general.php?page=IMG_ALT_TAGER8812.0026.3425.81

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_jmk_alt_tags
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=IMG_ALT_TAGER
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=IMG_ALT_TAGER
    • > Notice in wp-content/plugins/image-alt-tager/jmk_admin_menu.php+11
    Undefined index: jmk_hidden
    • > GET request to /wp-admin/options-general.php?page=IMG_ALT_TAGER
    • > Notice in wp-content/plugins/image-alt-tager/jmk_admin_menu.php+193
    Undefined variable: jmktags
    • > GET request to /wp-admin/options-general.php?page=IMG_ALT_TAGER
    • > Notice in wp-content/plugins/image-alt-tager/jmk_admin_menu.php+203
    Undefined variable: ContentBox
    • > GET request to /wp-admin/options-general.php?page=IMG_ALT_TAGER
    • > Notice in wp-content/plugins/image-alt-tager/jmk_admin_menu.php+203
    Undefined variable: check1
    • > GET request to /wp-admin/options-general.php?page=IMG_ALT_TAGER
    • > Notice in wp-content/plugins/image-alt-tager/jmk_admin_menu.php+205
    Undefined variable: WidgetBox
    • > GET request to /wp-admin/options-general.php?page=IMG_ALT_TAGER
    • > Notice in wp-content/plugins/image-alt-tager/jmk_admin_menu.php+205
    Undefined variable: check2
    • > GET request to /wp-admin/options-general.php?page=IMG_ALT_TAGER
    • > Notice in wp-content/plugins/image-alt-tager/jmk_admin_menu.php+215
    Undefined variable: randomize
    • > GET request to /wp-admin/options-general.php?page=IMG_ALT_TAGER
    • > Notice in wp-content/plugins/image-alt-tager/jmk_admin_menu.php+215
    Undefined variable: check

SRP 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/image-alt-tager/jmk_admin_menu.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/image-alt-tager/jmk.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (Admin Management), #2 (Plugin in action)
Please take inspiration from this readme.txt

image-alt-tager/jmk.php 92% from 13 tests

Analyzing the main PHP file in "IMAGE ALT TAGER" version 1.0
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("image-alt-tager.php" instead of "jmk.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin297 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23730297

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions10
▷ Named functions10100.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
There were not PNG files found in your plugin