84% rut-chileno-con-validacion

Code Review | Rut Chileno con Validación para WooCommerce

WordPress plugin Rut Chileno con Validación para WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: rut-chileno-con-v...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Aug 4, 2020
  • Latest release: Aug 20, 2020
  • Number of updates: 6
  • Update frequency: every 2.7 days
  • Top authors: andresreyesdev (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active /5,034 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.01ms] Passed 4 tests

Analyzing server-side resources used by Rut Chileno con Validación para WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.49 ▲2.71
Dashboard /wp-admin3.34 ▲0.0450.26 ▼4.44
Posts /wp-admin/edit.php3.39 ▲0.0452.24 ▲3.93
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.87 ▼12.75
Media Library /wp-admin/upload.php3.26 ▲0.0438.06 ▲2.45
Rut Chileno para WooCommerce /wp-admin/tools.php?page=wc_chilean_bundle3.2331.83

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
wc_chilean_bundle_about_us_options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
wc_chilean_bundle_configuration_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rut Chileno con Validación para WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲12013.56 ▼0.965.94 ▲3.8942.12 ▼4.70
Dashboard /wp-admin2,217 ▲264.83 ▼1.2297.63 ▼13.6139.54 ▼3.62
Posts /wp-admin/edit.php2,097 ▲82.03 ▲0.0635.15 ▼2.3135.14 ▲0.57
Add New Post /wp-admin/post-new.php1,521 ▲223.21 ▲0.08681.66 ▼24.6566.68 ▲13.20
Media Library /wp-admin/upload.php1,399 ▲114.31 ▲0.1894.59 ▼14.3839.87 ▼7.00
Rut Chileno para WooCommerce /wp-admin/tools.php?page=wc_chilean_bundle8002.0325.3828.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • wc_chilean_bundle_configuration_options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • wc_chilean_bundle_about_us_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/rut-chileno-con-validacion/public/partials/wc-chilean-bundle-public-display.php
    • > /wp-content/plugins/rut-chileno-con-validacion/admin/partials/wc-chilean-bundle-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: comments, spam

rut-chileno-con-validacion/wc-chilean-bundle.php 85% from 13 tests

"Rut Chileno con Validación para WooCommerce" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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: Name the main plugin file the same as the plugin slug ("rut-chileno-con-validacion.php" instead of "wc-chilean-bundle.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
Good job! No executable or dangerous file extensions detected460 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP14213641445
CSS2049
JavaScript24546

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.17
Average class complexity3.89
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.51
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods46
▷ Static methods24.35%
▷ Public methods4086.96%
▷ Protected methods00.00%
▷ Private methods613.04%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin