10% getshop-ecommerce

Code Review | GetShop ecommerce

WordPress plugin GetShop ecommerce scored 10% from 54 tests.

About plugin

  • Plugin page: getshop-ecommerce
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.1.1
  • WordPress version: 5.8.1
  • First release: Aug 1, 2013
  • Latest release: Mar 25, 2015
  • Number of updates: 22
  • Update frequency: every 27.4 days
  • Top authors: boggibill (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,890 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > User notice in wp-includes/functions.php+5663
    wp_deregister_script was called incorrectly. Do not deregister the jquery script in the administration area. To target the front-end theme, use the wp_enqueue_scripts hook. Please see Debugging in WordPress for more information. (This message was added in version 3.6.0.)

Server metrics [RAM: ▼1.89MB] [CPU: ▼200.42ms] Passed 4 tests

Analyzing server-side resources used by GetShop ecommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.74 ▼1.094.64 ▼30.65
Dashboard /wp-admin1.76 ▼1.295.22 ▼66.84
Posts /wp-admin/edit.php1.76 ▼1.345.65 ▼35.34
Add New Post /wp-admin/post-new.php1.76 ▼3.675.07 ▼668.84
Media Library /wp-admin/upload.php1.76 ▼1.246.52 ▼29.16

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 412 new files
Database: no new tables, 3 new options
New WordPress options
checkout_page_id
product_page_id
cart_page_id

Browser metrics Passed 4 tests

This is an overview of browser requirements for GetShop ecommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,008 ▲41216.40 ▲1.1621.60 ▲12.71103.61 ▲56.75
Dashboard /wp-admin3,047 ▲1136.19 ▲0.23163.05 ▲10.75126.65 ▲2.20
Posts /wp-admin/edit.php2,811 ▲722.76 ▲0.0677.10 ▲4.40246.07 ▲146.62
Add New Post /wp-admin/post-new.php1,689 ▲622.13 ▲3.39280.27 ▼121.90123.00 ▲14.01
Media Library /wp-admin/upload.php1,891 ▲845.15 ▲0.13203.32 ▲40.24119.25 ▼7.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5663
    wp_deregister_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Please fix the following
  • 8× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/getshop-ecommerce/getshopadminpage.php
    • > /wp-content/plugins/getshop-ecommerce/getshopadminpage_products.php
    • > /wp-content/plugins/getshop-ecommerce/getshopadminpage_createproduct.php
    • > /wp-content/plugins/getshop-ecommerce/checkout.php
    • > /wp-content/plugins/getshop-ecommerce/getshopadminpage_editproduct.php
    • > /wp-content/plugins/getshop-ecommerce/getshopadminpage_about.php
    • > /wp-content/plugins/getshop-ecommerce/getshopadminpage_orders.php
    • > /wp-content/plugins/getshop-ecommerce/getshopadminpage_settings.php
  • 208× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'core_common_DataCommon' not found in wp-content/plugins/getshop-ecommerce/events/app/leftMenu/data/ListEntry.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'core_common_DataCommon' not found in wp-content/plugins/getshop-ecommerce/events/core/productmanager/data/ProductConfiguration.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'core_common_DataCommon' not found in wp-content/plugins/getshop-ecommerce/events/app/logomanager/data/SavedLogo.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'core_common_MessageBase' not found in wp-content/plugins/getshop-ecommerce/events/core/pagemanager/events/AddApplicationToPageArea.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'core_common_AnswerMessage' not found in wp-content/plugins/getshop-ecommerce/events/core/databasemanager/answer/DataRetreived.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'core_common_AnswerMessage' not found in wp-content/plugins/getshop-ecommerce/events/core/pagemanager/answer/PageFound.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'core_common_AnswerMessage' not found in wp-content/plugins/getshop-ecommerce/events/core/storemanager/answer/CreateShopAnswer.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'core_common_MessageBase' not found in wp-content/plugins/getshop-ecommerce/events/core/ordermanager/events/UpdateOrder.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'core_common_AnswerMessage' not found in wp-content/plugins/getshop-ecommerce/events/core/usermanager/answer/UsersFound.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'core_common_DataCommon' not found in wp-content/plugins/getshop-ecommerce/events/core/calendarmanager/data/EventPartitipated.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
These attributes need to be fixed:
  • Tags: No tags were detected
You can look at the official readme.txt

getshop-ecommerce/wpGetShop.php 92% from 13 tests

"GetShop ecommerce" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("getshop-ecommerce.php" instead of "wpGetShop.php")

Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin15,253 lines of code in 376 files:
LanguageFilesBlank linesComment linesLines of code
PHP3232,2273,9037,441
JavaScript223888185,199
HTML9252581,227
CSS116773588
Go11910267
JSON400231
Markdown3580138
Python11914137
YAML23025

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.02
Average class complexity1.09
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity1.06
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes344
▷ Abstract classes00.00%
▷ Concrete classes344100.00%
▷ Final classes00.00%
Methods575
▷ Static methods12321.39%
▷ Public methods57399.65%
▷ Protected methods00.00%
▷ Private methods20.35%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
7 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
arrow_up.png0.25KB0.29KB0.00%
lightbox/img/close.png0.27KB0.29KB0.00%
lightbox/img/next.png1.32KB1.58KB0.00%
lightbox/img/prev.png1.33KB1.59KB0.00%
arrow_down.png0.26KB0.29KB0.00%