89% cryptocurrencycheckout-woocommerce-gateway

Code Review | CryptocurrencyCheckout Woocommerce Gateway

WordPress plugin CryptocurrencyCheckout Woocommerce Gateway scored89%from 54 tests.

About plugin

  • Plugin page: cryptocurrencyche...
  • Plugin version: 2.0.19
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Jun 28, 2019
  • Latest release: Nov 5, 2023
  • Number of updates: 58
  • Update frequency: every 27.4 days
  • Top authors: cryptocurrencycheckout (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active /13,725 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by CryptocurrencyCheckout Woocommerce Gateway
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.98 ▲1.24
Dashboard /wp-admin3.31 ▲0.0049.13 ▼1.04
Posts /wp-admin/edit.php3.36 ▲0.0047.72 ▼2.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.73 ▼7.66
Media Library /wp-admin/upload.php3.23 ▲0.0030.37 ▼3.21

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for CryptocurrencyCheckout Woocommerce Gateway
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.23 ▼0.111.85 ▼0.0544.34 ▲0.15
Dashboard /wp-admin2,198 ▲185.57 ▼0.1085.11 ▼11.2440.10 ▼8.13
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0136.78 ▼0.3331.98 ▼1.73
Add New Post /wp-admin/post-new.php1,527 ▲123.40 ▲0.34679.16 ▲24.5251.84 ▼4.93
Media Library /wp-admin/upload.php1,400 ▲34.21 ▼0.01100.75 ▼0.5143.98 ▲0.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% 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
Attributes that require attention:
  • Tags: You are using too many tags: 18 tag instead of maximum 10
The official readme.txt might help

cryptocurrencycheckout-woocommerce-gateway/cryptocurrencycheckout-woocommerce-gateway.php 77% from 13 tests

The main PHP script in "CryptocurrencyCheckout Woocommerce Gateway" version 2.0.19 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/i18n/languages/")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 188 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,063 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1161871,063

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.03
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin