10% wc-delivery-shipping

Code Review | Українська служба доставки Delivery для WooCommerce - Плагін доставки Українською службою Delivery для WooCommerce

WordPress plugin Українська служба доставки Delivery для WooCommerce - Плагін доставки Українською службою Delivery для WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: wc-delivery-shipping
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 20, 2022
  • Latest release: Oct 20, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: icedesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /154 total downloads

Benchmarks

Plugin footprint 58% 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
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/wc-delivery-shipping/delivery.php+284
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.42ms] Passed 4 tests

This is a short check of server-side resources used by Українська служба доставки Delivery для WooCommerce - Плагін доставки Українською службою Delivery для WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.49 ▼2.69
Dashboard /wp-admin3.31 ▲0.0051.02 ▼0.95
Posts /wp-admin/edit.php3.36 ▲0.0052.49 ▼3.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.57 ▼3.52
Media Library /wp-admin/upload.php3.23 ▲0.0037.60 ▼3.62

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Українська служба доставки Delivery для WooCommerce - Плагін доставки Українською службою Delivery для WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.001.79 ▼0.0249.69 ▲4.43
Dashboard /wp-admin2,195 ▲185.57 ▲0.0487.58 ▼7.7440.02 ▼1.70
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0733.66 ▼2.1936.75 ▲2.73
Add New Post /wp-admin/post-new.php1,528 ▼322.93 ▼0.06681.71 ▼11.9654.92 ▲3.32
Media Library /wp-admin/upload.php1,394 ▼94.17 ▼0.0199.74 ▼10.6242.01 ▼5.79

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

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)
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/wc-delivery-shipping/delivery.php on line 284

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% 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: The official readme.txt is a good inspiration

wc-delivery-shipping/delivery.php 77% from 13 tests

Analyzing the main PHP file in "Українська служба доставки Delivery для WooCommerce - Плагін доставки Українською службою Delivery для WooCommerce" version 1.0.0
Please make the necessary changes and fix the following:
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 78 characters long)
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-delivery-shipping.php" instead of "delivery.php")

Code Analysis Passed 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
There were no executable files found in this plugin195 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14841195

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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