89% wc-cointopay-com

Code Review | Accept Bitcoin, Ethereum, Litecoin, Monero and many more crypto with Cointopay.com

WordPress plugin Accept Bitcoin, Ethereum, Litecoin, Monero and many more crypto with Cointopay.com scored89%from 54 tests.

About plugin

  • Plugin page: wc-cointopay-com
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 20, 2019
  • Latest release: Sep 20, 2023
  • Number of updates: 27
  • Update frequency: every 51.9 days
  • Top authors: cointopay (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,506 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
This plugin's installer ran successfully

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

Server-side resources used by Accept Bitcoin, Ethereum, Litecoin, Monero and many more crypto with Cointopay.com
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.96 ▼0.61
Dashboard /wp-admin3.31 ▼0.0446.68 ▼13.77
Posts /wp-admin/edit.php3.36 ▲0.0048.90 ▼1.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.43 ▼14.11
Media Library /wp-admin/upload.php3.23 ▲0.0036.48 ▼1.02

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Accept Bitcoin, Ethereum, Litecoin, Monero and many more crypto with Cointopay.com: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.19 ▼1.211.67 ▼0.4041.00 ▼1.51
Dashboard /wp-admin2,224 ▲185.89 ▲0.02100.39 ▼2.6039.24 ▼6.38
Posts /wp-admin/edit.php2,100 ▼32.05 ▼0.0034.34 ▼5.5438.79 ▲0.88
Add New Post /wp-admin/post-new.php1,526 ▼017.53 ▲0.00647.65 ▼34.1161.01 ▲7.85
Media Library /wp-admin/upload.php1,400 ▼34.26 ▲0.0397.06 ▼6.6944.30 ▼1.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #1, #2, #3 in wc-cointopay-com/assets to your readme.txt
You can take inspiration from this readme.txt

wc-cointopay-com/wc-cointopay.php 92% from 13 tests

The principal PHP file in "Accept Bitcoin, Ethereum, Litecoin, Monero and many more crypto with Cointopay.com" v. 1.4.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wc-cointopay-com.php" instead of "wc-cointopay.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
There were no executable files found in this plugin392 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP18098309
JavaScript19351
Markdown118032

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/fail.png2.15KB1.72KB▼ 19.99%
images/crypto.png6.90KB2.94KB▼ 57.45%
images/check.png2.47KB2.29KB▼ 7.17%