84% amministrazione-trasparente

Code Review | Amministrazione Trasparente

WordPress plugin Amministrazione Trasparente scored84%from 54 tests.

About plugin

  • Plugin page: amministrazione-t...
  • Plugin version: 8.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.4
  • WordPress version: 6.3.1
  • First release: Jul 3, 2013
  • Latest release: Oct 27, 2023
  • Number of updates: 263
  • Update frequency: every 14.3 days
  • Top authors: Milmor (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

2,000+ active /60,799 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2037.77 ▲0.65
Dashboard /wp-admin3.49 ▲0.1548.81 ▼5.78
Posts /wp-admin/edit.php3.61 ▲0.2544.78 ▲0.69
Add New Post /wp-admin/post-new.php6.24 ▲0.3685.21 ▼2.97
Media Library /wp-admin/upload.php3.42 ▲0.1933.99 ▲1.74
Nuova voce /wp-admin/post-new.php?post_type=amm-trasparente6.2482.89
Trasparenza /wp-admin/edit.php?post_type=amm-trasparente3.7640.93
Tipologie /wp-admin/edit-tags.php?taxonomy=tipologie&post_type=amm-trasparente3.6247.72
Impostazioni /wp-admin/edit.php?post_type=amm-trasparente&page=wpgov_at3.4532.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

Browser metrics Passed 4 tests

An overview of browser requirements for Amministrazione Trasparente
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲10014.29 ▼0.061.81 ▲0.3142.55 ▼0.05
Dashboard /wp-admin2,249 ▲715.53 ▼0.1985.91 ▼14.7343.73 ▲4.44
Posts /wp-admin/edit.php2,154 ▲542.01 ▼0.0136.04 ▲3.2035.74 ▼0.39
Add New Post /wp-admin/post-new.php1,574 ▲4823.70 ▲0.65697.28 ▲3.0065.99 ▲15.82
Media Library /wp-admin/upload.php1,454 ▲574.29 ▲0.1299.13 ▲2.3945.84 ▲0.21
Nuova voce /wp-admin/post-new.php?post_type=amm-trasparente6,23419.91923.8638.77
Trasparenza /wp-admin/edit.php?post_type=amm-trasparente1,1911.9335.0631.14
Tipologie /wp-admin/edit-tags.php?taxonomy=tipologie&post_type=amm-trasparente2,7942.3230.7746.66
Impostazioni /wp-admin/edit.php?post_type=amm-trasparente&page=wpgov_at1,0771.8223.0332.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

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


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
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.28
Average class complexity11.50
▷ Minimum class complexity8.00
▷ Maximum class complexity15.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods110.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
▷ Named functions1851.43%
▷ Anonymous functions1748.57%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings