73% multi-crypto-currency-payment

Code Review | Multi CryptoCurrency Payments

WordPress plugin Multi CryptoCurrency Payments scored73%from 54 tests.

About plugin

  • Plugin page: multi-crypto-curr...
  • Plugin version: 1.2.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 11, 2022
  • Latest release: Aug 2, 2023
  • Number of updates: 25
  • Update frequency: every 23.3 days
  • Top authors: zaytseff (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /5,930 total downloads

Benchmarks

Plugin footprint 65% 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.14MB] [CPU: ▼3.07ms] Passed 4 tests

Server-side resources used by Multi CryptoCurrency Payments
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1641.89 ▲2.13
Dashboard /wp-admin3.46 ▲0.1149.60 ▼16.02
Posts /wp-admin/edit.php3.57 ▲0.2149.75 ▼0.08
Add New Post /wp-admin/post-new.php6.04 ▲0.1596.74 ▲1.70
Media Library /wp-admin/upload.php3.38 ▲0.1539.59 ▲3.48

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 31 new files
Database: 1 new table, 6 new options
New tables
wp_apirone_mccp
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Multi CryptoCurrency Payments
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14114.05 ▼0.006.42 ▲4.5539.19 ▼4.96
Dashboard /wp-admin2,223 ▲205.82 ▼0.0397.47 ▼11.3237.49 ▼1.86
Posts /wp-admin/edit.php2,105 ▲52.05 ▼0.0139.71 ▲1.5337.16 ▲0.69
Add New Post /wp-admin/post-new.php1,537 ▼818.22 ▼5.08663.07 ▼35.1269.06 ▲0.88
Media Library /wp-admin/upload.php1,405 ▲54.29 ▲0.15111.11 ▼3.4049.96 ▲2.29

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_apirone_mccp
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/multi-crypto-currency-payment/inc/invoice-class.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/multi-crypto-currency-payment/inc/activate-plugin.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multi-crypto-currency-payment/inc/assets-assign.php:7

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

multi-crypto-currency-payment/mccp.php 92% from 13 tests

The main PHP file in "Multi CryptoCurrency Payments" ver. 1.2.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("multi-crypto-currency-payment.php" instead of "mccp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,225 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP143914191,562
CSS4341543
JavaScript27068
SVG80038
JSON10014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity24.55
▷ Minimum class complexity4.00
▷ Maximum class complexity51.00
Average method complexity3.70
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces1
Interfaces0
Traits4
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods96
▷ Static methods6062.50%
▷ Public methods9598.96%
▷ Protected methods11.04%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.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