84% wpsso-wc-metadata

Code Review | WPSSO Product Metadata (aka Custom Fields) for WooCommerce SEO - MPN, ISBN, GTIN, UPC, EAN, Global Identifiers

WordPress plugin WPSSO Product Metadata (aka Custom Fields) for WooCommerce SEO - MPN, ISBN, GTIN, UPC, EAN, Global Identifiers scored84%from 54 tests.

About plugin

  • Plugin page: wpsso-wc-metadata
  • Plugin version: 4.0.0
  • PHP compatiblity: 7.2.34+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4.1
  • WordPress version: 6.3.1
  • First release: May 1, 2020
  • Latest release: Nov 9, 2023
  • Number of updates: 1,073
  • Update frequency: every 1.2 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

800+ active /22,649 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.83ms] Passed 4 tests

Analyzing server-side resources used by WPSSO Product Metadata (aka Custom Fields) for WooCommerce SEO - MPN, ISBN, GTIN, UPC, EAN, Global Identifiers
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.07 ▼5.88
Dashboard /wp-admin3.34 ▼0.0148.36 ▼10.57
Posts /wp-admin/edit.php3.45 ▲0.0944.50 ▼2.58
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.06 ▼12.27
Media Library /wp-admin/upload.php3.26 ▲0.0334.79 ▲2.10

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WPSSO Product Metadata (aka Custom Fields) for WooCommerce SEO - MPN, ISBN, GTIN, UPC, EAN, Global Identifiers
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5114.18 ▼0.221.70 ▼1.2845.25 ▼22.11
Dashboard /wp-admin2,207 ▲275.47 ▼0.2088.39 ▼12.3239.47 ▼7.53
Posts /wp-admin/edit.php2,112 ▲92.00 ▲0.0536.44 ▲0.4136.27 ▼0.42
Add New Post /wp-admin/post-new.php1,538 ▲1223.22 ▲0.22660.82 ▲68.2254.49 ▲0.53
Media Library /wp-admin/upload.php1,415 ▲124.14 ▼0.0596.64 ▼6.2742.61 ▼0.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 14× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/wpsso-wc-metadata/lib/search.php
    • > /wp-content/plugins/wpsso-wc-metadata/lib/filters-upgrade.php
    • > /wp-content/plugins/wpsso-wc-metadata/wpsso-wc-metadata.php
    • > /wp-content/plugins/wpsso-wc-metadata/lib/filters-messages.php
    • > /wp-content/plugins/wpsso-wc-metadata/lib/filters-options.php
    • > /wp-content/plugins/wpsso-wc-metadata/lib/submenu/wc-metadata.php
    • > /wp-content/plugins/wpsso-wc-metadata/lib/filters.php
    • > /wp-content/plugins/wpsso-wc-metadata/lib/config.php
    • > /wp-content/plugins/wpsso-wc-metadata/lib/abstract/com/add-on.php
    • > /wp-content/plugins/wpsso-wc-metadata/lib/woocommerce.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: global identifier, mpn, isbn, upc, custom fields...

wpsso-wc-metadata/wpsso-wc-metadata.php Passed 13 tests

The entry point to "WPSSO Product Metadata (aka Custom Fields) for WooCommerce SEO - MPN, ISBN, GTIN, UPC, EAN, Global Identifiers" version 4.0.0 is a PHP file that has certain tags in its header comment area
117 characters long description:
MPN, ISBN, GTIN, GTIN-8, UPC, EAN, GTIN-14, net dimensions, and fluid volume for WooCommerce products and variations.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,894 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP146632881,583
PO File14949132
Markdown126086
JavaScript238763
HTML232030

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity19.75
▷ Minimum class complexity3.00
▷ Maximum class complexity79.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes216.67%
▷ Concrete classes1083.33%
▷ Final classes00.00%
Methods72
▷ Static methods1115.28%
▷ Public methods5576.39%
▷ Protected methods56.94%
▷ Private methods1216.67%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-128x128.png19.40KB6.85KB▼ 64.71%
images/icon-256x256.png51.41KB16.45KB▼ 68.01%