99% departamentos-y-ciudades-de-colombia-para-woocommerce

Code Review | Departamentos y Ciudades de Colombia para Woocommerce

WordPress plugin Departamentos y Ciudades de Colombia para Woocommerce scored 99% from 54 tests.

About plugin

  • Plugin page: departamentos-y-c...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 5.8.1
  • First release: Oct 27, 2016
  • Latest release: Aug 18, 2021
  • Number of updates: 58
  • Update frequency: every 30.3 days
  • Top authors: saulmorales (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

10,000+ active / 65,846 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Departamentos y Ciudades de Colombia para Woocommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.47 ▲10.60
Dashboard /wp-admin3.07 ▲0.0245.25 ▼4.05
Posts /wp-admin/edit.php3.12 ▲0.0248.68 ▲2.85
Add New Post /wp-admin/post-new.php5.43 ▼0.0096.80 ▼565.03
Media Library /wp-admin/upload.php3.01 ▲0.0133.11 ▲0.90

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Departamentos y Ciudades de Colombia para Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.77 ▼0.088.11 ▼0.8448.70 ▼1.15
Dashboard /wp-admin2,973 ▲396.12 ▼0.02142.95 ▼2.08109.93 ▼8.23
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0167.79 ▲1.2894.73 ▼3.87
Add New Post /wp-admin/post-new.php1,594 ▼1018.83 ▲0.03391.95 ▲33.79119.05 ▲2.27
Media Library /wp-admin/upload.php1,810 ▼05.10 ▲0.07159.99 ▲4.44125.63 ▼5.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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)
Even though no errors were found, this is by no means an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
Please take inspiration from this readme.txt

departamentos-y-ciudades-de-colombia-para-woocommerce/departamentos-y-ciudades-de-colombia-para-woocommerce.php 92% from 13 tests

The main PHP script in "Departamentos y Ciudades de Colombia para Woocommerce" version 2.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.4" instead of "4.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
There were no executable files found in this plugin2,225 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PO File23232125

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity32.50
▷ Minimum class complexity30.00
▷ Maximum class complexity35.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods414.81%
▷ Public methods2488.89%
▷ Protected methods13.70%
▷ Private methods27.41%
▷ Named functions583.33%
▷ Anonymous functions116.67%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected