84% wpsso-wc-shipping-delivery-time

Code Review | WPSSO Shipping Delivery Time for WooCommerce SEO

WordPress plugin WPSSO Shipping Delivery Time for WooCommerce SEO scored84%from 54 tests.

About plugin

  • Plugin page: wpsso-wc-shipping...
  • Plugin version: 3.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: Oct 17, 2020
  • Latest release: Nov 9, 2023
  • Number of updates: 762
  • Update frequency: every 1.5 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active /7,727 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.18ms] Passed 4 tests

A check of server-side resources used by WPSSO Shipping Delivery Time for WooCommerce SEO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1333.47 ▼2.73
Dashboard /wp-admin3.43 ▲0.1348.30 ▼1.70
Posts /wp-admin/edit.php3.54 ▲0.1950.83 ▲5.53
Add New Post /wp-admin/post-new.php6.01 ▲0.1294.46 ▼9.20
Media Library /wp-admin/upload.php3.35 ▲0.1235.90 ▲0.90

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WPSSO Shipping Delivery Time for WooCommerce SEO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4014.67 ▲0.401.61 ▲0.0639.53 ▼1.83
Dashboard /wp-admin2,210 ▲335.59 ▼0.0396.62 ▲8.7743.53 ▲7.34
Posts /wp-admin/edit.php2,112 ▲121.97 ▼0.1740.59 ▲2.0737.34 ▲1.88
Add New Post /wp-admin/post-new.php1,547 ▲1225.12 ▼0.05635.45 ▼23.8665.44 ▲1.64
Media Library /wp-admin/upload.php1,412 ▲154.22 ▼0.04101.09 ▲2.7842.17 ▼0.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 12× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wpsso-wc-shipping-delivery-time/gettext/gettext-lib-config.php
    • > /wp-content/plugins/wpsso-wc-shipping-delivery-time/lib/abstract/add-on.php
    • > /wp-content/plugins/wpsso-wc-shipping-delivery-time/gettext/gettext-lib-abstract-com.php
    • > /wp-content/plugins/wpsso-wc-shipping-delivery-time/lib/woocommerce.php
    • > /wp-content/plugins/wpsso-wc-shipping-delivery-time/lib/config.php
    • > /wp-content/plugins/wpsso-wc-shipping-delivery-time/lib/submenu/wcsdt-general.php
    • > /wp-content/plugins/wpsso-wc-shipping-delivery-time/lib/woocommerce-admin.php
    • > /wp-content/plugins/wpsso-wc-shipping-delivery-time/lib/abstract/com/add-on.php
    • > /wp-content/plugins/wpsso-wc-shipping-delivery-time/wpsso-wc-shipping-delivery-time.php
    • > /wp-content/plugins/wpsso-wc-shipping-delivery-time/lib/filters.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: schemaorg, shippingdeliverytime, shippingdetails, deliverytime, delivery...

wpsso-wc-shipping-delivery-time/wpsso-wc-shipping-delivery-time.php Passed 13 tests

The main file in "WPSSO Shipping Delivery Time for WooCommerce SEO" v. 3.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
86 characters long description:
Shipping delivery time estimates for WooCommerce shipping zones, methods, and classes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,325 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP125502651,105
PO File15862150
Markdown117040
HTML232030

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity15.50
▷ Minimum class complexity2.00
▷ Maximum class complexity53.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes220.00%
▷ Concrete classes880.00%
▷ Final classes00.00%
Methods59
▷ Static methods813.56%
▷ Public methods4169.49%
▷ Protected methods46.78%
▷ Private methods1423.73%
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.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-256x256.png45.79KB15.95KB▼ 65.17%
images/icon-128x128.png18.67KB6.85KB▼ 63.32%