Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/prenotazioni/functions.inc.php+106
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.86ms] Passed 4 tests
Analyzing server-side resources used by Prenotazioni
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.57 ▲2.60 |
Dashboard /wp-admin | 3.38 ▲0.03 | 53.59 ▼9.33 |
Posts /wp-admin/edit.php | 3.33 ▼0.03 | 38.82 ▼14.23 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 90.02 ▼10.46 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 44.73 ▲8.57 |
Bacheca /wp-admin/admin.php?page=bacheca | 3.27 | 33.97 |
Gestione Prenotazioni /wp-admin/admin.php?page=gest_prenotazioni | 3.26 | 34.27 |
Mie Prenotazioni /wp-admin/admin.php?page=myprenotazioni | 3.27 | 34.81 |
Parametri /wp-admin/admin.php?page=config | 3.28 | 37.00 |
Spazi /wp-admin/edit.php?post_type=spazi | 3.35 | 40.01 |
Server storage [IO: ▲1.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 55 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_prenotazioni_spazi |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
opt_PrenotazioniMail |
opt_PrenotazioniParametri |
widget_prenotazioni |
Browser metrics Passed 4 tests
An overview of browser requirements for Prenotazioni
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,023 ▲277 | 14.57 ▲0.35 | 9.46 ▲7.41 | 39.09 ▼6.76 |
Dashboard /wp-admin | 2,296 ▲95 | 5.46 ▲0.54 | 103.87 ▼9.45 | 91.61 ▲44.44 |
Posts /wp-admin/edit.php | 2,196 ▲93 | 2.42 ▲0.39 | 49.05 ▲8.07 | 34.89 ▼4.10 |
Add New Post /wp-admin/post-new.php | 1,763 ▲231 | 23.53 ▲0.26 | 800.34 ▲120.94 | 36.58 ▼27.95 |
Media Library /wp-admin/upload.php | 1,478 ▲78 | 4.87 ▲0.72 | 114.51 ▲13.70 | 96.20 ▲47.57 |
Bacheca /wp-admin/admin.php?page=bacheca | 1,486 | 11.15 | 463.39 | 137.70 |
Gestione Prenotazioni /wp-admin/admin.php?page=gest_prenotazioni | 1,179 | 2.35 | 33.28 | 39.70 |
Mie Prenotazioni /wp-admin/admin.php?page=myprenotazioni | 927 | 2.20 | 40.09 | 56.82 |
Parametri /wp-admin/admin.php?page=config | 1,644 | 2.69 | 65.31 | 48.51 |
Spazi /wp-admin/edit.php?post_type=spazi | 1,184 | 2.43 | 37.58 | 57.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_prenotazioni_spazi
- The uninstall procedure has failed, leaving 9 options in the database
- db_upgraded
- widget_prenotazioni
- widget_theysaidso_widget
- widget_recent-posts
- opt_PrenotazioniMail
- theysaidso_admin_options
- widget_recent-comments
- opt_PrenotazioniParametri
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=gest_prenotazioni
- > Warning in wp-content/plugins/prenotazioni/lib/tab_pre_gg.php+81
Division by zero
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/prenotazioni/Prenotazioni.widget.php
- > /wp-content/plugins/prenotazioni/functions.inc.php
- > /wp-content/plugins/prenotazioni/Prenotazioni.php
- > /wp-content/plugins/prenotazioni/lib/frontend.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=bacheca
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=bacheca
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
- > GET request to /wp-admin/admin.php?page=bacheca
- > Deprecation (warning) in unknown
https://static.xx.fbcdn.net/rsrc.php/v3/y7/r/kOkd6HZtIYJ.js?_nc_x=Ij3Wp8lg5Kz 271 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
- > GET request to /wp-admin/admin.php?page=bacheca
- > Console-api (severe) in unknown
https://static.xx.fbcdn.net/rsrc.php/v3/y7/r/kOkd6HZtIYJ.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."
- > GET request to /wp-admin/admin.php?page=bacheca
- > Rendering (warning) in unknown
https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2FPrenotazioni-756571287730947%2F&tabs=timeline&width=340&height=500&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true&appId=315161832278306 - [.WebGL-0x238801077f00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: prenotazioni aule, booking meeting rooms, prenotazione spazi
prenotazioni/Prenotazioni.php 92% from 13 tests
This is the main PHP file of "Prenotazioni" version 1.7.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("prenotazioni.php" instead of "Prenotazioni.php")
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
Success! There were no dangerous files found in this plugin8,790 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 38 | 75 | 3,617 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 7 | 59 | 175 | 2,047 |
JavaScript | 4 | 7 | 24 | 455 |
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.35 |
Average class complexity | 30.25 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 3 | 6.00% |
▷ Public methods | 49 | 98.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
26 PNG files occupy 0.15MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/orario.png | 1.62KB | 1.05KB | ▼ 35.37% |
img/opzioni.png | 2.28KB | 1.54KB | ▼ 32.36% |
img/spazi.png | 2.88KB | 2.32KB | ▼ 19.45% |
img/logo.png | 1.67KB | 1.62KB | ▼ 2.81% |
img/help.png | 1.92KB | 1.54KB | ▼ 19.72% |