89% woo-coinnexus

Code Review | Bitcoin CoinNexus accept fiat and get bitcoin payment plugin

WordPress plugin Bitcoin CoinNexus accept fiat and get bitcoin payment plugin scored89%from 54 tests.

About plugin

  • Plugin page: woo-coinnexus
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 16, 2018
  • Latest release: Feb 26, 2019
  • Number of updates: 5
  • Update frequency: every 63.2 days
  • Top authors: coinnexus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,173 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.01MB] [CPU: ▼9.15ms] Passed 4 tests

A check of server-side resources used by Bitcoin CoinNexus accept fiat and get bitcoin payment plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.04 ▼5.43
Dashboard /wp-admin3.31 ▼0.0448.32 ▼17.18
Posts /wp-admin/edit.php3.36 ▲0.0047.70 ▼5.28
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.76 ▼8.35
Media Library /wp-admin/upload.php3.23 ▲0.0035.53 ▼5.63

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Bitcoin CoinNexus accept fiat and get bitcoin payment plugin: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.21 ▼1.351.81 ▲0.0139.27 ▼7.54
Dashboard /wp-admin2,215 ▲125.83 ▼0.0597.86 ▼9.5942.34 ▲1.01
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0234.72 ▼2.6233.25 ▼1.59
Add New Post /wp-admin/post-new.php1,554 ▲2023.14 ▼0.11666.45 ▼65.3063.03 ▲0.66
Media Library /wp-admin/upload.php1,397 ▼34.20 ▼0.03101.96 ▼14.0746.80 ▼3.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% 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 to be fixed:
  • Contributors: Contributors not specified
You can look at the official readme.txt

woo-coinnexus/woocommerce-gateway-fiat-to-bitcoin-coinnexus-api .php 77% from 13 tests

The principal PHP file in "Bitcoin CoinNexus accept fiat and get bitcoin payment plugin" v. 1.1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-coinnexus.php" instead of "woocommerce-gateway-fiat-to-bitcoin-coinnexus-api .php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin326 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14386294
Markdown113032

PHP code Passed 2 tests

An short overview of 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.21
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods654.55%
▷ Protected methods545.45%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin