Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼8.74ms] Passed 4 tests
This is a short check of server-side resources used by APISUNAT Facturación Electrónica para WooCommerce - SUNAT - PERU
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.28 ▼3.73 |
Dashboard /wp-admin | 3.31 ▼0.03 | 46.39 ▼13.22 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.13 ▼1.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.51 ▼16.48 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.10 ▲3.76 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
APISUNAT Facturación Electrónica para WooCommerce - SUNAT - PERU: 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,827 ▲66 | 14.14 ▼0.51 | 2.11 ▲0.40 | 43.57 ▼2.21 |
Dashboard /wp-admin | 2,208 ▲28 | 5.55 ▼0.11 | 101.81 ▲2.01 | 41.22 ▼0.97 |
Posts /wp-admin/edit.php | 2,113 ▲10 | 2.11 ▲0.08 | 33.40 ▼7.40 | 34.06 ▼1.71 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.03 ▲0.07 | 668.92 ▲29.81 | 59.99 ▲5.94 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.18 ▼0.03 | 109.31 ▲14.71 | 47.49 ▲6.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/apisunat/admin/partials/apisunat-admin-display.php:20
- > 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 96% from 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
9 plugin tags: cpe, peru, facturacion electronica, wp, factura...
apisunat/apisunat.php 92% from 13 tests
The principal PHP file in "APISUNAT Facturación Electrónica para WooCommerce - SUNAT - PERU" v. 1.3.15 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: Please use dashes and lowercase characters for text domains
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
There were no executable files found in this plugin1,450 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 275 | 730 | 1,285 |
JavaScript | 2 | 25 | 10 | 120 |
CSS | 2 | 5 | 9 | 45 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 14.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 4 | 6.90% |
▷ Public methods | 52 | 89.66% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.34% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin