99% bitcartcc-for-woocommerce

Code Review | BitcartCC for WooCommerce

WordPress plugin BitcartCC for WooCommerce scored 99% from 54 tests.

About plugin

  • Plugin page: bitcartcc-for-woo...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.6
  • WordPress version: 5.9.2
  • First release: Jan 22, 2020
  • Latest release: Jun 6, 2021
  • Number of updates: 8
  • Update frequency: every 62.6 days
  • Top authors: bitcartcc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 472 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼289.34ms] Passed 4 tests

This is a short check of server-side resources used by BitcartCC for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0160.20 ▲6.79
Dashboard /wp-admin3.41 ▲0.0032.36 ▼4.34
Posts /wp-admin/edit.php3.64 ▲0.0037.83 ▼2.02
Add New Post /wp-admin/post-new.php6.88 ▼0.0998.07 ▼1,152.29
Media Library /wp-admin/upload.php3.29 ▲0.0027.35 ▲1.28

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by BitcartCC for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.85 ▲0.517.92 ▲1.782.47 ▼0.19
Dashboard /wp-admin2,895 ▲346.06 ▼0.15114.81 ▼19.91215.32 ▲45.96
Posts /wp-admin/edit.php2,694 ▲93.24 ▲0.0067.87 ▲2.45143.79 ▼47.80
Add New Post /wp-admin/post-new.php1,666 ▼2420.34 ▼0.95404.93 ▼32.50162.71 ▼0.32
Media Library /wp-admin/upload.php1,692 ▼65.45 ▼0.07138.78 ▼0.49184.93 ▼49.95

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 90% 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 to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

bitcartcc-for-woocommerce/class-wc-gateway-bitcartcc.php 85% from 13 tests

This is the main PHP file of "BitcartCC for WooCommerce" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("bitcartcc-for-woocommerce.php" instead of "class-wc-gateway-bitcartcc.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected839 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP211779829
Smarty10010

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon.png2.11KB1.30KB▼ 38.43%