Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.17MB] [CPU: ▲8.83ms] Passed 4 tests
An overview of server-side resources used by LFECFDI para Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.84 ▲4.38 | 59.77 ▲10.10 |
Dashboard /wp-admin | 7.86 ▲4.51 | 66.77 ▲0.24 |
Posts /wp-admin/edit.php | 7.86 ▲4.50 | 67.33 ▲17.34 |
Add New Post /wp-admin/post-new.php | 9.15 ▲3.27 | 111.06 ▲7.62 |
Media Library /wp-admin/upload.php | 7.86 ▲4.63 | 57.31 ▲21.19 |
Server storage [IO: ▲1.81MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 73 new options
New WordPress options |
---|
rvcfdi_observacion |
can_compress_scripts |
rvcfdi_unidad_medida_shipping |
rvcfdi_color_boton |
rvcfdi_idioma |
widget_recent-posts |
rvcfdi_metodo_pago_seleccionar |
rvcfdi_mensajeErrorCliente |
rvcfdi_color_fondo_formulario |
rvcfdi_manejo_impuestos_pedido |
... |
Browser metrics Passed 4 tests
LFECFDI para Woocommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲115 | 13.47 ▼1.04 | 8.36 ▲6.10 | 36.13 ▼10.77 |
Dashboard /wp-admin | 2,203 ▲23 | 5.66 ▲0.00 | 90.93 ▲1.86 | 43.13 ▲1.38 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.03 ▲0.00 | 41.44 ▲3.45 | 36.85 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.13 ▼0.37 | 631.42 ▼39.18 | 57.49 ▲1.78 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.25 ▲0.11 | 97.87 ▼10.87 | 41.73 ▼7.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 73 options in the database
- rvcfdi_claveEmisor
- rvcfdi_informacionGlobal_meses
- rvcfdi_color_texto_boton_generarcfdi
- rvcfdi_emailNotificacionErrorAutomatico
- rvcfdi_color_texto_formulario
- rvcfdi_observacion
- rvcfdi_moneda
- rvcfdi_uso_cfdi
- rvcfdi_informacionGlobal_año
- rvcfdi_metodo_pago
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/lfecfdi-para-woocommerce/lasfacturaselectronicas_woocommerce.php:47
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in lfecfdi-para-woocommerce/assets to your readme.txt
lfecfdi-para-woocommerce/lasfacturaselectronicas_woocommerce.php 85% from 13 tests
"LFECFDI para Woocommerce" version 8.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages/")
- Main file name: Name the main plugin file the same as the plugin slug ("lfecfdi-para-woocommerce.php" instead of "lasfacturaselectronicas_woocommerce.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin26,020 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 3,153 | 597 | 22,614 |
JavaScript | 3 | 570 | 119 | 2,879 |
CSS | 2 | 68 | 35 | 527 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 124)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 53.64 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 396.00 |
Average method complexity | 12.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 124.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 50 | 98.04% |
▷ Public methods | 51 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 86 | |
▷ Named functions | 86 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
25 PNG files occupy 0.30MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
imagenes/guia3.png | 9.17KB | 4.84KB | ▼ 47.20% |
assets/Logo-RV-16.png | 2.35KB | 2.34KB | 0.21% |
assets/realvirtual_woocommerce_envioxml_img.png | 9.66KB | 4.44KB | ▼ 54.08% |
(invalid) assets/realvirtual_woocommerce_xml.PNG | 0.45KB | 0.00KB | ▼ 100.00% |
assets/realvirtual_woocommerce_excel.png | 0.62KB | 0.71KB | 0.00% |