84% comunas-de-chile-para-woocommerce

Code Review | Comunas de Chile para WooCommerce

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

About plugin

  • Plugin page: comunas-de-chile-...
  • Plugin version: 2020.08.20
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Nov 11, 2015
  • Latest release: Aug 19, 2020
  • Number of updates: 15
  • Update frequency: every 116.2 days
  • Top authors: andresreyesdev (53.33%)AnydaSRL (53.33%)

Code review

54 tests

User reviews

13 reviews

Install metrics

4,000+ active /19,718 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.05MB] [CPU: ▼5.48ms] Passed 4 tests

This is a short check of server-side resources used by Comunas de Chile para WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.06 ▼0.36
Dashboard /wp-admin3.36 ▲0.0546.96 ▼4.94
Posts /wp-admin/edit.php3.41 ▲0.0543.78 ▼6.69
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.27 ▼9.91
Media Library /wp-admin/upload.php3.28 ▲0.0540.87 ▲8.69

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Comunas de Chile para WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.212.10 ▲0.1143.66 ▼3.91
Dashboard /wp-admin2,203 ▲125.83 ▲0.9698.28 ▼21.5540.90 ▼5.60
Posts /wp-admin/edit.php2,086 ▼32.15 ▲0.0236.45 ▼2.1034.88 ▼0.44
Add New Post /wp-admin/post-new.php1,542 ▲918.42 ▼4.74588.16 ▼72.5258.30 ▲0.57
Media Library /wp-admin/upload.php1,388 ▲64.27 ▲0.1196.23 ▼5.3939.87 ▼4.33

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/comunas-de-chile-para-woocommerce/woocoomerce-comunas.php:404

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: comunas, chile, woocommerce, andresreyesdev, wordpress

comunas-de-chile-para-woocommerce/woocoomerce-comunas.php 92% from 13 tests

The main file in "Comunas de Chile para WooCommerce" v. 2020.08.20 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("comunas-de-chile-para-woocommerce.php" instead of "woocoomerce-comunas.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin366 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1832366

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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 were not PNG files found in your plugin