77% seo-image-alt-tags

Code Review | SEO Image Toolbox

WordPress plugin SEO Image Toolbox scored77%from 54 tests.

About plugin

  • Plugin page: seo-image-alt-tags
  • Plugin version: 3.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.5
  • WordPress version: 6.3.1
  • First release: Jul 12, 2015
  • Latest release: Apr 10, 2018
  • Number of updates: 112
  • Update frequency: every 9.0 days
  • Top authors: amg26 (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

2,000+ active /36,606 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼11.83ms] Passed 4 tests

Server-side resources used by SEO Image Toolbox
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0045.41 ▼0.50
Dashboard /wp-admin3.32 ▼0.0350.70 ▼11.44
Posts /wp-admin/edit.php3.37 ▲0.0144.99 ▼8.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.13 ▼26.54
Media Library /wp-admin/upload.php3.24 ▲0.0138.53 ▲4.16
SEO Toolbox /wp-admin/tools.php?page=seo-image-tags3.1830.63

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by SEO Image Toolbox
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7614.78 ▲0.542.27 ▲0.6642.76 ▲5.99
Dashboard /wp-admin2,228 ▲226.05 ▲1.16104.31 ▲0.2037.61 ▼10.52
Posts /wp-admin/edit.php2,104 ▲42.03 ▼0.0035.14 ▼5.3034.65 ▼2.19
Add New Post /wp-admin/post-new.php1,557 ▲1218.07 ▼4.99665.36 ▲20.8358.26 ▼9.46
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.07103.18 ▲2.2146.11 ▼0.82
SEO Toolbox /wp-admin/tools.php?page=seo-image-tags1,0452.9846.1524.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=seo-image-tags
    • > Notice in wp-content/plugins/seo-image-alt-tags/classes/class-sit-settings.php+121
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/tools.php?page=seo-image-tags
    • > Notice in wp-content/plugins/seo-image-alt-tags/classes/class-sit-settings.php+183
    Undefined index: enable_seo_links
    • > GET request to /wp-admin/tools.php?page=seo-image-tags
    • > Notice in wp-content/plugins/seo-image-alt-tags/classes/class-sit-settings.php+190
    Undefined index: enable_pdf_ext

SRP 50% 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
Almost there! Just fix the following items
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/seo-image-alt-tags/index.php
    • > /wp-content/plugins/seo-image-alt-tags/classes/class-sit-scripts.php
    • > /wp-content/plugins/seo-image-alt-tags/classes/class-sit-settings.php
    • > /wp-content/plugins/seo-image-alt-tags/seo-image-alt-tags.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
  • Donate link: Please fix this invalid URI: "andrewgunn.org"
  • Screenshots: These screenshots require images: #1 (Full Screenshot), #2 (Single product), #3 (Product Widget)
You can look at the official readme.txt

seo-image-alt-tags/seo-image-alt-tags.php 92% from 13 tests

The primary PHP file in "SEO Image Toolbox" version 3.3.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 185 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin259 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP517570259

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity3.67
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin