83% shipping-coordinadora-woocommerce

Code Review | Shipping Coordinadora Woocommerce

WordPress plugin Shipping Coordinadora Woocommerce scored83%from 54 tests.

About plugin

  • Plugin page: shipping-coordina...
  • Plugin version: 3.0.28
  • PHP compatiblity: 7.1.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 16, 2018
  • Latest release: Sep 13, 2023
  • Number of updates: 117
  • Update frequency: every 14.8 days
  • Top authors: saulmorales (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

90+ active /14,513 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.16ms] Passed 4 tests

An overview of server-side resources used by Shipping Coordinadora Woocommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.13 ▲2.79
Dashboard /wp-admin3.34 ▲0.0350.58 ▼2.73
Posts /wp-admin/edit.php3.39 ▲0.0352.91 ▼4.10
Add New Post /wp-admin/post-new.php5.92 ▲0.03108.29 ▲0.52
Media Library /wp-admin/upload.php3.26 ▲0.0340.62 ▼2.31

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Shipping Coordinadora Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6813.65 ▼0.725.49 ▲3.7145.59 ▲4.72
Dashboard /wp-admin2,220 ▲324.84 ▼0.98101.26 ▼19.6139.50 ▼7.21
Posts /wp-admin/edit.php2,103 ▲112.03 ▲0.0137.38 ▼2.4333.04 ▼2.78
Add New Post /wp-admin/post-new.php1,542 ▲2823.03 ▲5.32682.37 ▲75.7160.13 ▲15.65
Media Library /wp-admin/upload.php1,399 ▲84.24 ▲0.03101.37 ▼0.2142.39 ▼5.04

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/shipping-coordinadora-woocommerce/includes/class-method-shipping-coordinadora-collection-wc.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method_Shipping_Coordinadora_WC' not found in wp-content/plugins/shipping-coordinadora-woocommerce/includes/class-shipping-coordinadora-wc.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/shipping-coordinadora-woocommerce/includes/class-method-shipping-coordinadora-wc.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wc_enqueue_js() in wp-content/plugins/shipping-coordinadora-woocommerce/includes/admin/settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

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
These attributes need your attention:
  • Tags: There are too many tags (13 tag instead of maximum 10)
You can look at the official readme.txt

shipping-coordinadora-woocommerce/shipping-coordinadora-wc.php 77% from 13 tests

The primary PHP file in "Shipping Coordinadora Woocommerce" version 3.0.28 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("shipping-coordinadora-woocommerce.php" instead of "shipping-coordinadora-wc.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("6.0" instead of "4.0")
  • Git Repository: Please do not include Git repositories in your plugin

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
Success! There were no dangerous files found in this plugin1,856 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP93411761,736
JavaScript320120

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity30.83
▷ Minimum class complexity1.00
▷ Maximum class complexity92.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods76
▷ Static methods2330.26%
▷ Public methods7294.74%
▷ Protected methods33.95%
▷ Private methods11.32%
Functions13
▷ Named functions646.15%
▷ Anonymous functions753.85%
Constants5
▷ Global constants120.00%
▷ Class constants480.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin