90% 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 scored90%from 54 tests.

About plugin

  • Plugin page: departamentos-y-c...
  • Plugin version: 2.0.15
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 27, 2016
  • Latest release: Oct 11, 2023
  • Number of updates: 75
  • Update frequency: every 33.9 days
  • Top authors: saulmorales (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

9,000+ active /122,449 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼3.59ms] 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 /3.48 ▲0.0235.06 ▼4.49
Dashboard /wp-admin3.32 ▲0.0250.77 ▲4.82
Posts /wp-admin/edit.php3.37 ▲0.0247.18 ▲2.65
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.42 ▼7.49
Media Library /wp-admin/upload.php3.24 ▲0.0133.49 ▼5.01

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, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

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 /2,795 ▲6014.22 ▼0.371.58 ▼0.0141.51 ▲2.43
Dashboard /wp-admin2,198 ▲185.53 ▼0.1683.49 ▼1.1337.87 ▼7.61
Posts /wp-admin/edit.php2,107 ▲101.95 ▼0.0340.97 ▲3.5735.88 ▼7.70
Add New Post /wp-admin/post-new.php1,535 ▲723.20 ▲0.13638.24 ▼30.2159.48 ▲7.23
Media Library /wp-admin/upload.php1,403 ▼04.20 ▲0.0495.57 ▼4.2941.75 ▼4.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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

Optimizations

Plugin configuration 97% 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 Passed 13 tests

The main PHP script in "Departamentos y Ciudades de Colombia para Woocommerce" version 2.0.15 is automatically included on every request by WordPress
62 characters long description:
Plugin modificado con los departamentos y ciudades de Colombia

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,218 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP71121671,952
JavaScript1297141
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.39
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods26
▷ Static methods311.54%
▷ Public methods2492.31%
▷ Protected methods13.85%
▷ Private methods13.85%
Functions8
▷ Named functions450.00%
▷ Anonymous functions450.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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