Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼2.12ms] Passed 4 tests
This is a short check of server-side resources used by Amministrazione Aperta
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.16 | 47.73 ▼5.24 |
Dashboard /wp-admin | 3.81 ▲0.25 | 57.76 ▲3.72 |
Posts /wp-admin/edit.php | 3.86 ▲0.18 | 58.22 ▲2.12 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.19 | 100.12 ▼7.68 |
Media Library /wp-admin/upload.php | 3.67 ▲0.18 | 44.63 ▲2.31 |
Uffici & Settori /wp-admin/edit-tags.php?taxonomy=areesettori&post_type=spesa | 3.66 | 43.20 |
Nuova voce /wp-admin/post-new.php?post_type=spesa | 3.86 | 64.49 |
Incarichi /wp-admin/edit.php?post_type=incarico | 3.71 | 47.22 |
Concessioni /wp-admin/edit.php?post_type=spesa | 3.71 | 45.91 |
Nuova voce /wp-admin/post-new.php?post_type=incarico | 3.87 | 57.74 |
Uffici & Settori /wp-admin/edit-tags.php?taxonomy=areesettori&post_type=incarico | 3.66 | 44.06 |
Amministrazione Aperta /wp-admin/options-general.php?page=options_page_slug | 3.64 | 41.24 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
aa_version_number |
tipo_incarico_children |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Amministrazione Aperta: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲100 | 14.72 ▲0.35 | 1.58 ▼0.28 | 41.77 ▼2.77 |
Dashboard /wp-admin | 2,261 ▲90 | 5.54 ▼0.08 | 90.98 ▼3.18 | 39.44 ▼1.51 |
Posts /wp-admin/edit.php | 2,166 ▲66 | 2.02 ▼0.02 | 40.94 ▲2.06 | 36.44 ▼1.24 |
Add New Post /wp-admin/post-new.php | 1,581 ▲41 | 17.61 ▼0.67 | 674.96 ▲55.78 | 54.33 ▲4.06 |
Media Library /wp-admin/upload.php | 1,469 ▲69 | 4.21 ▼0.05 | 104.65 ▼4.71 | 45.97 ▼0.86 |
Uffici & Settori /wp-admin/edit-tags.php?taxonomy=areesettori&post_type=spesa | 1,343 | 2.15 | 30.57 | 31.19 |
Nuova voce /wp-admin/post-new.php?post_type=spesa | 2,538 | 7.63 | 168.57 | 69.31 |
Incarichi /wp-admin/edit.php?post_type=incarico | 1,146 | 1.93 | 31.00 | 30.94 |
Concessioni /wp-admin/edit.php?post_type=spesa | 1,138 | 1.93 | 30.85 | 32.57 |
Nuova voce /wp-admin/post-new.php?post_type=incarico | 2,611 | 7.64 | 170.15 | 52.97 |
Uffici & Settori /wp-admin/edit-tags.php?taxonomy=areesettori&post_type=incarico | 1,337 | 2.14 | 26.93 | 29.39 |
Amministrazione Aperta /wp-admin/options-general.php?page=options_page_slug | 841 | 2.03 | 25.63 | 28.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- aa_version_number
- tipo_incarico_children
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 4× 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/amministrazione-aperta/fields_incarichi.php:75
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amministrazione-aperta/settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amministrazione-aperta/settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amministrazione-aperta/fields_spese.php:99
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 24 tag instead of maximum 10
amministrazione-aperta/amministrazioneaperta.php 85% from 13 tests
"Amministrazione Aperta" version 3.8.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("amministrazione-aperta.php" instead of "amministrazioneaperta.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 175 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected6,222 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 33 | 1,252 | 5,844 | 5,073 |
CSS | 4 | 95 | 80 | 603 |
PHP | 5 | 63 | 31 | 546 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 2 | 66.67% |
▷ Concrete classes | 1 | 33.33% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 6 | 66.67% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 3 | 30.00% |
▷ Anonymous functions | 7 | 70.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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 2.72KB | 0.13KB | ▼ 95.40% |
css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
css/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |