84% woocommerce-es

Code Review | Spanish Market Enhancements for WooCommerce

WordPress plugin Spanish Market Enhancements for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-es
  • Plugin version: 2.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 12, 2014
  • Latest release: Oct 18, 2023
  • Number of updates: 56
  • Update frequency: every 63.7 days
  • Top authors: closemarketing (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

2,000+ active /79,662 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Spanish Market Enhancements for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.33 ▼9.67
Dashboard /wp-admin3.32 ▼0.0344.70 ▼13.04
Posts /wp-admin/edit.php3.37 ▲0.0148.24 ▼1.04
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.36 ▲6.13
Media Library /wp-admin/upload.php3.24 ▲0.0137.38 ▲3.68

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options
wpspa_plugin_version
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Spanish Market Enhancements for WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.35 ▲0.061.62 ▼0.2638.65 ▼2.65
Dashboard /wp-admin2,212 ▲385.63 ▲0.0592.78 ▲7.8141.69 ▲0.87
Posts /wp-admin/edit.php2,121 ▲211.99 ▲0.0441.62 ▲4.6637.70 ▲4.86
Add New Post /wp-admin/post-new.php1,538 ▲1223.58 ▲0.45650.90 ▲25.6550.05 ▼6.11
Media Library /wp-admin/upload.php1,417 ▲174.21 ▲0.04104.95 ▲7.5746.50 ▲1.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • wpspa_plugin_version
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woocommerce-es/includes/class-public.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-es/woocommerce-es.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
10 plugin tags: woocommerce, es, ecommerce, commerce, woothemes...

woocommerce-es/woocommerce-es.php 92% from 13 tests

The entry point to "Spanish Market Enhancements for WooCommerce" version 2.1.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0" instead of "5.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin4,095 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PO File151,3562,1163,630
PHP3104199465

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.44
Average class complexity33.50
▷ Minimum class complexity32.00
▷ Maximum class complexity35.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin