10% seo-meta-tags

Code Review | Seo Meta Tags

WordPress plugin Seo Meta Tags scored 10% from 54 tests.

About plugin

  • Plugin page: seo-meta-tags
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.2-4.5
  • WordPress version: 5.8.1
  • First release: Mar 4, 2010
  • Latest release: Apr 28, 2016
  • Number of updates: 35
  • Update frequency: every 64.2 days
  • Top authors: purab (82.86%)wordpressapi (20%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active / 33,914 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/seo-meta-tags/seo-meta-tags.php+17
    Use of undefined constant SMT_HOME_KEYWORDS - assumed 'SMT_HOME_KEYWORDS' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.77MB] [CPU: ▼189.43ms] Passed 4 tests

Analyzing server-side resources used by Seo Meta Tags
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.86 ▼0.866.12 ▼16.26
Dashboard /wp-admin1.88 ▼1.188.41 ▼39.88
Posts /wp-admin/edit.php1.88 ▼1.236.10 ▼40.87
Add New Post /wp-admin/post-new.php1.88 ▼3.565.92 ▼642.99
Media Library /wp-admin/upload.php1.88 ▼1.136.78 ▼33.99
XML sitemap /wp-admin/admin.php?page=seometatag-xmlsitemap1.885.61
Social Info /wp-admin/admin.php?page=seometatag-social1.886.13
Webmaster Tools /wp-admin/admin.php?page=seometatag-webmaster-tool1.885.25
Dashboard /wp-admin/admin.php?page=seometatags-dashboard1.885.25

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Seo Meta Tags: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲19215.85 ▲0.239.00 ▼1.5653.05 ▲5.20
Dashboard /wp-admin3,019 ▲855.94 ▼0.01148.82 ▲1.27110.23 ▼10.09
Posts /wp-admin/edit.php2,785 ▲462.72 ▲0.0064.86 ▼3.9098.06 ▲7.26
Add New Post /wp-admin/post-new.php1,902 ▲28719.10 ▼2.30372.95 ▲86.04118.18 ▲10.15
Media Library /wp-admin/upload.php1,853 ▲465.02 ▼0.03152.05 ▼1.73121.62 ▼4.16
XML sitemap /wp-admin/admin.php?page=seometatag-xmlsitemap1,5642.0957.3477.11
Social Info /wp-admin/admin.php?page=seometatag-social1,1552.0956.4875.96
Webmaster Tools /wp-admin/admin.php?page=seometatag-webmaster-tool1,2012.0957.5381.51
Dashboard /wp-admin/admin.php?page=seometatags-dashboard1,1832.1656.9481.55

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
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/seo-meta-tags/seo-meta-tags.php+17
    Use of undefined constant SMT_HOME_KEYWORDS - assumed 'SMT_HOME_KEYWORDS' (this will throw an Error in a future version of PHP)

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=seometatags-dashboard
    • > Warning in wp-content/plugins/seo-meta-tags/seo-meta-tags.php+17
    Use of undefined constant SMT_HOME_KEYWORDS - assumed 'SMT_HOME_KEYWORDS' (this will throw an Error in a future version of PHP)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=seometatags-dashboard
    • > Warning in wp-content/plugins/seo-meta-tags/seo-meta-tags.php+18
    Use of undefined constant SMT_HOME_DESCRIPTION - assumed 'SMT_HOME_DESCRIPTION' (this will throw an Error in a future version of PHP)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=seometatags-dashboard
    • > Notice in wp-content/plugins/seo-meta-tags/seometa_site_admin_options.php+21
    Undefined index: action

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-meta-tags/seometa_site_admin_options.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/seo-meta-tags/seometatag_xmlsitemap.php:140
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-meta-tags/seometa_site_admin_options.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Preview of Seo Meta Tags admin panel control panel), #2 (Preview of Seo Meta Tags admin panel Dashboard), #3 (Preview of Seo Meta Tags admin panel Social panel)
You can look at the official readme.txt

seo-meta-tags/seo-meta-tags.php Passed 13 tests

"Seo Meta Tags" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
73 characters long description:
This plugin will add post excerpt as a meta tags of each individual post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin521 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP67957496
CSS14025

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
3 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot.png58.28KB22.45KB▼ 61.49%
screenshot-1.png58.28KB22.45KB▼ 61.49%
screenshot-2.png50.86KB18.98KB▼ 62.69%