83% skydropx-cotizador-y-envios

Code Review | Skydropx: Cotizador y Envios

WordPress plugin Skydropx: Cotizador y Envios scored83%from 54 tests.

About plugin

  • Plugin page: skydropx-cotizado...
  • Plugin version: 1.0.12
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 1, 2023
  • Latest release: Jul 31, 2023
  • Number of updates: 19
  • Update frequency: every 9.7 days
  • Top authors: skydropx2023 (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /5,709 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 successfully, without throwing any errors or notices

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

A check of server-side resources used by Skydropx: Cotizador y Envios
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.88 ▼5.36
Dashboard /wp-admin3.31 ▲0.0042.27 ▼3.40
Posts /wp-admin/edit.php3.36 ▲0.0041.69 ▼4.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.70 ▼12.17
Media Library /wp-admin/upload.php3.23 ▲0.0034.20 ▼2.84

Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Skydropx: Cotizador y Envios
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.091.71 ▲0.1637.49 ▼3.56
Dashboard /wp-admin2,195 ▲215.64 ▲0.0379.66 ▼4.0539.66 ▼3.01
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0834.28 ▲0.2134.29 ▼2.73
Add New Post /wp-admin/post-new.php1,526 ▼923.06 ▲4.80671.50 ▲82.1144.37 ▼15.37
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.01100.44 ▲5.1343.64 ▲0.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Trait 'Ecomerciar\\Skydropx\\Helper\\TemplateTrait' not found in wp-content/plugins/skydropx-cotizador-y-envios/src/helper/class-helper.php on line 10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/skydropx-cotizador-y-envios/templates/panel-content.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/skydropx-cotizador-y-envios/templates/panel-content.php:11
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/skydropx-cotizador-y-envios/templates/panel-content.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'Ecomerciar\\Skydropx\\Api\\ApiConnector' not found in wp-content/plugins/skydropx-cotizador-y-envios/src/api/class-skydropx-api.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: woocommerce, shipping method, skydropx

skydropx-cotizador-y-envios/skydropx.php 69% from 13 tests

"Skydropx: Cotizador y Envios" version 1.0.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires at least: The required version number must match the one declared in readme.txt ("6.1.1" instead of "5.4.1")
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.4" instead of "7.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("skydropx-cotizador-y-envios.php" instead of "skydropx.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,098 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP182185711,098

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity11.87
▷ Minimum class complexity1.00
▷ Maximum class complexity74.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces6
Interfaces1
Traits5
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
Methods63
▷ Static methods4368.25%
▷ Public methods5790.48%
▷ Protected methods34.76%
▷ Private methods34.76%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin