73% pickup-and-delivery-from-customer-locations-for-woocommerce

Code Review | Pickup & Delivery from Customer Locations for WooCommerce

WordPress plugin Pickup & Delivery from Customer Locations for WooCommerce scored73%from 54 tests.

About plugin

  • Plugin page: pickup-and-delive...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Jan 14, 2022
  • Latest release: Sep 16, 2023
  • Number of updates: 10
  • Update frequency: every 61.2 days
  • Top authors: powerfulwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,099 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲5.05MB] [CPU: ▲18.20ms] 75% from 4 tests

An overview of server-side resources used by Pickup & Delivery from Customer Locations for WooCommerce
Please fix the following
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.05MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.88 ▲5.4251.40 ▲8.77
Dashboard /wp-admin8.90 ▲5.6076.72 ▲29.16
Posts /wp-admin/edit.php8.90 ▲5.5581.96 ▲35.51
Add New Post /wp-admin/post-new.php9.52 ▲3.63103.38 ▼0.63
Media Library /wp-admin/upload.php8.90 ▲5.6775.54 ▲38.46
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius8.9059.60

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 190 new files
Database: no new tables, 12 new options
New WordPress options
db_upgraded
fs_debug_mode
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
fs_accounts
widget_recent-comments
pdfclw_pickup_enable
fs_active_plugins
pdfclw_pickup_mandatory
...

Browser metrics Passed 4 tests

An overview of browser requirements for Pickup & Delivery from Customer Locations for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,502 ▼24414.44 ▲0.170.42 ▼1.587.63 ▼34.84
Dashboard /wp-admin2,246 ▲585.85 ▲0.88113.66 ▼4.0646.94 ▲1.36
Posts /wp-admin/edit.php2,129 ▲402.08 ▲0.0741.82 ▼1.1835.91 ▼0.67
Add New Post /wp-admin/post-new.php1,689 ▲15622.42 ▼1.00669.50 ▲46.4760.82 ▲13.83
Media Library /wp-admin/upload.php1,422 ▲314.21 ▼0.0095.79 ▼7.4648.40 ▲3.52
Freemius Debug [v.2.5.0.1] /wp-admin/admin.php?page=freemius1,0851.7332.1628.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/pickup-and-delivery-from-customer-locations-for-woocommerce/freemius/includes/class-freemius.php+8911
    Undefined property: stdClass::$plugins
  • The uninstall procedure has failed, leaving 12 options in the database
    • widget_recent-comments
    • pdfclw_pickup_enable
    • fs_gdpr
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • fs_accounts
    • pdfclw_pickup_mandatory
    • can_compress_scripts
    • fs_active_plugins
    • widget_recent-posts
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/pickup-and-delivery-from-customer-locations-for-woocommerce/admin/partials/pdfclw-admin-display.php
    • > /wp-content/plugins/pickup-and-delivery-from-customer-locations-for-woocommerce/public/partials/pdfclw-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

pickup-and-delivery-from-customer-locations-for-woocommerce/pickup-and-delivery-from-customer-locations-for-woocommerce.php 92% from 13 tests

This is the main PHP file of "Pickup & Delivery from Customer Locations for WooCommerce" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis 97% from 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 detected34,259 lines of code in 143 files:
LanguageFilesBlank linesComment linesLines of code
PHP1237,91617,67433,646
JavaScript6116107481
CSS14198132

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,029)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity83.44
▷ Minimum class complexity1.00
▷ Maximum class complexity3,029.00
Average method complexity4.62
▷ Minimum method complexity1.00
▷ Maximum method complexity89.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes54
▷ Abstract classes23.70%
▷ Concrete classes5296.30%
▷ Final classes00.00%
Methods1,262
▷ Static methods18314.50%
▷ Public methods89871.16%
▷ Protected methods151.19%
▷ Private methods34927.65%
Functions103
▷ Named functions103100.00%
▷ Anonymous functions00.00%
Constants133
▷ Global constants10175.94%
▷ Class constants3224.06%
▷ Public constants32100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%