Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▲1.98ms] Passed 4 tests
Server-side resources used by FACTO - Facturación Electrónica
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 38.92 ▼5.47 |
Dashboard /wp-admin | 3.57 ▲0.26 | 52.99 ▲2.67 |
Posts /wp-admin/edit.php | 3.69 ▲0.32 | 53.17 ▲6.72 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 96.23 ▲5.97 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 37.88 ▲4.74 |
FACTO /wp-admin/admin.php?page=facto_settings | 3.44 | 34.93 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_facto_order_mp |
wp_facto_log |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
facto_webservice_mode |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for FACTO - Facturación Electrónica
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲42 | 14.72 ▲0.36 | 1.60 ▼0.01 | 35.75 ▼7.98 |
Dashboard /wp-admin | 2,212 ▲35 | 5.63 ▲0.02 | 95.17 ▲2.15 | 42.77 ▼3.24 |
Posts /wp-admin/edit.php | 2,115 ▲12 | 2.15 ▲0.19 | 40.73 ▲4.65 | 37.23 ▲6.85 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.58 ▲0.32 | 606.96 ▲2.37 | 50.25 ▼6.25 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.18 ▼0.10 | 97.47 ▲1.53 | 45.07 ▲2.24 |
FACTO /wp-admin/admin.php?page=facto_settings | 924 | 2.14 | 26.23 | 27.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie tables detected upon uninstall: 2 tables
- wp_facto_order_mp
- wp_facto_log
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- facto_webservice_mode
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=facto_settings
- > Notice in wp-content/plugins/facto-facturacioacuten-electroacutenica/factofacturacionelectronica_admin.php+768
Undefined index: tab
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
The following issues need your attention
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/facto-facturacioacuten-electroacutenica/nusoap/class.soap_server.php:16
- > PHP Fatal error
require_once(): Failed opening required 'Mail/mimeDecode.php' (include_path='.:/usr/share/php') in wp-content/plugins/facto-facturacioacuten-electroacutenica/nusoap/nusoapmime.php on line 42
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/facto-facturacioacuten-electroacutenica/nusoap/class.soapclient.php:26
- > PHP Warning
require_once(Mail/mimeDecode.php): failed to open stream: No such file or directory in wp-content/plugins/facto-facturacioacuten-electroacutenica/nusoap/nusoapmime.php on line 42
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/facto-facturacioacuten-electroacutenica/nusoap/class.soap_parser.php:15
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/facto-facturacioacuten-electroacutenica/nusoap/class.soap_fault.php:14
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/facto-facturacioacuten-electroacutenica/nusoap/class.xmlschema.php:15
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/facto-facturacioacuten-electroacutenica/nusoap/class.soap_transport_http.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=facto_settings
- > Javascript (severe) in unknown
/wp-content/plugins/facto-facturacioacuten-electroacutenica/js/factofacturacionelectronica_admin.js?ver=6.3.1 19:53 Uncaught TypeError: Cannot set properties of null (setting 'onclick')
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:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== facto-facturacioacuten-electroacutenica ===
) - Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7, #8 in facto-facturacioacuten-electroacutenica/assets to your readme.txt
facto-facturacioacuten-electroacutenica/factofacturacionelectronica.php 92% from 13 tests
The primary PHP file in "FACTO - Facturación Electrónica" version 2.4.3 is used by WordPress to initiate all plugin 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 ("facto-facturacioacuten-electroacutenica.php" instead of "factofacturacionelectronica.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin11,693 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 1,620 | 5,479 | 11,458 |
JavaScript | 3 | 85 | 235 | 233 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 69.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 387.00 |
Average method complexity | 8.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 33 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 304 | |
▷ Static methods | 11 | 3.62% |
▷ Public methods | 302 | 99.34% |
▷ Protected methods | 2 | 0.66% |
▷ Private methods | 0 | 0.00% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.29MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/config_imp_especificos.png | 106.76KB | 41.14KB | ▼ 61.47% |
images/facto-isotipo.png | 30.37KB | 13.81KB | ▼ 54.54% |
images/admin_facto.png | 111.01KB | 40.45KB | ▼ 63.56% |
images/facto-logo.png | 12.98KB | 6.42KB | ▼ 50.55% |
images/config_imp_especificos_detalle.png | 39.68KB | 19.10KB | ▼ 51.88% |