83% amministrazione-aperta

Code Review | Amministrazione Aperta

WordPress plugin Amministrazione Aperta scored83%from 54 tests.

About plugin

  • Plugin page: amministrazione-a...
  • Plugin version: 3.8.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1
  • WordPress version: 6.3.1
  • First release: Apr 2, 2013
  • Latest release: Oct 13, 2022
  • Number of updates: 122
  • Update frequency: every 28.5 days
  • Top authors: Milmor (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /11,204 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.1647.73 ▼5.24
Dashboard /wp-admin3.81 ▲0.2557.76 ▲3.72
Posts /wp-admin/edit.php3.86 ▲0.1858.22 ▲2.12
Add New Post /wp-admin/post-new.php6.33 ▲0.19100.12 ▼7.68
Media Library /wp-admin/upload.php3.67 ▲0.1844.63 ▲2.31
Uffici & Settori /wp-admin/edit-tags.php?taxonomy=areesettori&post_type=spesa3.6643.20
Nuova voce /wp-admin/post-new.php?post_type=spesa3.8664.49
Incarichi /wp-admin/edit.php?post_type=incarico3.7147.22
Concessioni /wp-admin/edit.php?post_type=spesa3.7145.91
Nuova voce /wp-admin/post-new.php?post_type=incarico3.8757.74
Uffici & Settori /wp-admin/edit-tags.php?taxonomy=areesettori&post_type=incarico3.6644.06
Amministrazione Aperta /wp-admin/options-general.php?page=options_page_slug3.6441.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲10014.72 ▲0.351.58 ▼0.2841.77 ▼2.77
Dashboard /wp-admin2,261 ▲905.54 ▼0.0890.98 ▼3.1839.44 ▼1.51
Posts /wp-admin/edit.php2,166 ▲662.02 ▼0.0240.94 ▲2.0636.44 ▼1.24
Add New Post /wp-admin/post-new.php1,581 ▲4117.61 ▼0.67674.96 ▲55.7854.33 ▲4.06
Media Library /wp-admin/upload.php1,469 ▲694.21 ▼0.05104.65 ▼4.7145.97 ▼0.86
Uffici & Settori /wp-admin/edit-tags.php?taxonomy=areesettori&post_type=spesa1,3432.1530.5731.19
Nuova voce /wp-admin/post-new.php?post_type=spesa2,5387.63168.5769.31
Incarichi /wp-admin/edit.php?post_type=incarico1,1461.9331.0030.94
Concessioni /wp-admin/edit.php?post_type=spesa1,1381.9330.8532.57
Nuova voce /wp-admin/post-new.php?post_type=incarico2,6117.64170.1552.97
Uffici & Settori /wp-admin/edit-tags.php?taxonomy=areesettori&post_type=incarico1,3372.1426.9329.39
Amministrazione Aperta /wp-admin/options-general.php?page=options_page_slug8412.0325.6328.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

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
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript331,2525,8445,073
CSS49580603
PHP56331546

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 code0.28
Average class complexity5.00
▷ Minimum class complexity4.00
▷ Maximum class complexity6.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes266.67%
▷ Concrete classes133.33%
▷ Final classes00.00%
Methods9
▷ Static methods666.67%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions330.00%
▷ Anonymous functions770.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png2.72KB0.13KB▼ 95.40%
css/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
css/images/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%