84% update-shipping-order-address-wc-pickup-store

Code Review | Update Shipping Order Address - WC Pickup Store

WordPress plugin Update Shipping Order Address - WC Pickup Store scored84%from 54 tests.

About plugin

  • Plugin page: update-shipping-o...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Jul 12, 2021
  • Latest release: Jul 13, 2021
  • Number of updates: 6
  • Update frequency: every 0.8 days
  • Top authors: tiagohellodev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /309 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.49ms] Passed 4 tests

An overview of server-side resources used by Update Shipping Order Address - WC Pickup Store
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.08 ▲0.27
Dashboard /wp-admin3.32 ▲0.0243.76 ▼2.08
Posts /wp-admin/edit.php3.37 ▲0.0148.23 ▲0.12
Add New Post /wp-admin/post-new.php5.92 ▲0.0493.34 ▼0.27
Media Library /wp-admin/upload.php3.24 ▲0.0134.08 ▲2.15

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: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Update Shipping Order Address - WC Pickup Store
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲17213.58 ▼0.845.23 ▲3.6144.00 ▼0.00
Dashboard /wp-admin2,230 ▲424.88 ▼1.03107.92 ▼4.1943.94 ▲2.99
Posts /wp-admin/edit.php2,116 ▲271.99 ▼0.1141.59 ▲2.3636.94 ▲2.52
Add New Post /wp-admin/post-new.php1,533 ▼917.77 ▼0.29661.46 ▲34.2859.43 ▲8.83
Media Library /wp-admin/upload.php1,415 ▲244.16 ▼0.04100.35 ▲2.0845.11 ▲0.88

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/update-shipping-order-address-wc-pickup-store/admin/partials/update-shipping-order-address-wcps-admin-display.php
    • > /wp-content/plugins/update-shipping-order-address-wc-pickup-store/public/partials/update-shipping-order-address-wcps-public-display.php

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 93% from 29 tests

readme.txt Passed 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
7 plugin tags: woocommerce, store, update shipping, shipping, wc pickup store...

update-shipping-order-address-wc-pickup-store/update-shipping-order-address-wcps.php 85% from 13 tests

The primary PHP file in "Update Shipping Order Address - WC Pickup Store" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("update-shipping-order-address-wc-pickup-store.php" instead of "update-shipping-order-address-wcps.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin269 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12146561263
JavaScript24546
CSS2080

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.29
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin