89% crypto-payment-checkout-by-intrxn

Code Review | Crypto payment checkout by intrXn

WordPress plugin Crypto payment checkout by intrXn scored89%from 54 tests.

About plugin

  • Plugin page: crypto-payment-ch...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 20, 2022
  • Latest release: Sep 21, 2022
  • Number of updates: 12
  • Update frequency: every 0.1 days
  • Top authors: codextent (91.67%)intrxn (16.67%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,509 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 gracefully, with no errors

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

A check of server-side resources used by Crypto payment checkout by intrXn
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.19 ▲2.61
Dashboard /wp-admin3.31 ▲0.0046.55 ▼2.08
Posts /wp-admin/edit.php3.36 ▲0.0046.41 ▼0.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.82 ▼16.94
Media Library /wp-admin/upload.php3.23 ▲0.0037.05 ▼0.56

Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
intrxn_plugin_version
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Crypto payment checkout by intrXn
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.491.55 ▲0.0049.07 ▲6.75
Dashboard /wp-admin2,195 ▲155.59 ▲0.0684.53 ▼7.7435.90 ▼2.48
Posts /wp-admin/edit.php2,100 ▲211.98 ▼0.0636.47 ▼0.1732.42 ▼2.14
Add New Post /wp-admin/post-new.php1,529 ▼823.38 ▼1.48595.92 ▼24.1982.98 ▲4.28
Media Library /wp-admin/upload.php1,403 ▲64.22 ▼0.01106.67 ▲7.5243.97 ▼2.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • intrxn_plugin_version
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 24 tag instead of maximum 10
You can look at the official readme.txt

crypto-payment-checkout-by-intrxn/class-intrxn-pay.php 92% from 13 tests

The entry point to "Crypto payment checkout by intrXn" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("crypto-payment-checkout-by-intrxn.php" instead of "class-intrxn-pay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin536 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4108227481
PO File1172255

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.67
▷ Minimum class complexity4.00
▷ Maximum class complexity16.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods522.73%
▷ Public methods1254.55%
▷ Protected methods00.00%
▷ Private methods1045.45%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/logo-org.png2.21KB1.33KB▼ 39.58%
assets/logo.png3.93KB2.03KB▼ 48.37%