Benchmarks
Plugin footprint 22% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/albo-pretorio-on-line/AlboPretorio.php+2034
Undefined variable: opt_AP_DefaultSoggetti
Server metrics [RAM: ▲1.57MB] [CPU: ▲0.60ms] Passed 4 tests
An overview of server-side resources used by Albo Pretorio On line
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.85 ▲1.39 | 44.03 ▲2.82 |
Dashboard /wp-admin | 4.95 ▲1.60 | 53.19 ▼8.16 |
Posts /wp-admin/edit.php | 5.00 ▲1.65 | 60.00 ▲13.20 |
Add New Post /wp-admin/post-new.php | 7.55 ▲1.66 | 93.94 ▼3.61 |
Media Library /wp-admin/upload.php | 4.86 ▲1.64 | 47.85 ▲11.35 |
Soggetti /wp-admin/admin.php?page=soggetti | 4.93 | 52.66 |
Parametri /wp-admin/admin.php?page=configAlboP | 4.83 | 45.14 |
Categorie /wp-admin/admin.php?page=categorie | 4.89 | 42.15 |
Enti /wp-admin/admin.php?page=enti | 4.93 | 42.37 |
Tipi di Files /wp-admin/admin.php?page=tipifiles | 4.91 | 43.74 |
Unità Organizzative /wp-admin/admin.php?page=unitao | 4.93 | 43.99 |
Utility /wp-admin/admin.php?page=utilityAlboP | 5.33 | 44.24 |
Permessi /wp-admin/admin.php?page=permessiAlboP | 4.88 | 41.79 |
Tabelle /wp-admin/admin.php?page=tabelle | 4.85 | 41.70 |
Atti /wp-admin/admin.php?page=atti | 5.83 | 48.78 |
Server storage [IO: ▲2.93MB] [DB: ▲0.01MB] 67% from 3 tests
Input-output and database impact of this plugin
These are issues you should consider
- There were 3 files (0.07KB) illegally modified outside of "wp-content/plugins/albo-pretorio-on-line/" and "wp-content/uploads/"
- (new file) robots.txt
- (new file) wp-content/AlboOnLine/BackupDatiAlbo/.empty
- (new file) wp-content/AlboOnLine/OblioDatiAlbo/.empty
Filesystem: 415 new files
Database: 8 new tables, 40 new options
New tables |
---|
wp_albopretorio_categorie |
wp_albopretorio_resprocedura |
wp_albopretorio_enti |
wp_albopretorio_allegati |
wp_albopretorio_atti |
wp_albopretorio_attimeta |
wp_albopretorio_log |
wp_albopretorio_unitaorganizzative |
New WordPress options |
---|
opt_AP_RuoliPulsVisualizzaAtto |
db_upgraded |
opt_AP_Versione |
opt_AP_RuoliPulsGruppi |
opt_AP_RestApi |
opt_AP_LivelloTitoloPagina |
opt_AP_Allegati |
widget_albopretorio |
opt_AP_AutoShortcode |
opt_AP_ColonneFE |
... |
Browser metrics Passed 4 tests
Albo Pretorio On line: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,033 ▲272 | 14.15 ▼0.20 | 6.55 ▲4.93 | 36.77 ▼5.96 |
Dashboard /wp-admin | 2,326 ▲146 | 5.19 ▼0.41 | 98.95 ▼0.35 | 92.69 ▲47.76 |
Posts /wp-admin/edit.php | 2,241 ▲144 | 2.46 ▲0.44 | 41.86 ▲5.60 | 53.59 ▲19.85 |
Add New Post /wp-admin/post-new.php | 1,638 ▲110 | 23.39 ▲0.45 | 722.07 ▲48.44 | 97.43 ▲44.15 |
Media Library /wp-admin/upload.php | 1,522 ▲122 | 4.68 ▲0.46 | 99.06 ▼3.40 | 86.24 ▲41.00 |
Soggetti /wp-admin/admin.php?page=soggetti | 1,188 | 2.61 | 46.32 | 45.27 |
Parametri /wp-admin/admin.php?page=configAlboP | 2,610 | 4.58 | 87.56 | 133.83 |
Categorie /wp-admin/admin.php?page=categorie | 1,161 | 2.56 | 45.18 | 34.90 |
Enti /wp-admin/admin.php?page=enti | 1,187 | 2.43 | 42.76 | 38.45 |
Tipi di Files /wp-admin/admin.php?page=tipifiles | 1,355 | 3.61 | 58.63 | 84.72 |
Unità Organizzative /wp-admin/admin.php?page=unitao | 1,178 | 2.46 | 42.88 | 37.49 |
Utility /wp-admin/admin.php?page=utilityAlboP | 1,436 | 2.40 | 41.07 | 65.88 |
Permessi /wp-admin/admin.php?page=permessiAlboP | 988 | 2.32 | 32.16 | 34.79 |
Tabelle /wp-admin/admin.php?page=tabelle | 1,288 | 2.71 | 54.84 | 74.02 |
Atti /wp-admin/admin.php?page=atti | 1,081 | 2.67 | 47.35 | 40.24 |
Uninstaller [IO: ▲2.93MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attentionZombie tables were found after uninstall: 8 tables Zombie WordPress options detected upon uninstall: 40 options
- The plugin did not uninstall correctly, leaving 415 files (2.93MB) in the plugin directory
- (new file) admin/atti.php
- (new file) AlboPretorioWidget.php
- (new file) admin/categorie.php
- (new file) admin/admin.php
- (new file) AlboPretorioFunctions.php
- (new file) AlboPretorio.php
- (new file) admin/allegati.php
- (new file) Repertori/.empty
- (new file) admin/allegati_multi.php
- (new file) admin/enti.php
- ...
- wp_albopretorio_log
- wp_albopretorio_unitaorganizzative
- wp_albopretorio_attimeta
- wp_albopretorio_atti
- wp_albopretorio_allegati
- wp_albopretorio_enti
- wp_albopretorio_resprocedura
- wp_albopretorio_categorie
- opt_AP_ColonneFE
- opt_AP_OldInterfaccia
- opt_AP_LivelloTitoloFiltri
- opt_AP_NumeroProgressivo
- opt_AP_LogOp
- opt_AP_PAtto
- opt_AP_ColoreDispari
- opt_AP_RestApi_UrlEst
- widget_alboonlineac
- opt_AP_RestApi
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=soggetti
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
- > GET request to /wp-admin/admin.php?page=configAlboP
- > Notice in wp-content/plugins/albo-pretorio-on-line/AlboPretorio.php+1501
Undefined index: Data
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
The following issues need your attention
- 23× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/albo-pretorio-on-line/admin/visatto.php
- > /wp-content/plugins/albo-pretorio-on-line/admin/visatto_new.php
- > /wp-content/plugins/albo-pretorio-on-line/AlboPretorioWidget.php
- > /wp-content/plugins/albo-pretorio-on-line/admin/utility.php
- > /wp-content/plugins/albo-pretorio-on-line/AlboPretorioFunctions.php
- > /wp-content/plugins/albo-pretorio-on-line/admin/permessi.php
- > /wp-content/plugins/albo-pretorio-on-line/admin/gruppiatti.php
- > /wp-content/plugins/albo-pretorio-on-line/admin/visatto_new2.php
- > /wp-content/plugins/albo-pretorio-on-line/admin/enti.php
- > /wp-content/plugins/albo-pretorio-on-line/admin/gruppiatti_new2.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/albo-pretorio-on-line/admin/admin.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/albo-pretorio-on-line/inc/logaggiornamenti.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=tabelle
- > Network (severe)
wp-content/plugins/albo-pretorio-on-line/admin/css/images/ElaborazioneInCorso.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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
- Plugin Name: You should set the name of your plugin on the first line (
=== albo-pretorio-on-line ===
)
albo-pretorio-on-line/AlboPretorio.php 85% from 13 tests
"Albo Pretorio On line" version 4.6.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("albo-pretorio-on-line.php" instead of "AlboPretorio.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin30,748 lines of code in 137 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 1,323 | 2,473 | 18,625 |
JSON | 2 | 0 | 0 | 4,665 |
JavaScript | 16 | 25 | 329 | 2,239 |
HTML | 4 | 78 | 24 | 1,953 |
CSS | 14 | 91 | 41 | 1,652 |
PO File | 1 | 424 | 498 | 948 |
SVG | 66 | 0 | 64 | 666 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 101)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 199.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 553.00 |
Average method complexity | 9.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 101.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 118 | |
▷ Static methods | 9 | 7.63% |
▷ Public methods | 118 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 245 | |
▷ Named functions | 231 | 94.29% |
▷ Anonymous functions | 14 | 5.71% |
Constants | 78 | |
▷ Global constants | 78 | 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
178 PNG files occupy 0.18MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
css/build/src/icons/img/PNG/chevron-left.png | 0.28KB | 0.18KB | ▼ 36.40% |
css/build/src/icons/img/PNG/link.png | 0.37KB | 0.30KB | ▼ 17.55% |
css/build/src/icons/icons/img/PNG/external-link.png | 0.58KB | 0.39KB | ▼ 33.95% |
css/images/ui-icons_ef8c08_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |