90% shipping-per-neighborhood-for-woocommerce

Code Review | Shipping per Neighborhood for WooCommerce

WordPress plugin Shipping per Neighborhood for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: shipping-per-neig...
  • Plugin version: 1.2.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2
  • WordPress version: 6.3.1
  • First release: Nov 11, 2020
  • Latest release: Apr 20, 2023
  • Number of updates: 15
  • Update frequency: every 59.3 days
  • Top authors: evcode (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

300+ active /3,525 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
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▲1.13ms] Passed 4 tests

This is a short check of server-side resources used by Shipping per Neighborhood for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1437.31 ▲0.97
Dashboard /wp-admin3.45 ▲0.1445.23 ▼0.80
Posts /wp-admin/edit.php3.56 ▲0.2045.72 ▲0.32
Add New Post /wp-admin/post-new.php6.04 ▲0.15104.19 ▲7.79
Media Library /wp-admin/upload.php3.37 ▲0.1435.25 ▲4.04

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Shipping per Neighborhood for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6714.46 ▼0.291.75 ▼0.1056.62 ▲15.91
Dashboard /wp-admin2,219 ▲304.85 ▼1.08105.98 ▼7.7337.77 ▼9.01
Posts /wp-admin/edit.php2,101 ▲122.00 ▼0.0134.23 ▼4.0036.53 ▲0.32
Add New Post /wp-admin/post-new.php1,527 ▲623.58 ▲0.15667.57 ▼47.9959.73 ▼2.67
Media Library /wp-admin/upload.php1,401 ▲134.21 ▲0.0199.93 ▼1.1247.60 ▲1.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: woocommerce, shipping method, shipping neighborhood, shipping

shipping-per-neighborhood-for-woocommerce/shipping-per-neighborhood-for-woocommerce.php Passed 13 tests

The main PHP file in "Shipping per Neighborhood for WooCommerce" ver. 1.2.7 adds more information about the plugin and also serves as the entry point for this plugin
82 characters long description:
Add support to shipping method by neighborhood or custom zones. Easy and flexible.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin750 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7232504717
CSS15020
JavaScript14013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity13.40
▷ Minimum class complexity9.00
▷ Maximum class complexity18.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods40
▷ Static methods512.50%
▷ Public methods3997.50%
▷ Protected methods00.00%
▷ Private methods12.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.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
There are no PNG files in this plugin