10% stabilityshares-payments-for-woocommerce

Code Review | StabilityShares Payments for WooCommerce

WordPress plugin StabilityShares Payments for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: stabilityshares-p...
  • Plugin version: 3.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Aug 7, 2014
  • Latest release: Aug 8, 2014
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: bminer777 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /669 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/stabilityshares-payments-for-woocommerce/bwwc-xsi-utils.php+868
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.41MB] [CPU: ▼51.38ms] Passed 4 tests

This is a short check of server-side resources used by StabilityShares Payments for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.58 ▼0.898.15 ▼32.44
Dashboard /wp-admin2.60 ▼0.719.35 ▼40.18
Posts /wp-admin/edit.php2.60 ▼0.768.03 ▼40.83
Add New Post /wp-admin/post-new.php2.60 ▼3.299.17 ▼92.08
Media Library /wp-admin/upload.php2.60 ▼0.638.05 ▼27.09

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 33 new files
Database: 1 new table, 7 new options
New tables
wp_bwwc_xsi_addresses
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
BWWC-XSI-Settings
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by StabilityShares Payments for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.35 ▼0.002.32 ▲0.6045.62 ▼1.92
Dashboard /wp-admin2,195 ▲185.54 ▼0.0885.19 ▼6.1079.83 ▲33.75
Posts /wp-admin/edit.php2,115 ▲152.01 ▲0.0534.81 ▼5.6536.05 ▼1.62
Add New Post /wp-admin/post-new.php1,539 ▲1323.79 ▲0.24752.34 ▲47.8155.29 ▲1.92
Media Library /wp-admin/upload.php1,412 ▲124.11 ▼0.0696.59 ▼10.0268.22 ▲19.91

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/stabilityshares-payments-for-woocommerce/bwwc-xsi-utils.php+868
    Array and string offset access syntax with curly braces is deprecated
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_bwwc_xsi_addresses
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • BWWC-XSI-Settings

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stabilityshares-payments-for-woocommerce/bwwc-xsi-stabilityshares-gateway.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stabilityshares-payments-for-woocommerce/bwwc-xsi-stabilityshares-gateway.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stabilityshares-payments-for-woocommerce/bwwc-xsi-stabilityshares-gateway.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'PublicKeyInterface' not found in wp-content/plugins/stabilityshares-payments-for-woocommerce/phpecc/classes/PublicKey.php:27
    • > PHP Fatal error
      Uncaught Error: Interface 'SignatureInterface' not found in wp-content/plugins/stabilityshares-payments-for-woocommerce/phpecc/classes/Signature.php:30
    • > PHP Fatal error
      Uncaught Error: Interface 'PrivateKeyInterface' not found in wp-content/plugins/stabilityshares-payments-for-woocommerce/phpecc/classes/PrivateKey.php:27
    • > PHP Fatal error
      Uncaught Error: Interface 'EcDHInterface' not found in wp-content/plugins/stabilityshares-payments-for-woocommerce/phpecc/classes/EcDH.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stabilityshares-payments-for-woocommerce/bwwc-xsi-stabilityshares-gateway.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stabilityshares-payments-for-woocommerce/bwwc-xsi-stabilityshares-gateway.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stabilityshares-payments-for-woocommerce/bwwc-xsi-stabilityshares-gateway.php:9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: accept stabilityshares, stabilityshares, stabilityshares wordpress plugin, stabilityshares payments, bitcoins...

stabilityshares-payments-for-woocommerce/bitcoinway-xsi-woocommerce.php 85% from 13 tests

The entry point to "StabilityShares Payments for WooCommerce" version 3.10 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 172 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("stabilityshares-payments-for-woocommerce.php" instead of "bitcoinway-xsi-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,436 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP251,3061,3044,436

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity40.28
▷ Minimum class complexity1.00
▷ Maximum class complexity233.00
Average method complexity6.48
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces6
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods169
▷ Static methods10059.17%
▷ Public methods169100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions47
▷ Named functions47100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
6 PNG files occupy 0.22MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png16.07KB6.85KB▼ 57.37%
assets/screenshot-3.png191.12KB66.56KB▼ 65.17%
images/icon.png0.68KB0.83KB0.00%
assets/screenshot-2.png14.59KB7.79KB▼ 46.59%
images/stabilityshares_16x.png1.74KB0.90KB▼ 48.15%