89% wanderlust-autocompletado-del-checkout

Code Review | Wanderlust - Autocompletar dirección de Facturación - AFIP

WordPress plugin Wanderlust - Autocompletar dirección de Facturación - AFIP scored89%from 54 tests.

About plugin

  • Plugin page: wanderlust-autoco...
  • Plugin version: 0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 7, 2020
  • Latest release: Apr 25, 2023
  • Number of updates: 15
  • Update frequency: every 76.5 days
  • Top authors: ConradoGalli (80%)wanderlustcodes (26.67%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,431 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼11.75ms] Passed 4 tests

Server-side resources used by Wanderlust - Autocompletar dirección de Facturación - AFIP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.61 ▼9.92
Dashboard /wp-admin3.34 ▼0.0150.77 ▼20.29
Posts /wp-admin/edit.php3.39 ▲0.0351.67 ▼0.01
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.93 ▼15.59
Media Library /wp-admin/upload.php3.26 ▲0.0337.02 ▼1.18

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/wanderlust-autocompletado-del-checkout/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wanderlust - Autocompletar dirección de Facturación - AFIP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.45 ▲0.272.02 ▲0.1946.01 ▲1.46
Dashboard /wp-admin2,218 ▲185.79 ▼0.0798.49 ▼23.2938.52 ▼8.82
Posts /wp-admin/edit.php2,100 ▼02.04 ▼0.0639.06 ▲0.2933.23 ▼0.84
Add New Post /wp-admin/post-new.php1,545 ▲1423.37 ▲0.41664.27 ▲19.6458.47 ▲6.16
Media Library /wp-admin/upload.php1,400 ▼34.33 ▲0.1496.07 ▼18.1840.54 ▼9.87

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: woocommerce, afip

wanderlust-autocompletado-del-checkout/index.php 92% from 13 tests

The main PHP file in "Wanderlust - Autocompletar dirección de Facturación - AFIP" ver. 0.7 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wanderlust-autocompletado-del-checkout.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin182 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23417141
JavaScript111041

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
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
No PNG files were detected