84% cryptomus

Code Review | Accept Payments in USDT, BTC, ETH and Other Cryptocurrencies with Cryptomus

WordPress plugin Accept Payments in USDT, BTC, ETH and Other Cryptocurrencies with Cryptomus scored84%from 54 tests.

About plugin

  • Plugin page: cryptomus
  • Plugin version: 1.2.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Mar 13, 2023
  • Latest release: Aug 24, 2023
  • Number of updates: 25
  • Update frequency: every 7.8 days
  • Top authors: cryptomus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /1,989 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Accept Payments in USDT, BTC, ETH and Other Cryptocurrencies with Cryptomus
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.44 ▼2.73
Dashboard /wp-admin3.31 ▲0.0043.67 ▼3.14
Posts /wp-admin/edit.php3.36 ▲0.0048.15 ▼1.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.69 ▼11.13
Media Library /wp-admin/upload.php3.23 ▲0.0035.38 ▲1.68

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Accept Payments in USDT, BTC, ETH and Other Cryptocurrencies with Cryptomus
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.041.62 ▼0.2038.80 ▼4.10
Dashboard /wp-admin2,209 ▲244.88 ▼0.98108.75 ▼1.1341.91 ▼4.11
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0740.26 ▼0.9036.66 ▼0.65
Add New Post /wp-admin/post-new.php1,542 ▼018.14 ▼0.09604.98 ▲4.5854.41 ▼6.73
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0597.93 ▼7.3742.42 ▼0.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/cryptomus/src/Gateway.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #13, #14, #15, #2, #3, #3, #4, #4, #5, #6, #7, #8, #9 in cryptomus/assets to your readme.txt
The official readme.txt is a good inspiration

cryptomus/cryptomus.php 92% from 13 tests

This is the main PHP file of "Accept Payments in USDT, BTC, ETH and Other Cryptocurrencies with Cryptomus" version 1.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 187 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,756 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP18223573980
Markdown21170518
XML400100
SVG20080
JSON30078

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity11.55
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes763.64%
Methods64
▷ Static methods2335.94%
▷ Public methods6195.31%
▷ Protected methods00.00%
▷ Private methods34.69%
Functions9
▷ Named functions00.00%
▷ Anonymous functions9100.00%
Constants22
▷ Global constants00.00%
▷ Class constants22100.00%
▷ Public constants22100.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 were not PNG files found in your plugin