Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼6.31ms] Passed 4 tests
Analyzing server-side resources used by Easy Fattura Elettronica FREE
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 44.87 ▲3.40 |
Dashboard /wp-admin | 3.74 ▲0.39 | 51.30 ▼11.82 |
Posts /wp-admin/edit.php | 3.85 ▲0.50 | 51.98 ▼0.64 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 87.10 ▼16.19 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 41.87 ▲4.74 |
Documenti /wp-admin/admin.php?page=easy-fattura-elettronica-documents | 3.63 | 37.25 |
Rubrica intermediari /wp-admin/admin.php?page=easy-fattura-elettronica-intermediari | 3.63 | 36.80 |
Passa a PRO /wp-admin/admin.php?page=easy-fattura-elettronica-passa-a-pro | 3.63 | 33.91 |
Backup /wp-admin/admin.php?page=easy-fattura-elettronica-backup | 3.63 | 35.03 |
Impostazioni /wp-admin/admin.php?page=easy-fattura-elettronica-settings | 3.63 | 36.42 |
Invia Fatture /wp-admin/admin.php?page=easy-fattura-elettronica-app | 4.40 | 54.05 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 480 new files
Database: 2 new tables, 18 new options
New tables |
---|
wp_easy_fattura_elettronica_intermediari |
wp_easy_fattura_elettronica |
New WordPress options |
---|
widget_recent-comments |
efe-delete-options |
efe-license |
efe-counter-fattura |
efe-token |
efe-fatturazione-elettronica-abilitata |
efe-counter-ricevuta |
widget_theysaidso_widget |
efe-pi-cf-abilitati |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Fattura Elettronica FREE
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,971 ▲210 | 13.92 ▼0.47 | 9.61 ▲7.59 | 32.81 ▼11.75 |
Dashboard /wp-admin | 2,263 ▲57 | 5.83 ▲0.93 | 103.13 ▼6.96 | 40.52 ▼0.39 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.01 ▼0.01 | 37.95 ▲0.47 | 36.52 ▼1.13 |
Add New Post /wp-admin/post-new.php | 1,566 ▲26 | 22.69 ▲4.50 | 672.34 ▲21.94 | 52.80 ▼4.33 |
Media Library /wp-admin/upload.php | 1,451 ▲51 | 4.23 ▼0.01 | 105.36 ▼10.25 | 44.82 ▼6.45 |
Documenti /wp-admin/admin.php?page=easy-fattura-elettronica-documents | 845 | 2.05 | 24.30 | 32.06 |
Rubrica intermediari /wp-admin/admin.php?page=easy-fattura-elettronica-intermediari | 939 | 2.02 | 22.01 | 33.09 |
Passa a PRO /wp-admin/admin.php?page=easy-fattura-elettronica-passa-a-pro | 1,050 | 2.13 | 24.56 | 38.54 |
Backup /wp-admin/admin.php?page=easy-fattura-elettronica-backup | 967 | 1.93 | 27.12 | 34.76 |
Impostazioni /wp-admin/admin.php?page=easy-fattura-elettronica-settings | 879 | 2.17 | 31.38 | 35.67 |
Invia Fatture /wp-admin/admin.php?page=easy-fattura-elettronica-app | 845 | 2.05 | 27.77 | 31.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure failed, leaving 2 tables in the database
- wp_easy_fattura_elettronica
- wp_easy_fattura_elettronica_intermediari
- This plugin does not fully uninstall, leaving 18 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- efe-tipo-documento-fatture
- efe-fatturazione-elettronica-abilitata
- efe-token
- efe-delete-options
- efe-license
- efe-counter-fattura
- efe-pi-cf-abilitati
- ...
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)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=easy-fattura-elettronica-documents
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/easy-fattura-elettronica-free/lib/phpqrcode/index.php
- > /wp-content/plugins/easy-fattura-elettronica-free/admin/partials/easy-fattura-elettronica-admin-display.php
- > /wp-content/plugins/easy-fattura-elettronica-free/public/partials/easy-fattura-elettronica-public-display.php
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: efe_nome_ditta_fornitore in wp-content/plugins/easy-fattura-elettronica-free/includes/easy-fattura-elettronica-template-xml.php on line 37
- > PHP Notice
Undefined variable: store_country in wp-content/plugins/easy-fattura-elettronica-free/includes/easy-fattura-elettronica-template-xml.php on line 32
- > PHP Notice
Undefined variable: ispec in wp-content/plugins/easy-fattura-elettronica-free/includes/easy-fattura-elettronica-template-xml.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function convert() in wp-content/plugins/easy-fattura-elettronica-free/includes/easy-fattura-elettronica-template-xml.php:40
- > PHP Notice
Undefined variable: praz in wp-content/plugins/easy-fattura-elettronica-free/includes/easy-fattura-elettronica-template-xml.php on line 14
- > PHP Notice
Undefined variable: efe_codice_fornitore in wp-content/plugins/easy-fattura-elettronica-free/includes/easy-fattura-elettronica-template-xml.php on line 33
- > PHP Notice
Undefined variable: fatt_id in wp-content/plugins/easy-fattura-elettronica-free/includes/easy-fattura-elettronica-template-xml.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-fattura-elettronica-free/includes/easy-fattura-elettronica-api.php:3
- > PHP Notice
Undefined variable: soggetto in wp-content/plugins/easy-fattura-elettronica-free/includes/easy-fattura-elettronica-template-xml.php on line 9
- > PHP Notice
Undefined variable: efe_cf_fornitore in wp-content/plugins/easy-fattura-elettronica-free/includes/easy-fattura-elettronica-template-xml.php on line 35
- > PHP Notice
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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
easy-fattura-elettronica-free/easy-fattura-elettronica.php 85% from 13 tests
The main PHP script in "Easy Fattura Elettronica FREE" version 1.6.4 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-fattura-elettronica-free.php" instead of "easy-fattura-elettronica.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
It is important to fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/easy-fattura-elettronica-free/lib/phpqrcode/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 1,968 | 3,371 | 8,914 |
JavaScript | 4 | 46 | 7 | 122 |
PO File | 2 | 30 | 0 | 84 |
CSS | 3 | 3 | 13 | 35 |
Bourne Shell | 1 | 0 | 0 | 2 |
DOS Batch | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 26.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 42 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 399 | |
▷ Static methods | 134 | 33.58% |
▷ Public methods | 291 | 72.93% |
▷ Protected methods | 96 | 24.06% |
▷ Private methods | 12 | 3.01% |
Functions | 41 | |
▷ Named functions | 40 | 97.56% |
▷ Anonymous functions | 1 | 2.44% |
Constants | 104 | |
▷ Global constants | 104 | 100.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
58 PNG files occupy 0.14MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/img2.png | 6.03KB | 3.82KB | ▼ 36.73% |
admin/css/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
lib/phpqrcode/cache/frame_40.png | 0.26KB | 0.24KB | ▼ 7.87% |
lib/phpqrcode/cache/frame_34.png | 0.25KB | 0.23KB | ▼ 8.59% |
lib/phpqrcode/cache/frame_23.png | 0.21KB | 0.20KB | ▼ 8.18% |