84% get-payed-crypto

Code Review | Crypto Checkout for Woocommerce

WordPress plugin Crypto Checkout for Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: get-payed-crypto
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Jun 2, 2023
  • Latest release: Oct 15, 2023
  • Number of updates: 59
  • Update frequency: every 2.3 days
  • Top authors: heroo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /488 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼10.83ms] Passed 4 tests

Analyzing server-side resources used by Crypto Checkout for Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.95 ▲1.05
Dashboard /wp-admin3.39 ▲0.0447.46 ▼10.95
Posts /wp-admin/edit.php3.44 ▲0.0845.52 ▼2.19
Add New Post /wp-admin/post-new.php5.97 ▲0.0880.26 ▼27.45
Media Library /wp-admin/upload.php3.31 ▲0.0834.69 ▼2.72

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Crypto Checkout for Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.10 ▼0.252.00 ▲0.2343.02 ▲2.84
Dashboard /wp-admin2,195 ▲265.52 ▼0.0983.03 ▼13.0237.60 ▼7.90
Posts /wp-admin/edit.php2,100 ▲32.03 ▲0.0434.78 ▼3.3232.56 ▼5.32
Add New Post /wp-admin/post-new.php1,526 ▼1123.16 ▲4.67644.65 ▼3.8752.71 ▼8.81
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.0295.14 ▼2.8746.14 ▲2.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/get-payed-crypto/cryptocheckout.php:15

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 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: woocommerce, payment, e-commerce, ecommerce, payments...

get-payed-crypto/cryptocheckout.php 92% from 13 tests

Analyzing the main PHP file in "Crypto Checkout for Woocommerce" version 1.0.5
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("get-payed-crypto.php" instead of "cryptocheckout.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
There were no executable files found in this plugin506 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14342506

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity64.00
▷ Minimum class complexity64.00
▷ Maximum class complexity64.00
Average method complexity8.00
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin