84% wc-pickupp

Code Review | WooCommerce Pickupp

WordPress plugin WooCommerce Pickupp scored84%from 54 tests.

About plugin

  • Plugin page: wc-pickupp
  • Plugin version: 2.4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 22, 2018
  • Latest release: May 31, 2023
  • Number of updates: 83
  • Update frequency: every 21.0 days
  • Top authors: pickupp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /3,128 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.63ms] Passed 4 tests

Server-side resources used by WooCommerce Pickupp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.47 ▲1.30
Dashboard /wp-admin3.32 ▲0.0245.25 ▼7.31
Posts /wp-admin/edit.php3.37 ▲0.0147.55 ▲0.57
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.86 ▼13.09
Media Library /wp-admin/upload.php3.25 ▲0.0135.90 ▲2.11

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
pickupp_region
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Pickupp
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.38 ▼0.981.79 ▲0.0944.63 ▼4.61
Dashboard /wp-admin2,210 ▲255.85 ▼0.11101.72 ▼6.3439.98 ▼5.64
Posts /wp-admin/edit.php2,092 ▲42.04 ▲0.0536.28 ▼8.3835.98 ▲1.47
Add New Post /wp-admin/post-new.php1,542 ▲923.01 ▼0.04657.79 ▼56.7953.78 ▼3.66
Media Library /wp-admin/upload.php1,386 ▼54.22 ▲0.0099.33 ▼7.2741.26 ▲0.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • pickupp_region
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-pickupp/includes/wc-pickupp-frontend.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Pickupp_Api' not found in wp-content/plugins/wc-pickupp/includes/wc-pickupp-admin-setting.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: last mile delivery, courier, shipping, same day delivery, logistic

wc-pickupp/wc-pickupp.php 85% from 13 tests

This is the main PHP file of "WooCommerce Pickupp" version 2.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "4.6.0")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected906 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP30145140828
JavaScript16368
CSS1108
Markdown1102

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.83
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods40
▷ Static methods1127.50%
▷ Public methods3997.50%
▷ Protected methods00.00%
▷ Private methods12.50%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants90
▷ Global constants8392.22%
▷ Class constants77.78%
▷ Public constants7100.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