Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.89MB] [CPU: ▼35.03ms] Passed 4 tests
This is a short check of server-side resources used by PAFacile
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 25.83 ▼12.23 |
Dashboard /wp-admin | 3.05 ▼0.25 | 22.38 ▼25.84 |
Posts /wp-admin/edit.php | 3.06 ▼0.30 | 25.04 ▼24.18 |
Add New Post /wp-admin/post-new.php | 3.05 ▼2.83 | 23.97 ▼76.59 |
Media Library /wp-admin/upload.php | 3.05 ▼0.17 | 21.38 ▼13.50 |
Informazioni /wp-admin/admin.php?page=tosendit-pa | 3.06 | 24.01 |
Configurazione /wp-admin/admin.php?page=tosendit-pa?settings | 3.06 | 24.35 |
Server storage [IO: ▲0.97MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 155 new files
Database: 15 new tables, 8 new options
New tables |
---|
wp_pa_users2org |
wp_pa_organigramma |
wp_tosendit_log |
wp_pa_ordinanze |
wp_pa_tipo_atto |
wp_pa_sovvenzioni |
wp_pa_delibere |
wp_pa_organi_rel |
wp_pa_incarichi |
wp_pa_determine |
... |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
PAFacile_dbVersion |
theysaidso_admin_options |
widget_recent-posts |
PAFacile_Credits |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
PAFacile: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲88 | 14.47 ▲0.02 | 1.65 ▼0.13 | 43.42 ▲1.80 |
Dashboard /wp-admin | 2,235 ▲44 | 4.94 ▲0.06 | 100.81 ▼3.33 | 65.24 ▲22.53 |
Posts /wp-admin/edit.php | 2,118 ▲26 | 2.01 ▼0.03 | 38.65 ▼0.75 | 37.66 ▲3.28 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.21 ▲0.04 | 696.77 ▲47.00 | 44.39 ▼23.00 |
Media Library /wp-admin/upload.php | 1,417 ▲26 | 4.12 ▼0.07 | 96.36 ▼1.39 | 70.04 ▲26.92 |
Informazioni /wp-admin/admin.php?page=tosendit-pa | 1,283 | 1.95 | 28.15 | 32.11 |
Configurazione /wp-admin/admin.php?page=tosendit-pa?settings | 2,475 | 1.92 | 41.11 | 54.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method toSendItPAFacile::doSave() should not be called statically
- The uninstall procedure failed, leaving 15 tables in the database
- wp_pa_ordinanze
- wp_tosendit_log
- wp_tosendit_attachs
- wp_pa_delibere
- wp_pa_sovvenzioni
- wp_pa_bandi
- wp_pa_organi
- wp_pa_determine
- wp_pa_tipo_atto
- wp_pa_organigramma
- ...
- Zombie WordPress options detected upon uninstall: 8 options
- PAFacile_Credits
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- PAFacile_dbVersion
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method toSendItPAFacile::doSave() should not be called statically
- > GET request to /wp-admin/admin.php?page=tosendit-pa
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method PAFacilePages::pageWelcome() should not be called statically
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+421
Undefined variable: albopretorio_id
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+430
Undefined variable: AlboPretorioPrivacy
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+454
Undefined variable: certificazione_pubblicazione_1
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+475
Undefined variable: certificazione_pubblicazione_0
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Deprecated in wp-content/plugins/pafacile/toSendItPAFacilePages.php+630
Non-static method PAFacilePages::pageSettingsMetadata() should not be called statically
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+492
Undefined variable: albopretorio_ldc
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+492
Undefined variable: albopretorio_ddc
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+504
Undefined variable: bandi_id
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+508
Undefined variable: bandi_ldc
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+508
Undefined variable: bandi_ddc
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+520
Undefined variable: delibere_id
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+524
Undefined variable: delibere_ldc
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+524
Undefined variable: delibere_ddc
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+536
Undefined variable: determine_id
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+540
Undefined variable: determine_ldc
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+540
Undefined variable: determine_ddc
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+552
Undefined variable: incarichi_id
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+566
Undefined variable: incarichi_ldc
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+566
Undefined variable: incarichi_ddc
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+578
Undefined variable: ordinanze_id
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+582
Undefined variable: ordinanze_ldc
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+582
Undefined variable: ordinanze_ddc
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+594
Undefined variable: organi_id
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+598
Undefined variable: organi_ldc
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+598
Undefined variable: organi_ddc
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+610
Undefined variable: organigramma_id
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+614
Undefined variable: organigramma_ldc
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+614
Undefined variable: organigramma_ddc
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+626
Undefined variable: sovvenzioni_id
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+626
Undefined variable: rispostaSovvenzioni
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+630
Undefined variable: sovvenzioni_ldc
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+630
Undefined variable: sovvenzioni_ddc
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+712
Undefined variable: LivelloHeader
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tosendit-pa?settings
- > Notice in wp-content/plugins/pafacile/toSendItPAFacilePages.php+727
Undefined variable: addDoublinCoreHeaders
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 32× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/pafacile/delibere/dettaglio.php
- > /wp-content/plugins/pafacile/tipiOrgani/elenco.php
- > /wp-content/plugins/pafacile/welcome.php
- > /wp-content/plugins/pafacile/ordinanze/elenco.php
- > /wp-content/plugins/pafacile/incarichiProfessionali/dettaglio.php
- > /wp-content/plugins/pafacile/alboPretorio/elenco.php
- > /wp-content/plugins/pafacile/delibere/elenco.php
- > /wp-content/plugins/pafacile/public-contents/BandiGare.php
- > /wp-content/plugins/pafacile/ordinanze/dettaglio.php
- > /wp-content/plugins/pafacile/public-contents/AlboPretorio.php
- 22× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'WP_PLUGIN_DIR/pafacile/toSendIt.php' (include_path='.:/usr/share/php') in wp-content/plugins/pafacile/tosendit-pa.php on line 42
- > PHP Warning
Use of undefined constant TOSENDIT_PAFACILE_ORDINANZE_HANDLER - assumed 'TOSENDIT_PAFACILE_ORDINANZE_HANDLER' (this will throw an Error in a future version of PHP) in wp-content/plugins/pafacile/doSave.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pafacile/mce/plugins.php:31
- > PHP Warning
Use of undefined constant PAFACILE_PLUING_DIRECTORY - assumed 'PAFACILE_PLUING_DIRECTORY' (this will throw an Error in a future version of PHP) in wp-content/plugins/pafacile/google-analytics/index.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pafacile/ajax/actions.php:3
- > PHP Warning
Use of undefined constant TOSENDIT_PAFACILE_DETERMINE_HANDLER - assumed 'TOSENDIT_PAFACILE_DETERMINE_HANDLER' (this will throw an Error in a future version of PHP) in wp-content/plugins/pafacile/doSave.php on line 6
- > PHP Warning
Use of undefined constant TOSENDIT_PAFACILE_BANDI_HANDLER - assumed 'TOSENDIT_PAFACILE_BANDI_HANDLER' (this will throw an Error in a future version of PHP) in wp-content/plugins/pafacile/doSave.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pafacile/PAFacileOpenData.php:6
- > PHP Fatal error
require_once(): Failed opening required 'PAFACILE_PLUING_DIRECTORY/google-analytics/api.php' (include_path='.:/usr/share/php') in wp-content/plugins/pafacile/google-analytics/index.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'toSendItGenericMethods' not found in wp-content/plugins/pafacile/definitions.php:139
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=tosendit-pa
- > Network (severe)
http://www.tosend.it/images/logo.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Una delle pagine di configuraizione di PAFacile), #2 (Particolare della scheda dell'albo pretorio on-line), #3 (Particolare della scheda della gestione dei bandi di gara, concorsi e graduatorie), #4 (Altro particolare della scheda di gestione per i Bandi di gara, concorsi e graduatorie)
- Tags: There are too many tags (11 tag instead of maximum 10)
pafacile/tosendit-pa.php 85% from 13 tests
Analyzing the main PHP file in "PAFacile" version 2.6.1
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 426 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pafacile.php" instead of "tosendit-pa.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected12,756 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 54 | 1,287 | 1,035 | 10,036 |
JavaScript | 6 | 188 | 98 | 1,970 |
CSS | 5 | 131 | 26 | 750 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 32.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 5.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 176 | |
▷ Static methods | 153 | 86.93% |
▷ Public methods | 159 | 90.34% |
▷ Protected methods | 5 | 2.84% |
▷ Private methods | 12 | 6.82% |
Functions | 62 | |
▷ Named functions | 62 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 96 | |
▷ Global constants | 96 | 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
48 PNG files occupy 0.34MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ft/ppt.png | 2.40KB | 2.04KB | ▼ 15.18% |
mce/img/ordinanze_box.png | 6.12KB | 2.93KB | ▼ 52.06% |
screenshot-4.png | 23.64KB | 9.20KB | ▼ 61.09% |
images/delibere.png | 0.62KB | 0.75KB | 0.00% |
images/ft/unknown.png | 0.93KB | 0.85KB | ▼ 7.99% |