90% woocommerce-bcash

Code Review | Claudio Sanches - Bcash for WooCommerce

WordPress plugin Claudio Sanches - Bcash for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-bcash
  • Plugin version: 1.14.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Nov 2, 2012
  • Latest release: Aug 11, 2020
  • Number of updates: 36
  • Update frequency: every 78.9 days
  • Top authors: claudiosanches (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

200+ active /15,343 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.16MB] [CPU: ▼17.49ms] Passed 4 tests

An overview of server-side resources used by Claudio Sanches - Bcash for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.09 ▲0.36
Dashboard /wp-admin3.21 ▼0.1330.43 ▼34.86
Posts /wp-admin/edit.php3.28 ▼0.0838.12 ▼12.16
Add New Post /wp-admin/post-new.php5.45 ▼0.4377.89 ▼18.16
Media Library /wp-admin/upload.php3.22 ▼0.0133.88 ▼4.76

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Claudio Sanches - Bcash for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.57 ▲0.231.64 ▼0.0246.20 ▲2.80
Dashboard /wp-admin2,195 ▲245.63 ▼0.0488.58 ▼19.8540.15 ▼7.57
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0238.05 ▼6.9933.89 ▼2.77
Add New Post /wp-admin/post-new.php1,526 ▼023.54 ▲0.38672.82 ▲18.2059.96 ▲1.19
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.0192.31 ▼26.6344.44 ▼0.93

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • 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)
The smoke test was a success, however most plugin functionality was not tested

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 just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: payment, woocommerce, bcash, checkout

woocommerce-bcash/woocommerce-bcash.php 92% from 13 tests

The main file in "Claudio Sanches - Bcash for WooCommerce" v. 1.14.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected857 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP9191375830
JavaScript25527

PHP code Passed 2 tests

An short overview of 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.41
Average class complexity34.00
▷ Minimum class complexity12.00
▷ Maximum class complexity50.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods41
▷ Static methods12.44%
▷ Public methods2868.29%
▷ Protected methods1126.83%
▷ Private methods24.88%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/bcash.png1.39KB1.62KB0.00%