Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼1.85ms] Passed 4 tests
Server-side resources used by Amministrazione Trasparente
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 37.77 ▲0.65 |
Dashboard /wp-admin | 3.49 ▲0.15 | 48.81 ▼5.78 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 44.78 ▲0.69 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.36 | 85.21 ▼2.97 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 33.99 ▲1.74 |
Nuova voce /wp-admin/post-new.php?post_type=amm-trasparente | 6.24 | 82.89 |
Trasparenza /wp-admin/edit.php?post_type=amm-trasparente | 3.76 | 40.93 |
Tipologie /wp-admin/edit-tags.php?taxonomy=tipologie&post_type=amm-trasparente | 3.62 | 47.72 |
Impostazioni /wp-admin/edit.php?post_type=amm-trasparente&page=wpgov_at | 3.45 | 32.07 |
Server storage [IO: ▲0.15MB] [DB: ▲0.05MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_atwidget |
at_version_number |
db_upgraded |
tipologie_children |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
atGroupConf |
Browser metrics Passed 4 tests
An overview of browser requirements for Amministrazione Trasparente
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲100 | 14.29 ▼0.06 | 1.81 ▲0.31 | 42.55 ▼0.05 |
Dashboard /wp-admin | 2,249 ▲71 | 5.53 ▼0.19 | 85.91 ▼14.73 | 43.73 ▲4.44 |
Posts /wp-admin/edit.php | 2,154 ▲54 | 2.01 ▼0.01 | 36.04 ▲3.20 | 35.74 ▼0.39 |
Add New Post /wp-admin/post-new.php | 1,574 ▲48 | 23.70 ▲0.65 | 697.28 ▲3.00 | 65.99 ▲15.82 |
Media Library /wp-admin/upload.php | 1,454 ▲57 | 4.29 ▲0.12 | 99.13 ▲2.39 | 45.84 ▲0.21 |
Nuova voce /wp-admin/post-new.php?post_type=amm-trasparente | 6,234 | 19.91 | 923.86 | 38.77 |
Trasparenza /wp-admin/edit.php?post_type=amm-trasparente | 1,191 | 1.93 | 35.06 | 31.14 |
Tipologie /wp-admin/edit-tags.php?taxonomy=tipologie&post_type=amm-trasparente | 2,794 | 2.32 | 30.77 | 46.66 |
Impostazioni /wp-admin/edit.php?post_type=amm-trasparente&page=wpgov_at | 1,077 | 1.82 | 23.03 | 32.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% 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
- This plugin did not uninstall successfully, leaving 10 options in the database
- can_compress_scripts
- db_upgraded
- at_version_number
- atGroupConf
- tipologie_children
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_atwidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/amministrazione-trasparente/widget/widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/amministrazione-trasparente/inc/pasw2013/paswsingle-tipologie.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/amministrazione-trasparente/inc/pasw2013/paswarchive-tipologie.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amministrazione-trasparente/amministrazionetrasparente.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amministrazione-trasparente/redirector.php:3
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 34 tag instead of maximum 10
amministrazione-trasparente/amministrazionetrasparente.php 92% from 13 tests
The main PHP script in "Amministrazione Trasparente" version 8.1.2 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("amministrazione-trasparente.php" instead of "amministrazionetrasparente.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,189 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 251 | 57 | 1,620 |
JavaScript | 2 | 91 | 20 | 481 |
CSS | 1 | 10 | 0 | 82 |
Markdown | 1 | 4 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 10.00% |
Functions | 35 | |
▷ Named functions | 18 | 51.43% |
▷ Anonymous functions | 17 | 48.57% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/switch.png | 0.53KB | 0.64KB | 0.00% |