10% seo-title-tag

Code Review | SEO Title Tag

WordPress plugin SEO Title Tag scored 10% from 54 tests.

About plugin

  • Plugin page: seo-title-tag
  • Plugin version: 3.5.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-5.2.2
  • WordPress version: 6.3.1
  • First release: Apr 2, 2007
  • Latest release: Nov 7, 2019
  • Number of updates: 98
  • Update frequency: every 47.1 days
  • Top authors: Netconcepts (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active / 281,111 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'seo_title_tag_install' not found or invalid function name

Server metrics [RAM: ▲0.28MB] [CPU: ▼0.46ms] Passed 4 tests

A check of server-side resources used by SEO Title Tag
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2942.12 ▼2.01
Dashboard /wp-admin3.58 ▲0.2848.03 ▼1.02
Posts /wp-admin/edit.php3.69 ▲0.3450.61 ▲0.71
Add New Post /wp-admin/post-new.php6.16 ▲0.2897.54 ▲0.47
Media Library /wp-admin/upload.php3.50 ▲0.2839.93 ▲1.80
SEO Title Tag /wp-admin/tools.php?page=seo-title-tag3.4437.73
SEO Title Tag /wp-admin/options-general.php?page=seo-title-tag3.4732.32

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: 3 new tables, 13 new options
New tables
wp_seo_title_tag_tag
wp_seo_title_tag_url
wp_seo_title_tag_category
New WordPress options
custom_title_key
widget_recent-posts
uploaded_file
include_title_form
theysaidso_admin_options
custom_meta_description_key
include_slug_form
can_compress_scripts
widget_recent-comments
db_upgraded
...

Browser metrics Passed 4 tests

Checking browser requirements for SEO Title Tag
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.22 ▼1.534.93 ▲2.9638.80 ▼3.71
Dashboard /wp-admin2,210 ▲195.83 ▼0.07104.65 ▲3.7235.85 ▼8.44
Posts /wp-admin/edit.php2,099 ▲102.00 ▼0.0339.72 ▼0.9435.50 ▼0.79
Add New Post /wp-admin/post-new.php1,546 ▲2618.37 ▼4.92606.30 ▼4.5458.86 ▲2.06
Media Library /wp-admin/upload.php1,401 ▲104.21 ▼0.0097.53 ▼0.1642.28 ▼1.86
SEO Title Tag /wp-admin/tools.php?page=seo-title-tag9812.0222.8938.81
SEO Title Tag /wp-admin/options-general.php?page=seo-title-tag1,3212.5029.0235.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_seo_title_tag_category
    • wp_seo_title_tag_tag
    • wp_seo_title_tag_url
  • This plugin did not uninstall successfully, leaving 13 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • custom_title_key
    • include_slug_form
    • can_compress_scripts
    • widget_recent-posts
    • custom_meta_description_key
    • manage_elements_per_page
    • include_meta_description_form
    • ...

Smoke tests 0% 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
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=seo-title-tag
    • > Deprecated in wp-content/plugins/seo-title-tag/seo-title-tag-3.5.php+1321
    Function get_magic_quotes_runtime() is deprecated

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 fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/seo-title-tag/ajaximage.php
    • > /wp-content/plugins/seo-title-tag/upload.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-title-tag/seo-title-tag-2.3.php:148
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-title-tag/seo-title-tag-2.5.php:148
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-title-tag/WPSEOTitleTag.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/seo-title-tag/seo-title-tag.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-title-tag/WPSEOTitleTag.php:25

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=seo-title-tag
    • > Network (severe)
    wp-content/plugins/seo-title-tag/jquery-1.6.2.min.js - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Settings Page), #2 (Tools Page)
The official readme.txt is a good inspiration

seo-title-tag/seo-title-tag.php 92% from 13 tests

This is the main PHP file of "SEO Title Tag" version 3.5.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 312 characters long)

Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin13,657 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript71,9371,5838,570
PHP81,1024574,897
CSS4157190

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 121)
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity170.50
▷ Minimum class complexity95.00
▷ Maximum class complexity246.00
Average method complexity15.12
▷ Minimum method complexity1.00
▷ Maximum method complexity121.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods2291.67%
▷ Protected methods00.00%
▷ Private methods28.33%
Functions43
▷ Named functions43100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
5 PNG files occupy 0.21MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png32.25KB17.18KB▼ 46.75%
screenshot-3.png38.82KB17.92KB▼ 53.84%
screenshot-4.png37.72KB17.27KB▼ 54.22%
screenshot-1.png68.25KB32.39KB▼ 52.54%
screenshot-5.png39.27KB18.60KB▼ 52.62%