93% woocommerce-websky

Code Review | WooCommerce Websky

WordPress plugin WooCommerce Websky scored 93% from 54 tests.

About plugin

  • Plugin page: woocommerce-websky
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3
  • WordPress version: 5.8.1
  • First release: May 30, 2014
  • Latest release: Oct 3, 2015
  • Number of updates: 14
  • Update frequency: every 35.3 days
  • Top authors: Domanjiri (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 886 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.15MB] [CPU: ▼135.39ms] Passed 4 tests

An overview of server-side resources used by WooCommerce Websky
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.99 ▲0.1638.80 ▲2.81
Dashboard /wp-admin3.21 ▲0.1653.57 ▲4.38
Posts /wp-admin/edit.php3.33 ▲0.2250.01 ▲1.07
Add New Post /wp-admin/post-new.php5.58 ▲0.15100.70 ▼542.69
Media Library /wp-admin/upload.php3.16 ▲0.1541.42 ▼2.73

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Websky
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.85 ▲0.199.45 ▼1.6049.76 ▼2.24
Dashboard /wp-admin2,970 ▲365.88 ▼0.18154.79 ▼7.92118.28 ▲7.48
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0074.94 ▲6.9492.54 ▲0.29
Add New Post /wp-admin/post-new.php1,683 ▼018.65 ▲0.22443.18 ▲54.60119.43 ▼0.46
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.03163.79 ▼3.51121.90 ▼10.56

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-websky/lib/nusoap/class.soap_val.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-websky/lib/nusoap/class.soap_transport_http.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-websky/lib/nusoap/class.xmlschema.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-websky/lib/nusoap/class.soapclient.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-websky/lib/nusoap/class.soap_parser.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-websky/lib/nusoap/class.soap_fault.php:14
    • > PHP Fatal error
      require_once(): Failed opening required 'Mail/mimeDecode.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-websky/lib/nusoap/nusoapmime.php on line 42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/woocommerce-websky/websky.php:25
    • > PHP Warning
      require_once(Mail/mimeDecode.php): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-websky/lib/nusoap/nusoapmime.php on line 42
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woocommerce-websky/lib/nusoap/class.wsdl.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
Please take inspiration from this readme.txt

woocommerce-websky/websky.php 85% from 13 tests

"WooCommerce Websky" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-websky.php" instead of "websky.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected13,364 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP171,2505,16812,225
JavaScript22191,105
PO File12521
CSS10213

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity74.24
▷ Minimum class complexity1.00
▷ Maximum class complexity388.00
Average method complexity8.58
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes38
▷ Abstract classes00.00%
▷ Concrete classes38100.00%
▷ Final classes00.00%
Methods367
▷ Static methods00.00%
▷ Public methods36699.73%
▷ Protected methods00.00%
▷ Private methods10.27%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin