89% departamentos-y-ciudades-de-guatemala-para-woocommerce

Code Review | Departamentos y Municipios de Guatemala para Woocommerce

WordPress plugin Departamentos y Municipios de Guatemala para Woocommerce scored 89% from 54 tests.

About plugin

  • Plugin page: departamentos-y-c...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-5.0
  • WordPress version: 6.3.1
  • First release: Feb 16, 2019
  • Latest release: Feb 17, 2019
  • Number of updates: 29
  • Update frequency: every 0.0 days
  • Top authors: tallerdigitalvw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 981 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.78ms] Passed 4 tests

This is a short check of server-side resources used by Departamentos y Municipios de Guatemala para Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.58 ▼2.25
Dashboard /wp-admin3.31 ▲0.0146.09 ▼1.38
Posts /wp-admin/edit.php3.36 ▲0.0047.21 ▼1.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.07 ▼17.75
Media Library /wp-admin/upload.php3.23 ▲0.0035.93 ▲2.79

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Departamentos y Municipios de Guatemala para Woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.43 ▲0.071.71 ▼0.0537.94 ▼10.95
Dashboard /wp-admin2,206 ▲155.85 ▲1.02107.77 ▲5.5037.14 ▼6.84
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0339.74 ▼0.4734.28 ▼1.93
Add New Post /wp-admin/post-new.php1,533 ▲423.04 ▲4.76645.42 ▲48.6755.32 ▲1.94
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0497.20 ▼9.5644.84 ▼1.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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 everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

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 your attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
Please take inspiration from this readme.txt

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

This is the main PHP file of "Departamentos y Municipios de Guatemala para Woocommerce" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "2.6")

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
Good job! No executable or dangerous file extensions detected1,260 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP7116177995
JavaScript1307141
PO File23232124

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
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
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods414.81%
▷ Public methods2488.89%
▷ Protected methods13.70%
▷ Private methods27.41%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants1
▷ 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
There were not PNG files found in your plugin