93% woo-globkurier-shipping-method

Code Review | Globkurier Shipping method for WooCommerce

WordPress plugin Globkurier Shipping method for WooCommerce scored 93% from 54 tests.

About plugin

  • Plugin page: woo-globkurier-sh...
  • Plugin version: 2.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.8.1
  • WordPress version: 5.8.1
  • First release: Jul 7, 2016
  • Latest release: Sep 9, 2017
  • Number of updates: 57
  • Update frequency: every 7.6 days
  • Top authors: studiocube (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 693 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Globkurier Shipping method for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0034.32 ▼0.33
Dashboard /wp-admin3.06 ▲0.0149.91 ▼3.56
Posts /wp-admin/edit.php3.11 ▲0.0049.14 ▲1.28
Add New Post /wp-admin/post-new.php5.42 ▼0.0290.18 ▼558.73
Media Library /wp-admin/upload.php3.00 ▲0.0035.07 ▼0.61

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Globkurier Shipping method for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,696 ▲10015.99 ▼0.0010.69 ▼0.9746.24 ▼6.10
Dashboard /wp-admin2,987 ▲535.97 ▼0.04146.51 ▼11.61107.95 ▼2.54
Posts /wp-admin/edit.php2,757 ▲182.72 ▲0.0065.89 ▼3.5090.07 ▲1.34
Add New Post /wp-admin/post-new.php1,696 ▲2418.82 ▼0.01416.04 ▲29.73103.95 ▼3.09
Media Library /wp-admin/upload.php1,825 ▲185.04 ▲0.06156.16 ▼6.66123.05 ▼20.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/woo-globkurier-shipping-method/wc-gk-shipping.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: A description for screenshot #4 is required in woo-globkurier-shipping-method/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt might help

woo-globkurier-shipping-method/wc-gk-shipping.php 69% from 13 tests

The main PHP script in "Globkurier Shipping method for WooCommerce" version 2.3.4 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-globkurier-shipping-method.php" instead of "wc-gk-shipping.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Requires at least: The required version number must match the one declared in readme.txt ("4.1" instead of "2.6")

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
No dangerous file extensions were detected8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19268

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin