84% states-and-municipalities-of-venezuela-for-woocommerce

Code Review | States and Municipalities of Venezuela for WooCommerce

WordPress plugin States and Municipalities of Venezuela for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: states-and-munici...
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 6.3.1
  • First release: Sep 29, 2019
  • Latest release: Feb 21, 2022
  • Number of updates: 26
  • Update frequency: every 33.7 days
  • Top authors: YordanSoares (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /1,626 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by States and Municipalities of Venezuela for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.85 ▼4.79
Dashboard /wp-admin3.31 ▲0.0044.92 ▼3.05
Posts /wp-admin/edit.php3.36 ▲0.0046.42 ▼5.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.25 ▼9.73
Media Library /wp-admin/upload.php3.23 ▲0.0034.83 ▲1.92

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for States and Municipalities of Venezuela for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲7513.20 ▼1.182.03 ▲0.3142.90 ▼0.95
Dashboard /wp-admin2,206 ▲185.85 ▲1.01105.32 ▼0.7737.56 ▼6.69
Posts /wp-admin/edit.php2,089 ▼31.98 ▼0.0738.67 ▼2.8736.15 ▲1.04
Add New Post /wp-admin/post-new.php1,514 ▼317.63 ▼0.09608.43 ▼13.0446.75 ▼9.44
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0698.08 ▼0.2542.37 ▼1.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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)
Everything seems fine, however 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/states-and-municipalities-of-venezuela-for-woocommerce/municipalities/VE.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: estados y municipios de venezuela, venezuelan states and municipalities

states-and-municipalities-of-venezuela-for-woocommerce/states-and-municipalities-of-venezuela-for-woocommerce.php Passed 13 tests

The main file in "States and Municipalities of Venezuela for WooCommerce" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
109 characters long description:
This plugin allows you to choose the States and Municipalities of Venezuela in the WooCommerce address forms.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected929 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP47262589
JavaScript1327141
PO File32739132
Markdown112067

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin