10% agile-cash

Code Review | Agile Cash Crypto Payments for WooCommerce

WordPress plugin Agile Cash Crypto Payments for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: agile-cash
  • Plugin version: 1.8.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1.1
  • WordPress version: 6.3.1
  • First release: Dec 28, 2018
  • Latest release: Apr 17, 2019
  • Number of updates: 35
  • Update frequency: every 3.1 days
  • Top authors: rgostic (91.43%)agilecash (11.43%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,714 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/agile-cash/src/AGC_Util.php+38
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.31ms] Passed 4 tests

Analyzing server-side resources used by Agile Cash Crypto Payments for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.86 ▼2.02
Dashboard /wp-admin3.34 ▲0.0348.59 ▼5.07
Posts /wp-admin/edit.php3.39 ▲0.0347.52 ▼10.75
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.03 ▼23.40
Media Library /wp-admin/upload.php3.26 ▲0.0337.80 ▼0.55

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 72 new files
Database: 3 new tables, 6 new options
New tables
wp_agc_carousel
wp_agc_electrum_addresses
wp_agc_payments
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Agile Cash Crypto Payments for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.091.64 ▼0.0945.74 ▲2.89
Dashboard /wp-admin2,195 ▲185.58 ▼0.0984.08 ▼4.8641.04 ▼4.03
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0434.73 ▼7.1435.16 ▼2.50
Add New Post /wp-admin/post-new.php1,526 ▼223.19 ▲0.15660.35 ▼7.6254.61 ▼0.41
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.05102.43 ▼12.6042.41 ▼8.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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
Good news, no errors were detected

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 fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/agile-cash/agile-cash.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/agile-cash/src/AGC_Gateway.php:3

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)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 66 tag instead of maximum 10
The official readme.txt might help

agile-cash/agile-cash.php Passed 13 tests

The main PHP script in "Agile Cash Crypto Payments for WooCommerce" version 1.8.3 is automatically included on every request by WordPress
86 characters long description:
WooCommerce Plug-in that allows your customers to pay with supported cryptocurrencies.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected5,344 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP241,3965445,044
JavaScript14510294
CSS1106

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity41.18
▷ Minimum class complexity1.00
▷ Maximum class complexity233.00
Average method complexity4.81
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes00.00%
Methods233
▷ Static methods14160.52%
▷ Public methods19884.98%
▷ Protected methods00.00%
▷ Private methods3515.02%
Functions22
▷ Named functions2195.45%
▷ Anonymous functions14.55%
Constants17
▷ Global constants635.29%
▷ Class constants1164.71%
▷ Public constants11100.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
43 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/bytecoin_logo_small.png0.73KB0.62KB▼ 14.88%
assets/img/bitcoingold_logo_small.png1.19KB1.29KB0.00%
assets/img/Dogecoin_Logo_Small.png1.58KB1.44KB▼ 8.85%
assets/img/geminidollar_logo_small.png1.10KB1.17KB0.00%
assets/img/holochain_logo_small.png1.32KB1.34KB0.00%