Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼8.46ms] Passed 4 tests
Analyzing server-side resources used by RVCFDI para Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 33.32 ▼3.01 |
Dashboard /wp-admin | 3.40 ▲0.05 | 44.32 ▼15.47 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 45.41 ▲0.90 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 81.59 ▼13.46 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 32.68 ▼1.88 |
Server storage [IO: ▲1.81MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 73 new options
New WordPress options |
---|
rvcfdi_emailNotificacionErrorModuloClientes |
rvcfdi_config_principal_shipping |
rvcfdi_complementoCFDI_iedu_configuracion_nivel |
rvcfdi_descripcion |
rvcfdi_serie |
rvcfdi_color_texto_boton_generarcfdi |
rvcfdi_rfcEmisor |
rvcfdi_informacionGlobal_año |
rvcfdi_estado_orden |
rvcfdi_claveEmisor |
... |
Browser metrics Passed 4 tests
Checking browser requirements for RVCFDI para Woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲140 | 13.42 ▼1.24 | 7.71 ▲6.11 | 41.47 ▲1.43 |
Dashboard /wp-admin | 2,206 ▲26 | 5.68 ▲0.08 | 83.37 ▼1.80 | 36.49 ▼8.04 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.01 ▲0.03 | 40.51 ▲3.47 | 36.39 ▲2.35 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.22 ▼0.16 | 664.79 ▼7.45 | 37.83 ▼30.22 |
Media Library /wp-admin/upload.php | 1,414 ▲11 | 4.23 ▲0.06 | 96.34 ▲0.96 | 43.83 ▼3.32 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 73 options in the database
- rvcfdi_descripcion
- rvcfdi_serie
- rvcfdi_clave_unidad_shipping
- rvcfdi_estado_orden_cfdi_automatico
- rvcfdi_pedido_mes_actual
- rvcfdi_numero_pedimento
- rvcfdi_color_texto_controles_formulario
- rvcfdi_notificar_error_cfdi_automatico
- rvcfdi_idioma
- rvcfdi_informacionGlobal_meses
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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 server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rvcfdi-para-woocommerce/realvirtual_woocommerce.php:47
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7, #8 in rvcfdi-para-woocommerce/assets to your readme.txt
rvcfdi-para-woocommerce/realvirtual_woocommerce.php 85% from 13 tests
"RVCFDI para Woocommerce" version 8.1.0'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:
- Domain Path: The domain path folder does not exist ("/languages/")
- Main file name: Name the main plugin file the same as the plugin slug ("rvcfdi-para-woocommerce.php" instead of "realvirtual_woocommerce.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable 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
An overview of cyclomatic complexity and code structure
Please 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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
25 PNG files occupy 0.30MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
imagenes/guia2.png | 38.66KB | 13.48KB | ▼ 65.13% |
assets/realvirtual_woocommerce_envioxml_img.png | 9.66KB | 4.44KB | ▼ 54.08% |
assets/realvirtual_woocommerce_enviar.png | 0.74KB | 0.83KB | 0.00% |
assets/realvirtual_woocommerce_acuse.png | 1.34KB | 1.34KB | 0.22% |
assets/realvirtual_woocommerce.png | 0.83KB | 0.72KB | ▼ 13.16% |