84% nodeless-for-woocommerce

Code Review | Nodeless for WooCommerce

WordPress plugin Nodeless for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: nodeless-for-wooc...
  • Plugin version: 1.0.1
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.1
  • WordPress version: 6.3.1
  • First release: Mar 16, 2023
  • Latest release: Mar 19, 2023
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: nodeless (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /409 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.09ms] Passed 4 tests

Server-side resources used by Nodeless for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.17 ▼0.43
Dashboard /wp-admin3.31 ▲0.0042.85 ▼2.83
Posts /wp-admin/edit.php3.36 ▲0.0048.13 ▲1.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.96 ▼0.13
Media Library /wp-admin/upload.php3.23 ▲0.0034.79 ▼0.97

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Nodeless for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.68 ▼0.531.78 ▲0.0943.12 ▲5.11
Dashboard /wp-admin2,209 ▲235.90 ▼0.10105.99 ▼1.8341.59 ▲1.57
Posts /wp-admin/edit.php2,092 ▲32.02 ▼0.0239.20 ▲5.6734.43 ▼2.12
Add New Post /wp-admin/post-new.php1,534 ▲623.29 ▲4.75700.68 ▲67.8651.41 ▼6.33
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.06103.91 ▲4.7143.39 ▼2.27

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 29× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'NodelessIO\\Response\\AbstractResponse' not found in wp-content/plugins/nodeless-for-woocommerce/vendor/nodeless-io/nodeless-php/src/Response/PaywallWebhookResponse.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/nodeless-for-woocommerce/src/Admin/GlobalSettings.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'NodelessIO\\Http\\ResponseInterface' not found in wp-content/plugins/nodeless-for-woocommerce/vendor/nodeless-io/nodeless-php/src/Http/Response.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'NodelessIO\\Response\\AbstractListResponse' not found in wp-content/plugins/nodeless-for-woocommerce/vendor/nodeless-io/nodeless-php/src/Response/PaywallListResponse.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'NodelessIO\\Response\\AbstractResponse' not found in wp-content/plugins/nodeless-for-woocommerce/vendor/nodeless-io/nodeless-php/src/Response/StoreWebhookResponse.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'NodelessIO\\WC\\Gateway\\AbstractGateway' not found in wp-content/plugins/nodeless-for-woocommerce/src/Gateway/DefaultGateway.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'NodelessIO\\Exception\\RequestException' not found in wp-content/plugins/nodeless-for-woocommerce/vendor/nodeless-io/nodeless-php/src/Exception/BadRequestException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'NodelessIO\\Exception\odelessIOException' not found in wp-content/plugins/nodeless-for-woocommerce/vendor/nodeless-io/nodeless-php/src/Exception/RequestException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'NodelessIO\\Response\\AbstractListResponse' not found in wp-content/plugins/nodeless-for-woocommerce/vendor/nodeless-io/nodeless-php/src/Response/StoreInvoiceListResponse.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'NodelessIO\\Client\\AbstractClient' not found in wp-content/plugins/nodeless-for-woocommerce/vendor/nodeless-io/nodeless-php/src/Client/StoreClient.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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: cryptocurrency, bitcoin plugin, payment gateway, accept bitcoin, woocommerce...

nodeless-for-woocommerce/nodeless-for-woocommerce.php 92% from 13 tests

"Nodeless for WooCommerce" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.9" instead of "5.6")

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
There were no executable files found in this plugin2,873 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
PHP505846572,733
JSON10059
JavaScript23246
XML10015
SVG10114
CSS1006

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.29
Average class complexity6.45
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces9
Interfaces2
Traits0
Classes40
▷ Abstract classes37.50%
▷ Concrete classes3792.50%
▷ Final classes00.00%
Methods215
▷ Static methods3415.81%
▷ Public methods19992.56%
▷ Protected methods125.58%
▷ Private methods41.86%
Functions13
▷ Named functions17.69%
▷ Anonymous functions1292.31%
Constants27
▷ Global constants518.52%
▷ Class constants2281.48%
▷ Public constants22100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
.wordpress-org/icon-256x256.png16.46KB6.79KB▼ 58.78%
assets/images/bitcoin-logo.png3.56KB1.90KB▼ 46.73%
.wordpress-org/banner-772x250.png41.09KB13.01KB▼ 68.34%
.wordpress-org/banner-1544x500.png88.74KB30.13KB▼ 66.05%
.wordpress-org/icon-128x128.png6.52KB2.93KB▼ 55.01%