84% omnicommerce-integracion-para-lince-indumentaria

Code Review | Omnicommerce integración para Lince Indumentaria

WordPress plugin Omnicommerce integración para Lince Indumentaria scored84%from 54 tests.

About plugin

  • Plugin page: omnicommerce-inte...
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Aug 22, 2022
  • Latest release: Jan 25, 2023
  • Number of updates: 5
  • Update frequency: every 31.0 days
  • Top authors: omnicommerce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /194 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.69MB] [CPU: ▼15.00ms] Passed 4 tests

Analyzing server-side resources used by Omnicommerce integración para Lince Indumentaria
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.41 ▼5.81
Dashboard /wp-admin3.31 ▲0.0143.88 ▼4.21
Posts /wp-admin/edit.php3.36 ▲0.0045.71 ▲2.36
Add New Post /wp-admin/post-new.php3.12 ▼2.7635.24 ▼52.33
Media Library /wp-admin/upload.php3.23 ▲0.0036.41 ▲2.76

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Omnicommerce integración para Lince Indumentaria
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.18 ▼1.081.57 ▼0.2542.35 ▼0.57
Dashboard /wp-admin2,206 ▲145.81 ▲0.7996.71 ▼14.9337.33 ▼3.98
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0136.65 ▲0.4532.32 ▼1.53
Add New Post /wp-admin/post-new.php1,533 ▼022.85 ▼0.24634.58 ▼15.3354.18 ▲5.66
Media Library /wp-admin/upload.php1,391 ▲34.20 ▲0.0493.33 ▼3.5841.49 ▼1.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • 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
Good news, no errors were detected

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/omnicommerce-integracion-para-lince-indumentaria/omnicommerce-integracion-para-lince-indumentaria.php:102

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Contributors: The plugin contributors field is not present
You can take inspiration from this readme.txt

omnicommerce-integracion-para-lince-indumentaria/omnicommerce-integracion-para-lince-indumentaria.php Passed 13 tests

The principal PHP file in "Omnicommerce integración para Lince Indumentaria" v. 1.2 is loaded by WordPress automatically on each request
101 characters long description:
Mantiene sincronizado el stock de múltiples locales y depósitos Lince Indumentaria con WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected88 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101788

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin