78% integration-shops-united-woocommerce

Code Review | Integration for Shops United with WooCommerce

WordPress plugin Integration for Shops United with WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: integration-shops...
  • Plugin version: 1.5.41
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Dec 14, 2022
  • Latest release: Jul 25, 2023
  • Number of updates: 7
  • Update frequency: every 32.7 days
  • Top authors: teamwsa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /621 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.22MB] [CPU: ▼8.14ms] Passed 4 tests

A check of server-side resources used by Integration for Shops United with WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2340.36 ▼3.81
Dashboard /wp-admin3.53 ▲0.1850.68 ▼12.41
Posts /wp-admin/edit.php3.64 ▲0.2949.55 ▼6.28
Add New Post /wp-admin/post-new.php6.13 ▲0.2493.66 ▼10.06
Media Library /wp-admin/upload.php3.45 ▲0.2235.88 ▼1.56

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Integration for Shops United with WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲14013.94 ▼0.399.14 ▲7.3341.81 ▼1.87
Dashboard /wp-admin2,206 ▲265.74 ▲0.0887.99 ▼6.2738.88 ▼1.77
Posts /wp-admin/edit.php2,125 ▲252.48 ▲0.4841.33 ▲1.0734.19 ▼1.78
Add New Post /wp-admin/post-new.php1,542 ▲723.39 ▲5.14637.59 ▲3.5234.46 ▼26.64
Media Library /wp-admin/upload.php1,425 ▲224.40 ▲0.16101.41 ▼4.2645.83 ▼2.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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 everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/integration-shops-united-woocommerce/integration-shops-united-woocommerce.php
  • 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/integration-shops-united-woocommerce/admin/partials/parcelpro-admin-actions-package.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/integration-shops-united-woocommerce/admin/partials/parcelpro-requirements-error.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/integration-shops-united-woocommerce/admin/partials/parcelpro-admin-actions-after.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/integration-shops-united-woocommerce/admin/data/parcelpro-shipping-settings-fields.php:16
    • > PHP Warning
      Use of undefined constant ISUW_PLUGIN_NAME - assumed 'ISUW_PLUGIN_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/integration-shops-united-woocommerce/admin/partials/parcelpro-requirements-error.php on line 15
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/integration-shops-united-woocommerce/admin/partials/parcelpro-admin-actions-package.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/integration-shops-united-woocommerce/admin/class-parcelpro-shipping.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/integration-shops-united-woocommerce/admin/partials/parcelpro-admin-order-actions-before.php:14
    • > PHP Warning
      require_once(ABSPATHwp-admin/admin.php): failed to open stream: No such file or directory in wp-content/plugins/integration-shops-united-woocommerce/admin/partials/parcelpro-admin-actions-package.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/integration-shops-united-woocommerce/admin/partials/parcelpro-admin-actions-bulk.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Contributors: Plugin contributors field is missing
You can look at the official readme.txt

integration-shops-united-woocommerce/integration-shops-united-woocommerce.php 92% from 13 tests

The main PHP script in "Integration for Shops United with WooCommerce" version 1.5.41 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,564 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP202748001,511
PO File1138171375
JavaScript2515251
CSS2310195
Markdown11100192
SVG40440

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity34.83
▷ Minimum class complexity1.00
▷ Maximum class complexity102.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods62
▷ Static methods00.00%
▷ Public methods5690.32%
▷ Protected methods00.00%
▷ Private methods69.68%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin