84% wc-pickup-store

Code Review | WC Pickup Store

WordPress plugin WC Pickup Store scored84%from 54 tests.

About plugin

  • Plugin page: wc-pickup-store
  • Plugin version: 1.8.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 26, 2018
  • Latest release: Nov 27, 2023
  • Number of updates: 46
  • Update frequency: every 42.5 days
  • Top authors: keylorcr (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

3,000+ active /43,310 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.60ms] Passed 4 tests

A check of server-side resources used by WC Pickup Store
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.76 ▼3.24
Dashboard /wp-admin3.31 ▲0.0048.08 ▼1.76
Posts /wp-admin/edit.php3.36 ▲0.0049.67 ▼1.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.68 ▼0.41
Media Library /wp-admin/upload.php3.23 ▲0.0034.24 ▲1.14

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

WC Pickup Store: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4014.20 ▼0.501.77 ▲0.0337.02 ▼5.66
Dashboard /wp-admin2,207 ▲335.62 ▼0.0298.47 ▼2.4044.00 ▼0.55
Posts /wp-admin/edit.php2,113 ▲131.97 ▼0.0440.17 ▼4.5536.46 ▼1.10
Add New Post /wp-admin/post-new.php1,538 ▲423.24 ▲0.20639.84 ▼12.9848.06 ▼2.64
Media Library /wp-admin/upload.php1,415 ▲214.20 ▲0.0495.77 ▼3.8641.04 ▲0.05

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 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wc-pickup-store/templates/archive-store.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-pickup-store/includes/admin/wps-admin.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-pickup-store/includes/class-wps-init.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wc-pickup-store/templates/selected-store-details.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wc-pickup-store/includes/cpt-store.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wc-pickup-store/templates/single-store.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-pickup-store/includes/integrations/class-widget-stores.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-pickup-store/templates/wrapper-store.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wc-pickup-store/templates/wrapper-vc_stores.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wc-pickup-store/includes/admin/wps-settings.php:4

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

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: store post type, ecommerce, e-commerce, local shipping, store...

wc-pickup-store/wc-pickup-store.php 92% from 13 tests

"WC Pickup Store" version 1.8.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 249 characters long)

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
There were no executable files found in this plugin3,100 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP142554051,808
PO File3391556954
CSS2324174
SVG111116
JavaScript2111348

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity27.33
▷ Minimum class complexity16.00
▷ Maximum class complexity38.00
Average method complexity5.16
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1894.74%
▷ Protected methods00.00%
▷ Private methods15.26%
Functions51
▷ Named functions5098.04%
▷ Anonymous functions11.96%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/wps_placeholder.png4.33KB1.71KB▼ 60.63%