83% sucursales-correo-argentino-para-woocommerce

Code Review | Sucursales Correo Argentino para WooCommerce

WordPress plugin Sucursales Correo Argentino para WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: sucursales-correo...
  • Plugin version: 0.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 12, 2020
  • Latest release: Apr 25, 2023
  • Number of updates: 23
  • Update frequency: every 52.2 days
  • Top authors: ConradoGalli (95.65%)wanderlustcodes (8.7%)

Code review

54 tests

User reviews

6 reviews

Install metrics

700+ active /10,380 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 gracefully, with no errors

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

Analyzing server-side resources used by Sucursales Correo Argentino para WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.51 ▼1.95
Dashboard /wp-admin3.32 ▲0.0252.66 ▼1.23
Posts /wp-admin/edit.php3.37 ▲0.0155.70 ▲1.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.34 ▼12.15
Media Library /wp-admin/upload.php3.24 ▲0.0137.92 ▼2.91

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Sucursales Correo Argentino para WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲2114.39 ▲0.011.14 ▼0.8443.33 ▲1.77
Dashboard /wp-admin2,206 ▲184.83 ▼1.20103.06 ▼2.0940.40 ▼0.00
Posts /wp-admin/edit.php2,089 ▼31.98 ▼0.0540.64 ▼4.5633.46 ▼2.77
Add New Post /wp-admin/post-new.php1,533 ▲1223.26 ▼0.00654.32 ▼12.5254.23 ▼10.41
Media Library /wp-admin/upload.php1,388 ▼04.25 ▼0.01103.78 ▼6.7343.60 ▼6.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sucursales-correo-argentino-para-woocommerce/wanderlust-ca-shipping.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sucursales-correo-argentino-para-woocommerce/includes/functions.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% 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
Attributes that need to be fixed: Please take inspiration from this readme.txt

sucursales-correo-argentino-para-woocommerce/wanderlust-ca-shipping.php 77% from 13 tests

The entry point to "Sucursales Correo Argentino para WooCommerce" version 0.0.9 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("sucursales-correo-argentino-para-woocommerce.php" instead of "wanderlust-ca-shipping.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin447 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP412981447

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/img/suc-ca.png16.55KB1.69KB▼ 89.79%