Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.65MB] [CPU: ▼0.03ms] Passed 4 tests
A check of server-side resources used by ANAC XML Bandi di Gara
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.60 | 44.65 ▲6.29 |
Dashboard /wp-admin | 3.99 ▲0.69 | 51.19 ▲2.87 |
Posts /wp-admin/edit.php | 4.05 ▲0.69 | 49.30 ▲4.19 |
Add New Post /wp-admin/post-new.php | 6.71 ▲0.82 | 77.70 ▼13.49 |
Media Library /wp-admin/upload.php | 3.86 ▲0.63 | 43.31 ▲8.58 |
Importa /wp-admin/edit.php?post_type=avcp&page=anac_import | 3.82 | 36.54 |
Nuova voce /wp-admin/post-new.php?post_type=avcp | 4.13 | 63.28 |
Uffici & Settori /wp-admin/edit-tags.php?taxonomy=areesettori&post_type=avcp | 3.85 | 41.47 |
Impostazioni /wp-admin/edit.php?post_type=avcp&page=wpgov_avcp | 3.84 | 40.64 |
Validazione /wp-admin/edit.php?post_type=avcp&page=avcp_v_dataset | 3.86 | 39.84 |
Ditte /wp-admin/edit-tags.php?taxonomy=ditte&post_type=avcp | 3.85 | 40.80 |
Bandi /wp-admin/edit.php?post_type=avcp | 3.99 | 41.84 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- The plugin illegally modified 1 file (4.75KB) outside of "wp-content/plugins/avcp/" and "wp-content/uploads/"
- (new file) avcp/index.php
Filesystem: 126 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
avcp_version_number |
annirif_children |
widget_recent-comments |
can_compress_scripts |
anac_log |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
ANAC XML Bandi di Gara: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲60 | 14.17 ▼0.24 | 1.59 ▼0.23 | 38.76 ▼2.10 |
Dashboard /wp-admin | 2,252 ▲72 | 5.59 ▲0.01 | 84.50 ▼4.42 | 41.42 ▲0.15 |
Posts /wp-admin/edit.php | 2,154 ▲54 | 2.02 ▼0.08 | 36.00 ▲1.31 | 36.59 ▼2.65 |
Add New Post /wp-admin/post-new.php | 1,576 ▲48 | 23.10 ▼0.36 | 664.75 ▼19.13 | 53.20 ▼0.95 |
Media Library /wp-admin/upload.php | 1,454 ▲54 | 4.20 ▲0.02 | 109.08 ▲9.81 | 48.41 ▲4.48 |
Importa /wp-admin/edit.php?post_type=avcp&page=anac_import | 836 | 2.14 | 28.57 | 37.99 |
Nuova voce /wp-admin/post-new.php?post_type=avcp | 3,007 | 7.72 | 187.85 | 79.62 |
Uffici & Settori /wp-admin/edit-tags.php?taxonomy=areesettori&post_type=avcp | 1,371 | 2.30 | 29.58 | 32.29 |
Impostazioni /wp-admin/edit.php?post_type=avcp&page=wpgov_avcp | 933 | 2.01 | 24.23 | 30.33 |
Validazione /wp-admin/edit.php?post_type=avcp&page=avcp_v_dataset | 1,140 | 2.29 | 23.57 | 29.83 |
Ditte /wp-admin/edit-tags.php?taxonomy=ditte&post_type=avcp | 1,358 | 2.35 | 29.75 | 32.90 |
Bandi /wp-admin/edit.php?post_type=avcp | 1,179 | 2.04 | 30.54 | 30.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- avcp_version_number
- anac_log
- annirif_children
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/avcp/opendata/graph.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/avcp/avcp_metabox_generator.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function query_posts() in wp-content/plugins/avcp/utilities/update_6.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/avcp/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/avcp/taxfilteringbackend.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/avcp/tablegen.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/avcp/avcp.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/avcp/opendata/3.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function query_posts() in wp-content/plugins/avcp/opendata/4.php:19
- > PHP Fatal error
Uncaught Error: Class 'Tax_Meta_Class' not found in wp-content/plugins/avcp/avcp_taxonomy_fields.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/avcp/avcp_create_taxonomy.php:3
- > PHP Fatal error
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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=ditte&post_type=avcp
- > Network (severe)
wp-content/plugins/avcp/Tax-meta-class/css/Tax-meta-class.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=ditte&post_type=avcp
- > Network (severe)
wp-content/plugins/avcp/Tax-meta-class/js/tax-meta-clss.js - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=ditte&post_type=avcp
- > Deprecation (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1 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.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
avcp/avcp.php Passed 13 tests
"ANAC XML Bandi di Gara" version 7.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
113 characters long description:
Generatore XML per ANAC (ex AVCP) e gestione bandi di gara e contratti (Legge 190/2012 art. 1.32 & D.Lgs 33/2013)
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 detected13,936 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 934 | 918 | 7,627 |
PHP | 24 | 583 | 898 | 3,072 |
CSS | 14 | 533 | 372 | 2,511 |
XSD | 6 | 0 | 13 | 472 |
PO File | 7 | 63 | 77 | 248 |
Markdown | 1 | 4 | 0 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 203.00 |
▷ Minimum class complexity | 203.00 |
▷ Maximum class complexity | 203.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 72 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 72 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 55 | |
▷ Named functions | 44 | 80.00% |
▷ Anonymous functions | 11 | 20.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
43 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
meta-box-class/js/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
meta-box-class/js/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
meta-box-class/js/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
images/sort_asc.png | 1.09KB | 0.25KB | ▼ 77.46% |
images/wpgov.png | 0.43KB | 0.25KB | ▼ 41.67% |