89% incoin

Code Review | WooCommerce inCoin

WordPress plugin WooCommerce inCoin scored89%from 54 tests.

About plugin

  • Plugin page: incoin
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 29, 2022
  • Latest release: Dec 30, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: vohotv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,013 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by WooCommerce inCoin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.27 ▲2.79
Dashboard /wp-admin3.32 ▲0.0248.80 ▼6.19
Posts /wp-admin/edit.php3.37 ▲0.0148.14 ▼3.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.04 ▼5.91
Media Library /wp-admin/upload.php3.25 ▲0.0137.04 ▲0.29

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce inCoin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.48 ▲0.161.68 ▼0.0444.31 ▲3.87
Dashboard /wp-admin2,202 ▲255.57 ▲0.0693.02 ▼1.0141.49 ▼4.67
Posts /wp-admin/edit.php2,108 ▲262.01 ▲0.0234.07 ▼2.1936.37 ▼1.30
Add New Post /wp-admin/post-new.php1,533 ▲523.61 ▲0.72691.66 ▲2.2459.91 ▼1.58
Media Library /wp-admin/upload.php1,401 ▲44.18 ▼0.0397.78 ▼4.3047.33 ▲2.07

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
  • Requires php: Version not formatted correctly
The official readme.txt might help

incoin/incoin.php Passed 13 tests

The main PHP file in "WooCommerce inCoin" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
39 characters long description:
Crypto payment gateway for WooCommerce.

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 detected235 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP884213232
CSS1003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity4.60
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods20
▷ Static methods420.00%
▷ Public methods1785.00%
▷ Protected methods00.00%
▷ Private methods315.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin