Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.33ms] Passed 4 tests
This is a short check of server-side resources used by FacturaDirecta (classic) for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 52.80 ▲10.02 |
Dashboard /wp-admin | 3.32 ▼0.02 | 48.16 ▼16.34 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.73 ▲1.46 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.09 ▼9.35 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 37.95 ▼1.10 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for FacturaDirecta (classic) for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲55 | 14.21 ▼0.14 | 1.79 ▼0.09 | 40.48 ▼4.43 |
Dashboard /wp-admin | 2,207 ▲27 | 5.59 ▼0.07 | 89.91 ▲0.12 | 41.97 ▲4.04 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.98 ▼0.00 | 36.34 ▼5.05 | 34.04 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,538 ▲3 | 23.47 ▲5.42 | 685.97 ▲26.41 | 51.66 ▼11.08 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.31 ▲0.12 | 96.64 ▼18.88 | 44.98 ▼6.03 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-facturadirecta/includes/wc-facturadirecta-tax-code-validator.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-facturadirecta/includes/wc-facturadirecta-eu-vat-number.php:16
- > 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 errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
3 plugin tags: facturadirecta, invoices, woocommerce
woo-facturadirecta/woo-facturadirecta.php Passed 13 tests
This is the main PHP file of "FacturaDirecta (classic) for WooCommerce" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
139 characters long description:
WooCommerce integration to your FacturaDirecta billing system. Automatic creation of invoices and customers in your FacturaDirecta account.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,006 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 251 | 678 | 986 |
JavaScript | 2 | 4 | 5 | 20 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 31.20 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 32 | 47.76% |
▷ Public methods | 44 | 65.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 23 | 34.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin