84% cool-correo-argentino-woo

Code Review | Cool Correo Argentino - WooCommerce

WordPress plugin Cool Correo Argentino - WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: cool-correo-argen...
  • Plugin version: 1.3.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.1-6.4.1
  • WordPress version: 6.3.1
  • First release: May 4, 2022
  • Latest release: Nov 28, 2023
  • Number of updates: 24
  • Update frequency: every 23.9 days
  • Top authors: matiasanca (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /3,054 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
Install script ran successfully

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

Server-side resources used by Cool Correo Argentino - WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.21 ▼3.80
Dashboard /wp-admin3.31 ▼0.0446.48 ▼18.32
Posts /wp-admin/edit.php3.36 ▲0.0049.19 ▲1.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.56 ▼10.88
Media Library /wp-admin/upload.php3.23 ▲0.0034.18 ▲0.20

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Cool Correo Argentino - 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,790 ▲4314.27 ▼0.001.69 ▼0.0743.79 ▲0.56
Dashboard /wp-admin2,198 ▲245.62 ▲0.0490.45 ▼9.0838.98 ▼5.39
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0838.65 ▼0.1334.93 ▼2.41
Add New Post /wp-admin/post-new.php1,535 ▲918.72 ▼4.77624.34 ▼54.3764.95 ▲11.10
Media Library /wp-admin/upload.php1,394 ▼64.15 ▼0.0196.37 ▼1.4041.29 ▼0.28

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
  • 38× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/cool-correo-argentino-woo/templates/export-results.php on line 13
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/cool-correo-argentino-woo/templates/checkout-branch-selector.php on line 14
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/cool-correo-argentino-woo/templates/export-results.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'MANCA\\CoolCA\\Helper\\Helper' not found in wp-content/plugins/cool-correo-argentino-woo/templates/export-header.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/cool-correo-argentino-woo/templates/checkout-branch-selector.php:17
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cool-correo-argentino-woo/templates/checkout-branch-selector.php on line 10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cool-correo-argentino-woo/templates/export-results.php on line 13
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cool-correo-argentino-woo/templates/export-form.php on line 10
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/cool-correo-argentino-woo/templates/export-form.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/cool-correo-argentino-woo/templates/product-shipping-cost.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: shipments, woocommerce, correoargentino

cool-correo-argentino-woo/cool-ca.php 85% from 13 tests

The principal PHP file in "Cool Correo Argentino - WooCommerce" v. 1.3.3 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cool-correo-argentino-woo.php" instead of "cool-ca.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
No dangerous file extensions were detected3,562 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PHP404291,1243,122
CSS33013307
JavaScript32524133

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity10.93
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity3.37
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces9
Interfaces1
Traits11
Classes18
▷ Abstract classes15.56%
▷ Concrete classes1794.44%
▷ Final classes00.00%
Methods108
▷ Static methods8376.85%
▷ Public methods9789.81%
▷ Protected methods00.00%
▷ Private methods1110.19%
Functions8
▷ Named functions00.00%
▷ Anonymous functions8100.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected