84% provincias-de-ecuador-para-woocommerce

Code Review | Provincias de Ecuador para WooCommerce

WordPress plugin Provincias de Ecuador para WooCommerce scored 84% from 54 tests.

About plugin

  • Plugin page: provincias-de-ecu...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0 +-5.1
  • WordPress version: 6.3.1
  • First release: Jan 9, 2018
  • Latest release: Mar 1, 2019
  • Number of updates: 5
  • Update frequency: every 83.2 days
  • Top authors: icampana (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,420 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: ▼123.51ms] Passed 4 tests

This is a short check of server-side resources used by Provincias de Ecuador para WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.62 ▼4.53
Dashboard /wp-admin3.31 ▼0.0746.39 ▼476.83
Posts /wp-admin/edit.php3.36 ▲0.0147.51 ▼12.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.28 ▲3.40
Media Library /wp-admin/upload.php3.24 ▲0.0134.09 ▼0.21

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

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

Browser metrics Passed 4 tests

Provincias de Ecuador para WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.21 ▼1.191.77 ▲0.0540.49 ▼16.47
Dashboard /wp-admin2,206 ▲184.84 ▼1.02108.70 ▲12.1640.89 ▲3.69
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0239.54 ▲2.8334.45 ▲1.55
Add New Post /wp-admin/post-new.php1,533 ▼023.32 ▲0.17572.00 ▼91.2753.46 ▲3.76
Media Library /wp-admin/upload.php1,388 ▼04.26 ▼0.0196.52 ▼21.4944.38 ▼4.45

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/provincias-de-ecuador-para-woocommerce/woocommerce-provincias-ecuador.php:76

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: woocommerce, ecuador, provincias

provincias-de-ecuador-para-woocommerce/woocommerce-provincias-ecuador.php 85% from 13 tests

This is the main PHP file of "Provincias de Ecuador para WooCommerce" version 1.1, 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:
  • Main file name: The principal plugin file should be the same as the plugin slug ("provincias-de-ecuador-para-woocommerce.php" instead of "woocommerce-provincias-ecuador.php")
  • Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "3.0 +")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172941

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
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