68% shipsy-ecommerce

Code Review | Shipsy Ecommerce Plugin

WordPress plugin Shipsy Ecommerce Plugin scored68%from 54 tests.

About plugin

  • Plugin page: shipsy-ecommerce
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 23, 2022
  • Latest release: Jun 23, 2022
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: shipsyplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /248 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Shipsy Ecommerce Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.67 ▼5.38
Dashboard /wp-admin3.31 ▼0.0447.52 ▼13.30
Posts /wp-admin/edit.php3.36 ▲0.0048.23 ▲1.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.82 ▼20.96
Media Library /wp-admin/upload.php3.23 ▲0.0032.93 ▼3.55

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Shipsy Ecommerce Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.27 ▼1.105.10 ▲3.2643.42 ▲1.40
Dashboard /wp-admin2,203 ▲244.84 ▼1.06103.59 ▼15.7242.97 ▼4.96
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0633.57 ▼0.4536.59 ▲0.40
Add New Post /wp-admin/post-new.php1,514 ▼517.78 ▼5.44650.29 ▼35.7458.41 ▲4.99
Media Library /wp-admin/upload.php1,385 ▼34.27 ▲0.0996.14 ▼4.8841.43 ▼3.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_sync_track_order
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/shipsy-ecommerce/admin/partials/shipsy-econnect-admin-display.php
    • > /wp-content/plugins/shipsy-ecommerce/public/partials/shipsy-econnect-public-display.php
  • 69× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(SHIPSY_ECONNECT_PATHadmin/crons/decorators/class-logger-job-decorator.php): failed to open stream: No such file or directory in wp-content/plugins/shipsy-ecommerce/admin/crons/shipsy-cron-handler.php on line 18
    • > PHP Warning
      require_once(SHIPSY_ECONNECT_PATHadmin/helper/helper.php): failed to open stream: No such file or directory in wp-content/plugins/shipsy-ecommerce/admin/partials/shipsy-setup.php on line 14
    • > PHP Fatal error
      require_once(): Failed opening required 'SHIPSY_ECONNECT_PATHadmin/helper/helper.php' (include_path='.:/usr/share/php') in wp-content/plugins/shipsy-ecommerce/admin/partials/shipsy-sync-form.php on line 14
    • > PHP Warning
      require_once(SHIPSY_ECONNECT_PATHadmin/helper/helper.php): failed to open stream: No such file or directory in wp-content/plugins/shipsy-ecommerce/admin/apis/shipsy-shipping-label-download-api.php on line 14
    • > PHP Warning
      Use of undefined constant SHIPSY_ECONNECT_PATH - assumed 'SHIPSY_ECONNECT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shipsy-ecommerce/admin/apis/shipsy-shipping-address-helper-api.php on line 14
    • > PHP Warning
      Use of undefined constant SHIPSY_ECONNECT_PATH - assumed 'SHIPSY_ECONNECT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shipsy-ecommerce/admin/partials/shipsy-config.php on line 14
    • > PHP Warning
      require_once(SHIPSY_ECONNECT_PATHadmin/crons/jobs/interface-job.php): failed to open stream: No such file or directory in wp-content/plugins/shipsy-ecommerce/admin/crons/jobs/class-shipsy-auto-sync-consignment-job.php on line 17
    • > PHP Fatal error
      require_once(): Failed opening required 'SHIPSY_ECONNECT_PATHutils/request/request/class-request.php' (include_path='.:/usr/share/php') in wp-content/plugins/shipsy-ecommerce/utils/request/shipsy-request-handler.php on line 15
    • > PHP Fatal error
      require(): Failed opening required 'SHIPSY_ECONNECT_PATHconfig/settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/shipsy-ecommerce/admin/apis/shipsy-endpoint-helper-api.php on line 14
    • > PHP Warning
      Use of undefined constant SHIPSY_ECONNECT_PATH - assumed 'SHIPSY_ECONNECT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shipsy-ecommerce/admin/partials/shipsy-sync-result.php on line 14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: ecommerce, shipsy

shipsy-ecommerce/shipsy-econnect.php 85% from 13 tests

The main file in "Shipsy Ecommerce Plugin" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("shipsy-ecommerce.php" instead of "shipsy-econnect.php")

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
There were no executable files found in this plugin6,017 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
PHP395621,5913,535
JavaScript73063141,385
CSS81434852
JSON100245

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.59
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces8
Interfaces2
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods82
▷ Static methods00.00%
▷ Public methods7186.59%
▷ Protected methods00.00%
▷ Private methods1113.41%
Functions46
▷ Named functions46100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin