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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▲0.70ms] Passed 4 tests
Server-side resources used by WooCommerce Fattureincloud
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 35.45 ▼3.27 |
Dashboard /wp-admin | 3.38 ▲0.07 | 50.21 ▼3.20 |
Posts /wp-admin/edit.php | 3.50 ▲0.13 | 55.70 ▲8.43 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 88.55 ▲3.89 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.63 ▲5.39 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
fattureincloud_paid |
db_upgraded |
fattureincloud_send_choice |
widget_theysaidso_widget |
widget_recent-comments |
count_load_time_woo_fattureincloud |
widget_recent-posts |
fattureincloud_auto_save |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Fattureincloud
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲37 | 14.69 ▲0.34 | 0.98 ▼0.76 | 41.74 ▼3.08 |
Dashboard /wp-admin | 2,215 ▲38 | 5.62 ▲0.12 | 91.55 ▼5.42 | 39.02 ▼5.79 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 1.98 ▼0.04 | 42.29 ▲2.14 | 37.51 ▲2.61 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.30 ▲0.22 | 687.57 ▲57.34 | 50.86 ▼0.65 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.15 ▼0.01 | 102.50 ▲1.01 | 48.98 ▲6.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woo-fattureincloud/inc/conn_curl.php
- > /wp-content/plugins/woo-fattureincloud/inc/conn_curl_email.php
- 21× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-fattureincloud/inc/refresh.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/woo-fattureincloud/inc/attiva_connessione.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woo-fattureincloud/inc/vat_number.php:7
- > PHP Notice
Undefined variable: url in wp-content/plugins/woo-fattureincloud/inc/conn_curl.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-fattureincloud/inc/connetti.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/woo-fattureincloud/inc/reset_dati_connessione.php:3
- > PHP Notice
Undefined variable: api_key in wp-content/plugins/woo-fattureincloud/inc/conn_curl.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-fattureincloud/inc/put_data.php:3
- > PHP Notice
Undefined variable: api_uid in wp-content/plugins/woo-fattureincloud/inc/conn_curl.php on line 8
- > PHP Notice
Undefined variable: api_key in wp-content/plugins/woo-fattureincloud/inc/conn_curl_email.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
7 plugin tags: fattura, fatture elettroniche, fatture, fatturazione elettronica, cloud...
woo-fattureincloud/woo-fattureincloud.php 92% from 13 tests
Analyzing the main PHP file in "WooCommerce Fattureincloud" version 2.6.3
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected3,165 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 2,617 | 760 | 3,110 |
CSS | 1 | 7 | 0 | 28 |
JavaScript | 2 | 11 | 1 | 27 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 35 | 97.22% |
▷ Anonymous functions | 1 | 2.78% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/woo_fattureincloud.png | 3.19KB | 2.25KB | ▼ 29.36% |