83% tienda-crypto-woo

Code Review | TiendaCrypto para WooCommerce

WordPress plugin TiendaCrypto para WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: tienda-crypto-woo
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Apr 4, 2022
  • Latest release: Nov 15, 2022
  • Number of updates: 36
  • Update frequency: every 6.4 days
  • Top authors: ConradoGalli (58.33%)tiendacrypto (44.44%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /4,645 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.37ms] Passed 4 tests

An overview of server-side resources used by TiendaCrypto para WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.74 ▼4.18
Dashboard /wp-admin3.35 ▲0.0450.41 ▼4.67
Posts /wp-admin/edit.php3.40 ▲0.0449.83 ▼3.16
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.52 ▼1.48
Media Library /wp-admin/upload.php3.27 ▲0.0439.82 ▲2.33

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please fix the following
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/tienda-crypto-woo/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by TiendaCrypto para WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.65 ▼0.632.21 ▲0.6042.41 ▲0.60
Dashboard /wp-admin2,221 ▲215.83 ▼0.0299.12 ▼12.5642.27 ▲6.21
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0135.80 ▼6.1739.70 ▲4.02
Add New Post /wp-admin/post-new.php1,549 ▲423.31 ▲5.22742.28 ▲122.9956.61 ▲2.74
Media Library /wp-admin/upload.php1,400 ▼34.24 ▼0.07109.75 ▲3.9246.07 ▼2.55

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/tienda-crypto-woo/tiendacrypto-woo.php:22

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 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: crypto, payments, woocommerce

tienda-crypto-woo/tiendacrypto-woo.php 77% from 13 tests

Analyzing the main PHP file in "TiendaCrypto para WooCommerce" version 1.2.1
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
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tienda-crypto-woo.php" instead of "tiendacrypto-woo.php")
  • Domain Path: The domain path folder was not found ("/i18n/languages/")

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 detected235 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12519235

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/logo.png2.85KB1.55KB▼ 45.48%