83% coordinadora

Code Review | Envíos Coordinadora Woocommerce (Oficial) - WordPress plugin

WordPress plugin Envíos Coordinadora Woocommerce (Oficial) - WordPress plugin scored83%from 54 tests.

About plugin

  • Plugin page: coordinadora
  • Plugin version: 1.1.17
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 25, 2021
  • Latest release: Nov 15, 2023
  • Number of updates: 41
  • Update frequency: every 21.5 days
  • Top authors: coordinadoramercantil (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /5,227 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Envíos Coordinadora Woocommerce (Oficial) - WordPress plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.11 ▲4.83
Dashboard /wp-admin3.31 ▲0.0146.14 ▼6.17
Posts /wp-admin/edit.php3.36 ▲0.0145.57 ▲1.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.88 ▼12.47
Media Library /wp-admin/upload.php3.24 ▲0.0134.34 ▲0.56

Server storage [IO: ▲0.04MB] [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
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Envíos Coordinadora Woocommerce (Oficial) - WordPress plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3714.67 ▲0.311.80 ▲0.1336.78 ▼7.45
Dashboard /wp-admin2,198 ▲245.69 ▲0.1791.44 ▼5.0442.20 ▼7.64
Posts /wp-admin/edit.php2,106 ▲31.97 ▲0.0136.70 ▼1.3938.36 ▲3.45
Add New Post /wp-admin/post-new.php1,433 ▼9821.70 ▼1.05563.32 ▼89.8529.85 ▼24.70
Media Library /wp-admin/upload.php1,397 ▼34.16 ▼0.09100.84 ▼5.0643.02 ▲1.29

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • 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 | Just a short smoke test targeting errors on the server (in the Apache logs)
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/coordinadora/includes/Coordinadora_WC_Shipping_Method.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/coordinadora/includes/Coordinadora_WC_Shipping_Metho_Same_Day_Delivery.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/coordinadora/includes/controllers/v1/QC_WC_CM_REST_Orders_Controller.php:3

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
You can take inspiration from this readme.txt

coordinadora/index.php 85% from 13 tests

"Envíos Coordinadora Woocommerce (Oficial) - WordPress plugin" version 1.1.17's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("coordinadora.php" instead of "index.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.5.3" instead of "6.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected625 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP1199100577
JavaScript12048

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.90
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods39
▷ Static methods1230.77%
▷ Public methods3487.18%
▷ Protected methods410.26%
▷ Private methods12.56%
Functions7
▷ Named functions571.43%
▷ Anonymous functions228.57%
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
There were not PNG files found in your plugin