89% aurpay

Code Review | Pay with Crypto with AURPAY, accept Bitcoin, ETH &50 more tokens. Increase sales & Customer base.

WordPress plugin Pay with Crypto with AURPAY, accept Bitcoin, ETH &50 more tokens. Increase sales & Customer base. scored89%from 54 tests.

About plugin

  • Plugin page: aurpay
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 23, 2022
  • Latest release: Sep 30, 2022
  • Number of updates: 4
  • Update frequency: every 2.0 days
  • Top authors: aurtech01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /277 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
Installer ran successfully

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

This is a short check of server-side resources used by Pay with Crypto with AURPAY, accept Bitcoin, ETH &50 more tokens. Increase sales & Customer base.
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.47 ▼7.90
Dashboard /wp-admin3.33 ▼0.0249.38 ▼16.92
Posts /wp-admin/edit.php3.38 ▲0.0246.40 ▼6.84
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.19 ▼17.91
Media Library /wp-admin/upload.php3.25 ▲0.0235.01 ▲1.54

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Pay with Crypto with AURPAY, accept Bitcoin, ETH &50 more tokens. Increase sales & Customer base.
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3114.49 ▲0.352.07 ▲0.2745.72 ▲6.45
Dashboard /wp-admin2,206 ▲155.90 ▲1.00111.23 ▲8.4243.37 ▼1.09
Posts /wp-admin/edit.php2,089 ▼31.97 ▼0.0237.16 ▼1.7434.68 ▼0.49
Add New Post /wp-admin/post-new.php1,520 ▲623.10 ▲5.45651.69 ▲20.5553.64 ▲0.23
Media Library /wp-admin/upload.php1,382 ▼34.22 ▲0.06100.59 ▲0.0541.00 ▼2.88

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% 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
These attributes need your attention:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
The official readme.txt is a good inspiration

aurpay/aurpay.php 85% from 13 tests

The primary PHP file in "Pay with Crypto with AURPAY, accept Bitcoin, ETH &50 more tokens. Increase sales & Customer base." version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 183 characters long)
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin712 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP37885317
CSS2420308
SVG20077
JavaScript14210

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.50
▷ Minimum class complexity3.00
▷ Maximum class complexity12.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants6
▷ Global constants6100.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
3 PNG files occupy 0.29MB with 0.20MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/img_aurpay.png69.81KB20.63KB▼ 70.45%
assets/images/img_aurpay-2x.png207.29KB57.23KB▼ 72.39%
assets/images/pay-logo.png18.52KB6.02KB▼ 67.48%