78% image-tag-manager

Code Review | Image Tag Manager

WordPress plugin Image Tag Manager scored78%from 54 tests.

About plugin

  • Plugin page: image-tag-manager
  • Plugin version: 1.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7.2
  • WordPress version: 6.3.1
  • First release: Nov 22, 2019
  • Latest release: May 17, 2021
  • Number of updates: 53
  • Update frequency: every 10.3 days
  • Top authors: bradleydalina (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /4,628 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Server-side resources used by Image Tag Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.85 ▲6.56
Dashboard /wp-admin3.32 ▼0.0247.45 ▼15.59
Posts /wp-admin/edit.php3.37 ▲0.0246.67 ▼0.91
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.11 ▼11.93
Media Library /wp-admin/upload.php3.25 ▲0.0233.53 ▼1.28
Image Tag Manager /wp-admin/upload.php?page=image-tag-manager3.6233.42

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 27 new options
New WordPress options
widget_recent-comments
itm_use_post_title_as_default
itm_remove_from_alt
itm_add_class
itm_strip_numbers
itm_add_post_category_to_alt
db_upgraded
itm_add_post_title_to_title
widget_theysaidso_widget
itm_bar_separator
...

Browser metrics Passed 4 tests

An overview of browser requirements for Image Tag Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.35 ▲0.111.95 ▲0.4148.64 ▲7.59
Dashboard /wp-admin2,196 ▲225.53 ▼0.1185.19 ▼3.4139.60 ▼0.25
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0233.33 ▼3.4334.45 ▼1.96
Add New Post /wp-admin/post-new.php1,531 ▲522.99 ▼0.19658.83 ▼19.7257.14 ▲1.38
Media Library /wp-admin/upload.php1,404 ▲14.19 ▼0.03110.76 ▲10.8245.54 ▼1.97
Image Tag Manager /wp-admin/upload.php?page=image-tag-manager1,8241.8328.0061.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
  • 15× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/image-tag-manager/admin/img/index.php
    • > /wp-content/plugins/image-tag-manager/admin/css/index.php
    • > /wp-content/plugins/image-tag-manager/library/itm-filter-activation.php
    • > /wp-content/plugins/image-tag-manager/admin/inc/index.php
    • > /wp-content/plugins/image-tag-manager/library/itm-filter-attributes.php
    • > /wp-content/plugins/image-tag-manager/admin/core.php
    • > /wp-content/plugins/image-tag-manager/admin/inc/settings.php
    • > /wp-content/plugins/image-tag-manager/admin/inc/support.php
    • > /wp-content/plugins/image-tag-manager/image-tag-manager.php
    • > /wp-content/plugins/image-tag-manager/admin/js/index.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/upload.php?page=image-tag-manager
    • > Network (severe)
    https://www.paypalobjects.com/en_PH/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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 to be fixed:
  • Screenshots: Add descriptions for screenshots #2, #3, #4, #5 in image-tag-manager/assets to your readme.txt
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
Please take inspiration from this readme.txt

image-tag-manager/image-tag-manager.php Passed 13 tests

The entry point to "Image Tag Manager" version 1.5 is a PHP file that has certain tags in its header comment area
133 characters long description:
This plugin allows you to dynamically generates (alt, title, caption and description) in any images of your site for SEO enhancement.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,801 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10593901,323
CSS1141240
JavaScript271238

PHP code Passed 2 tests

An overview of 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.61
Average class complexity43.67
▷ Minimum class complexity1.00
▷ Maximum class complexity114.00
Average method complexity10.14
▷ Minimum method complexity1.00
▷ Maximum method complexity90.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods14
▷ Static methods642.86%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin