83% cryptocloud-crypto-payment-gateway

Code Review | CryptoCloud - Crypto Payment Gateway

WordPress plugin CryptoCloud - Crypto Payment Gateway scored83%from 54 tests.

About plugin

  • Plugin page: cryptocloud-crypt...
  • Plugin version: 2.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3.2
  • WordPress version: 6.3.1
  • First release: Dec 6, 2022
  • Latest release: Oct 23, 2023
  • Number of updates: 14
  • Update frequency: every 23.1 days
  • Top authors: cryptocloud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,203 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼13.19ms] Passed 4 tests

Server-side resources used by CryptoCloud - Crypto Payment Gateway
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0232.80 ▼4.06
Dashboard /wp-admin3.32 ▼0.0240.44 ▼17.36
Posts /wp-admin/edit.php3.37 ▲0.0246.06 ▼0.98
Add New Post /wp-admin/post-new.php5.90 ▲0.0274.16 ▼25.42
Media Library /wp-admin/upload.php3.25 ▲0.0232.11 ▼5.91

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for CryptoCloud - Crypto Payment Gateway
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.131.61 ▼0.0635.91 ▼3.39
Dashboard /wp-admin2,198 ▲215.61 ▲0.0896.26 ▲6.4741.13 ▼0.80
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0138.80 ▲3.2934.95 ▼2.00
Add New Post /wp-admin/post-new.php1,526 ▼023.05 ▲0.11664.50 ▼9.5248.34 ▼13.76
Media Library /wp-admin/upload.php1,403 ▲64.21 ▲0.0197.46 ▼6.5541.03 ▼5.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • 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
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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cryptocloud-crypto-payment-gateway/woocryptocloud.php:16

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

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: crypto, crypto payment gateway, payment gateway, bitcoin, donation...

cryptocloud-crypto-payment-gateway/woocryptocloud.php 77% from 13 tests

The primary PHP file in "CryptoCloud - Crypto Payment Gateway" version 2.1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cryptocloud-crypto-payment-gateway.php" instead of "woocryptocloud.php")
  • Description: The description should be shorter than 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected191 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12910106
PO File2222485

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin