89% estonian-shipping-methods-for-woocommerce

Code Review | Estonian Shipping Methods for WooCommerce

WordPress plugin Estonian Shipping Methods for WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: estonian-shipping...
  • Plugin version: 1.7.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 26, 2016
  • Latest release: Mar 24, 2023
  • Number of updates: 43
  • Update frequency: every 53.7 days
  • Top authors: RistoNiinemets (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active / 19,779 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.03MB] [CPU: ▼1.97ms] Passed 4 tests

An overview of server-side resources used by Estonian Shipping Methods for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.09 ▼6.20
Dashboard /wp-admin3.34 ▲0.0344.80 ▼2.04
Posts /wp-admin/edit.php3.39 ▲0.0349.47 ▲0.81
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.56 ▼0.44
Media Library /wp-admin/upload.php3.26 ▲0.0336.60 ▲2.92

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Estonian Shipping Methods for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.211.75 ▼0.5738.27 ▼11.29
Dashboard /wp-admin2,209 ▲185.85 ▼0.04111.70 ▲5.0042.01 ▲0.61
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0539.55 ▲0.2035.56 ▼0.93
Add New Post /wp-admin/post-new.php1,537 ▼523.35 ▲5.01664.87 ▲6.2362.90 ▲3.88
Media Library /wp-admin/upload.php1,385 ▼34.21 ▲0.05101.25 ▼6.3140.86 ▼1.80

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: courier, shipping method, omniva, estonia, dpd...

estonian-shipping-methods-for-woocommerce/estonian-shipping-methods-for-woocommerce.php 85% from 13 tests

This is the main PHP file of "Estonian Shipping Methods for WooCommerce" version 1.7.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Requires at least: The required version number must match the one declared in readme.txt ("4.1" instead of "3.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,189 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP264171,1861,583
PO File4232297606

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity10.63
▷ Minimum class complexity1.00
▷ Maximum class complexity59.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes526.32%
▷ Concrete classes1473.68%
▷ Final classes00.00%
Methods101
▷ Static methods10.99%
▷ Public methods9998.02%
▷ Protected methods00.00%
▷ Private methods21.98%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected