10% seo-auto-image-tags

Code Review | SEO Auto Image Tags

WordPress plugin SEO Auto Image Tags scored 10% from 54 tests.

About plugin

  • Plugin page: seo-auto-image-tags
  • Plugin version: 0.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8.2
  • WordPress version: 5.8.1
  • First release: Oct 30, 2017
  • Latest release: Oct 31, 2017
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: webchemistry (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,170 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/seo-auto-image-tags/admin/class-seo-image-settings.php+185
    Undefined index: settings-updated

Server metrics [RAM: ▼1.83MB] [CPU: ▼187.28ms] Passed 4 tests

An overview of server-side resources used by SEO Auto Image Tags
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0336.90 ▲4.01
Dashboard /wp-admin1.82 ▼1.245.08 ▼39.38
Posts /wp-admin/edit.php1.82 ▼1.305.88 ▼43.27
Add New Post /wp-admin/post-new.php1.82 ▼3.625.39 ▼641.10
Media Library /wp-admin/upload.php1.82 ▼1.185.00 ▼25.36
SEO Auto Image Tags /wp-admin/tools.php?page=seo-auto-image-tags1.825.53

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for SEO Auto Image Tags
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲7116.33 ▲0.669.99 ▼1.0047.42 ▼2.36
Dashboard /wp-admin2,972 ▲385.98 ▼0.01134.75 ▼13.78106.57 ▼6.76
Posts /wp-admin/edit.php2,744 ▲82.85 ▲0.1262.58 ▼1.1891.79 ▲2.15
Add New Post /wp-admin/post-new.php2,060 ▲38819.44 ▲0.76366.38 ▲0.80110.79 ▲12.56
Media Library /wp-admin/upload.php1,815 ▲85.04 ▲0.03140.90 ▼9.76113.01 ▼4.04
SEO Auto Image Tags /wp-admin/tools.php?page=seo-auto-image-tags1,1032.0954.3989.97

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/seo-auto-image-tags/admin/class-seo-image-settings.php+185
    Undefined index: settings-updated

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/tools.php?page=seo-auto-image-tags
    • > Notice in wp-content/plugins/seo-auto-image-tags/admin/class-seo-image-settings.php+185
    Undefined index: settings-updated
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=seo-auto-image-tags
    • > Notice in wp-content/plugins/seo-auto-image-tags/admin/class-seo-image-settings.php+171
    Trying to access array offset on value of type bool

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/seo-auto-image-tags/seo-auto-image-tags.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/seo-auto-image-tags/admin/class-seo-image-settings.php:183

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Updater tool settings), #2 (Updater tool results)
The official readme.txt might help

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

"SEO Auto Image Tags" version 0.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)

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
Everything looks great! No dangerous files found in this plugin197 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34367197

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
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

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/wc-logo.png6.74KB4.01KB▼ 40.45%