84% regiones-de-chile-para-woocommerce

Code Review | Regiones de Chile para WooCommerce

WordPress plugin Regiones de Chile para WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: regiones-de-chile...
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0 +-5.2.1
  • WordPress version: 6.3.1
  • First release: Apr 12, 2018
  • Latest release: Jun 27, 2019
  • Number of updates: 17
  • Update frequency: every 25.9 days
  • Top authors: melvisnap (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /8,896 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Regiones de Chile para WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.01 ▼0.03
Dashboard /wp-admin3.32 ▲0.0146.65 ▼0.02
Posts /wp-admin/edit.php3.37 ▲0.0147.35 ▲0.64
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.99 ▼20.11
Media Library /wp-admin/upload.php3.24 ▲0.0132.96 ▼0.40

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Regiones de Chile para WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.66 ▼0.722.00 ▲0.2943.75 ▲1.15
Dashboard /wp-admin2,209 ▲184.85 ▼0.05105.94 ▲1.6242.08 ▼1.04
Posts /wp-admin/edit.php2,089 ▲31.97 ▼0.0736.00 ▲0.3832.87 ▼4.02
Add New Post /wp-admin/post-new.php1,530 ▼1223.34 ▲5.07628.01 ▲1.9252.62 ▲0.64
Media Library /wp-admin/upload.php1,388 ▲64.19 ▲0.0195.34 ▼3.5341.19 ▼4.54

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/regiones-de-chile-para-woocommerce/chile-woocommerce.php:74

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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
6 plugin tags: regions, shipping, envios, chile, woocommerce...

regiones-de-chile-para-woocommerce/chile-woocommerce.php 85% from 13 tests

The main PHP script in "Regiones de Chile para WooCommerce" version 0.4 is automatically included on every request by WordPress
It is important to fix the following:
  • Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "4.0 +")
  • Main file name: Name the main plugin file the same as the plugin slug ("regiones-de-chile-para-woocommerce.php" instead of "chile-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP193235

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin