89% calculo-de-despacho-via-starken-para-woocommerce

Code Review | Despacho vía Starken Pro para WooCommerce

WordPress plugin Despacho vía Starken Pro para WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: calculo-de-despac...
  • Plugin version: 2022.05.28
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Feb 28, 2017
  • Latest release: May 28, 2022
  • Number of updates: 45
  • Update frequency: every 42.5 days
  • Top authors: andresreyesdev (64.44%)AnydaSRL (37.78%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active / 24,766 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
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼3.72ms] Passed 4 tests

Server-side resources used by Despacho vía Starken Pro para WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1238.60 ▼3.95
Dashboard /wp-admin3.42 ▲0.1248.61 ▼1.48
Posts /wp-admin/edit.php3.53 ▲0.1851.86 ▲3.45
Add New Post /wp-admin/post-new.php6.00 ▲0.1187.24 ▼11.16
Media Library /wp-admin/upload.php3.34 ▲0.1137.18 ▲1.71

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Despacho vía Starken Pro para WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.23 ▼1.021.61 ▼0.2137.71 ▼6.08
Dashboard /wp-admin2,221 ▲305.81 ▲0.8994.34 ▼21.1045.48 ▼6.35
Posts /wp-admin/edit.php2,106 ▲172.03 ▲0.0738.44 ▲5.4036.13 ▼1.49
Add New Post /wp-admin/post-new.php1,410 ▼12318.40 ▼4.68634.34 ▼16.2567.77 ▲15.46
Media Library /wp-admin/upload.php1,403 ▲184.26 ▲0.0997.64 ▼21.6544.79 ▼4.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% 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 to be fixed:
  • Screenshots: These screenshots require images: #1 (Pantalla de Administración), #2 (Cálculo de Despacho)
You can take inspiration from this readme.txt

calculo-de-despacho-via-starken-para-woocommerce/calculo-de-despacho-via-starken-para-woocommerce.php 85% from 13 tests

The main file in "Despacho vía Starken Pro para WooCommerce" v. 2022.05.28 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.5" 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 plugin854 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP18720458
SVG101224
JavaScript1277169
CSS1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity29.00
▷ Minimum class complexity25.00
▷ Maximum class complexity33.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods22
▷ Static methods14.55%
▷ Public methods2090.91%
▷ Protected methods00.00%
▷ Private methods29.09%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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