Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.42ms] Passed 4 tests
This is a short check of server-side resources used by Nota Fiscal Eletrônica WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 35.58 ▼4.41 |
Dashboard /wp-admin | 3.35 ▲0.00 | 50.36 ▼10.44 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 47.88 ▲0.90 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.87 ▼17.54 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.54 ▼1.30 |
Server storage [IO: ▲29.14MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Just a few items left to fix
- The filesystem usage should be lower than 25MB (currently using 29.14MB)
Filesystem: 252 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
woocommercenfe_error_messages |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Nota Fiscal Eletrônica WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.34 ▼0.36 | 1.75 ▼0.14 | 38.47 ▼5.87 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▲0.09 | 92.75 ▼6.60 | 39.21 ▼3.39 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.03 ▲0.00 | 38.86 ▲1.90 | 35.64 ▼0.01 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.85 ▲0.41 | 583.51 ▼22.78 | 49.77 ▼12.91 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.17 ▼0.02 | 94.98 ▼2.41 | 44.34 ▲3.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- woocommercenfe_error_messages
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/nota-fiscal-eletronica-woocommerce/inc/pdf/tcpdf/tools/tcpdf_addfont.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WooCommerceNFe' not found in wp-content/plugins/nota-fiscal-eletronica-woocommerce/inc/gateways/pagseguro.php:3
- > PHP Fatal error
Uncaught Error: Class 'WooCommerceNFe' not found in wp-content/plugins/nota-fiscal-eletronica-woocommerce/inc/gateways/bacs.php:3
- > PHP Fatal error
Uncaught Error: Class 'TCPDF' not found in wp-content/plugins/nota-fiscal-eletronica-woocommerce/inc/pdf/tcpdf/tcpdi.php:22
- > PHP Fatal error
Uncaught Error: Class 'WooCommerceNFe' not found in wp-content/plugins/nota-fiscal-eletronica-woocommerce/inc/gateways/paypal.php:3
- > PHP Fatal error
Uncaught Error: Class 'WooCommerceNFe' not found in wp-content/plugins/nota-fiscal-eletronica-woocommerce/inc/gateways/ebanx.php:3
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/nota-fiscal-eletronica-woocommerce/inc/pdf/tcpdf/fpdf_tpl.php:20
- > PHP Fatal error
Uncaught Error: Class 'WooCommerceNFe' not found in wp-content/plugins/nota-fiscal-eletronica-woocommerce/inc/gateways/pagarme.php:3
- > PHP Fatal error
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 88% 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 to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Screenshots: Please add an image for screenshot #7 (E-mail enviado para o cliente automaticamente.)
nota-fiscal-eletronica-woocommerce/woocommerce_nfe.php 92% from 13 tests
"Nota Fiscal Eletrônica WooCommerce" version 3.3.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nota-fiscal-eletronica-woocommerce.php" instead of "woocommerce_nfe.php")
Code Analysis 95% 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 plugin54,379 lines of code in 124 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 115 | 3,118 | 13,298 | 53,288 |
PO File | 2 | 218 | 274 | 554 |
JavaScript | 4 | 115 | 12 | 322 |
CSS | 2 | 28 | 0 | 175 |
JSON | 1 | 0 | 0 | 40 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 4,349)
- Method cyclomatic complexity should be reduced to less than 100 (currently 499)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 217.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,349.00 |
Average method complexity | 9.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 499.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 35 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 927 | |
▷ Static methods | 144 | 15.53% |
▷ Public methods | 631 | 68.07% |
▷ Protected methods | 283 | 30.53% |
▷ Private methods | 13 | 1.40% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 121 | |
▷ Global constants | 121 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There are no PNG files in this plugin