Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲1.42MB] [CPU: ▲260.31ms] 50% from 4 tests
A check of server-side resources used by Fattura24
Please take the time to fix the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 635.77ms on /wp-admin/admin.php?page=fatt-24-api-info)
- Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 260.31ms on /wp-admin/admin.php?page=fatt-24-app)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.60 ▲1.13 | 42.03 ▲4.33 |
Dashboard /wp-admin | 4.85 ▲1.55 | 391.74 ▲342.90 |
Posts /wp-admin/edit.php | 4.91 ▲1.55 | 392.04 ▲338.07 |
Add New Post /wp-admin/post-new.php | 7.40 ▲1.51 | 458.02 ▲355.93 |
Media Library /wp-admin/upload.php | 4.71 ▲1.48 | 545.90 ▲513.59 |
Fattura24 Tax /wp-admin/admin.php?page=fatt-24-tax | 4.68 | 331.73 |
Fattura24 /wp-admin/options-general.php?page=fatt-24-settings | 4.58 | 35.73 |
VideoGuides /wp-admin/admin.php?page=fatt-24-videos | 4.68 | 398.42 |
Warning /wp-admin/admin.php?page=fatt-24-warning | 4.68 | 324.19 |
Support /wp-admin/admin.php?page=fatt-24-support | 4.68 | 350.43 |
F24 Api Info /wp-admin/admin.php?page=fatt-24-api-info | 4.68 | 635.77 |
Mobile App /wp-admin/admin.php?page=fatt-24-app | 4.68 | 364.29 |
Server storage [IO: ▲2.57MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 65 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_f24_installation_log |
wp_fattura_tax |
New WordPress options |
---|
theysaidso_admin_options |
fatt-24-inv-create |
widget_theysaidso_widget |
db_upgraded |
fatt-24-add-vat-field |
can_compress_scripts |
recovery_mode_email_last_sent |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Fattura24
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲75 | 14.71 ▼0.02 | 1.71 ▼0.13 | 39.14 ▼1.22 |
Dashboard /wp-admin | 2,262 ▲82 | 5.67 ▼0.02 | 91.31 ▼3.65 | 42.99 ▲1.61 |
Posts /wp-admin/edit.php | 2,173 ▲70 | 2.16 ▲0.13 | 40.87 ▼2.85 | 38.12 ▼1.80 |
Add New Post /wp-admin/post-new.php | 1,580 ▲28 | 23.20 ▲5.02 | 657.86 ▲32.53 | 53.20 ▼15.00 |
Media Library /wp-admin/upload.php | 1,470 ▲67 | 4.23 ▲0.06 | 106.94 ▲7.60 | 49.41 ▲4.26 |
Fattura24 Tax /wp-admin/admin.php?page=fatt-24-tax | 1,204 | 2.19 | 24.55 | 33.18 |
Fattura24 /wp-admin/options-general.php?page=fatt-24-settings | 55 | 0.42 | 0.11 | 10.00 |
VideoGuides /wp-admin/admin.php?page=fatt-24-videos | 964 | 2.16 | 26.36 | 32.79 |
Warning /wp-admin/admin.php?page=fatt-24-warning | 961 | 2.17 | 27.22 | 53.28 |
Support /wp-admin/admin.php?page=fatt-24-support | 950 | 2.20 | 28.36 | 30.84 |
F24 Api Info /wp-admin/admin.php?page=fatt-24-api-info | 942 | 2.05 | 25.79 | 34.18 |
Mobile App /wp-admin/admin.php?page=fatt-24-app | 925 | 2.19 | 26.07 | 27.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_fattura_tax
- wp_f24_installation_log
- Zombie WordPress options were found after uninstall: 9 options
- widget_theysaidso_widget
- db_upgraded
- fatt-24-add-vat-field
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-comments
- fatt-24-inv-create
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=fatt-24-settings
- > Notice in wp-content/plugins/fattura24/src/settings.php+90
Trying to get property 'version' of non-object
- > GET request to /wp-admin/options-general.php?page=fatt-24-settings
- > Error in wp-content/plugins/fattura24/src/settings.php+92
Uncaught Error: Call to undefined function fattura24\wc_get_page_id() in wp-content/plugins/fattura24/src/settings.php:92
Stack trace:
#0 wp-content/plugins/fattura24/src/admin_scripts.php(52): fattura24\fatt_24_getInfo()
#1 wp-includes/class-wp-hook.php(310): fattura24\fatt_24_admin_scripts()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin-header.php(118): do_action()
#5 wp-admin/admin.php(239): require_once('/var/www/wordpr...')
#6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#7 {main}
thrown
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=fatt-24-settings
- > Network (severe)
wp-admin/options-general.php?page=fatt-24-settings - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: fatture, fatturazione, partita iva, fattura elettronica, codice fiscale
fattura24/fattura24.php 92% from 13 tests
The main PHP script in "Fattura24" version 6.2.9 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 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
Everything looks great! No dangerous files found in this plugin7,625 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 1,055 | 1,392 | 6,176 |
JavaScript | 12 | 90 | 80 | 681 |
Markdown | 1 | 167 | 0 | 612 |
CSS | 2 | 9 | 5 | 156 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 309 | |
▷ Named functions | 276 | 89.32% |
▷ Anonymous functions | 33 | 10.68% |
Constants | 86 | |
▷ Global constants | 86 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.11MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/logo-small.png | 0.98KB | 0.99KB | 0.00% |
assets/logo_orange.png | 4.35KB | 3.38KB | ▼ 22.28% |
assets/fattura24tax.png | 42.77KB | 15.70KB | ▼ 63.30% |
assets/img_iphone-app.png | 58.59KB | 44.17KB | ▼ 24.61% |
assets/android-app.png | 2.37KB | 2.37KB | 0.12% |