89% seo-friendly-urls-for-woocommerce

Code Review | SEO-friendly URLs for WooCommerce

WordPress plugin SEO-friendly URLs for WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: seo-friendly-urls...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.5.3
  • WordPress version: 6.3.1
  • First release: Dec 2, 2020
  • Latest release: Dec 2, 2020
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: themeinwp (100%)Otto42 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 4,068 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▲3.77ms] Passed 4 tests

Server-side resources used by SEO-friendly URLs for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.91 ▲6.20
Dashboard /wp-admin3.36 ▲0.0548.35 ▲2.98
Posts /wp-admin/edit.php3.45 ▲0.1059.58 ▲15.86
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.27 ▲1.37
Media Library /wp-admin/upload.php3.28 ▲0.0542.29 ▲4.54

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
sfufw_options_settings
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for SEO-friendly URLs for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲3213.57 ▼0.841.62 ▼0.0536.68 ▼8.27
Dashboard /wp-admin2,227 ▲245.90 ▲0.03110.54 ▲14.0244.25 ▲3.95
Posts /wp-admin/edit.php2,110 ▲212.14 ▲0.1340.80 ▲5.7636.35 ▲3.34
Add New Post /wp-admin/post-new.php1,530 ▼1223.24 ▲0.43668.32 ▲14.6759.38 ▲8.60
Media Library /wp-admin/upload.php1,412 ▲244.25 ▼0.0496.56 ▼12.0641.45 ▼6.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • sfufw_options_settings
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
These attributes need your attention: You can take inspiration from this readme.txt

seo-friendly-urls-for-woocommerce/seo-friendly-urls-for-woocommerce.php 92% from 13 tests

The main file in "SEO-friendly URLs for WooCommerce" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 327 characters long)

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,001 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP826535740
CSS13520229
SVG10132

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity19.00
▷ Minimum class complexity1.00
▷ Maximum class complexity83.00
Average method complexity5.09
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods22
▷ Static methods29.09%
▷ Public methods2195.45%
▷ Protected methods00.00%
▷ Private methods14.55%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 are no PNG files in this plugin