72% immobiliare

Code Review | Immobiliare

WordPress plugin Immobiliare scored 72% from 54 tests.

About plugin

  • Plugin page: immobiliare
  • Plugin version: 2.8.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Jan 8, 2015
  • Latest release: Jun 8, 2022
  • Number of updates: 34
  • Update frequency: every 81.6 days
  • Top authors: rswstudio (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active / 4,750 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.47MB] [CPU: ▼4.77ms] Passed 4 tests

This is a short check of server-side resources used by Immobiliare
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲0.6546.13 ▲6.25
Dashboard /wp-admin3.83 ▲0.5338.33 ▼8.97
Posts /wp-admin/edit.php3.89 ▲0.5442.88 ▼9.78
Add New Post /wp-admin/post-new.php6.08 ▲0.2086.29 ▼6.56
Media Library /wp-admin/upload.php3.83 ▲0.6144.89 ▲13.20
Immobiliare /wp-admin/options-general.php?page=immobiliare3.8035.10
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.9837.56
Contratti /wp-admin/edit-tags.php?taxonomy=contratto&post_type=immobili3.8236.85
Località /wp-admin/edit-tags.php?taxonomy=comuni&post_type=immobili3.8234.60
Categorie /wp-admin/edit-tags.php?taxonomy=categoria&post_type=immobili3.8235.73
Aggiungi Immobile /wp-admin/post-new.php?post_type=immobili3.9049.34
Tag /wp-admin/edit-tags.php?taxonomy=immobili_tag&post_type=immobili3.8244.64
Tutti gli Immobili /wp-admin/edit.php?post_type=immobili3.7834.77
Tipologie /wp-admin/edit-tags.php?taxonomy=tipologia&post_type=immobili3.8237.33

Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_immobiliare_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Immobiliare
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲13513.57 ▼0.811.68 ▼0.2045.13 ▲5.20
Dashboard /wp-admin2,281 ▲934.90 ▼0.0597.92 ▼13.1675.15 ▲34.95
Posts /wp-admin/edit.php2,187 ▲982.05 ▲0.0142.00 ▼3.0441.95 ▲6.79
Add New Post /wp-admin/post-new.php1,754 ▲23524.31 ▲1.10724.29 ▲128.4352.59 ▼4.05
Media Library /wp-admin/upload.php1,477 ▲894.18 ▼0.1098.27 ▲1.1589.94 ▲44.93
Immobiliare /wp-admin/options-general.php?page=immobiliare1,1772.2124.7330.23
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins1,0132.0826.7426.25
Contratti /wp-admin/edit-tags.php?taxonomy=contratto&post_type=immobili1,3572.3327.3239.27
Località /wp-admin/edit-tags.php?taxonomy=comuni&post_type=immobili1,3572.3326.0631.43
Categorie /wp-admin/edit-tags.php?taxonomy=categoria&post_type=immobili1,3572.3327.9637.60
Aggiungi Immobile /wp-admin/post-new.php?post_type=immobili2,8507.77175.84134.42
Tag /wp-admin/edit-tags.php?taxonomy=immobili_tag&post_type=immobili1,3602.3329.3436.55
Tutti gli Immobili /wp-admin/edit.php?post_type=immobili1,2772.0137.1232.86
Tipologie /wp-admin/edit-tags.php?taxonomy=tipologia&post_type=immobili1,3602.3327.3536.83

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_immobiliare_widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=tipologia&post_type=immobili
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
    • > GET request to /wp-admin/edit.php?post_type=immobili
    • > Notice in wp-content/plugins/immobiliare/immobiliare.php+475
    Undefined index: immobili_rif
    • > GET request to /wp-admin/edit.php?post_type=immobili
    • > Notice in wp-content/plugins/immobiliare/immobiliare.php+476
    Undefined index: immobili_cameredaletto
    • > GET request to /wp-admin/edit.php?post_type=immobili
    • > Notice in wp-content/plugins/immobiliare/immobiliare.php+477
    Undefined index: immobili_mq
    • > GET request to /wp-admin/edit.php?post_type=immobili
    • > Notice in wp-content/plugins/immobiliare/immobiliare.php+478
    Undefined index: immobili_prezzo
    • > GET request to /wp-admin/edit.php?post_type=immobili
    • > Notice in wp-content/plugins/immobiliare/immobiliare.php+490
    Undefined variable: immobili_bagni
    • > GET request to /wp-admin/edit.php?post_type=immobili
    • > Notice in wp-content/plugins/immobiliare/immobiliare.php+583
    Undefined variable: array_prezzo
    • > GET request to /wp-admin/edit.php?post_type=immobili
    • > Notice in wp-content/plugins/immobiliare/immobiliare.php+583
    Undefined variable: array_camere
    • > GET request to /wp-admin/edit.php?post_type=immobili
    • > Notice in wp-content/plugins/immobiliare/immobiliare.php+583
    Undefined variable: array_mq

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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/immobiliare/immobiliare.php
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/immobiliare/immobiliare_shortcode.php:285
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/immobiliare/class-tgm-plugin-activation.php:161
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/immobiliare/immobiliare_widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/immobiliare/immobiliare_tassonomie.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/immobiliare/immobiliare_opzioni.php:152
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/immobiliare/immobiliare_filtri.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/immobiliare/immobiliare_metabox.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/immobiliare/immobiliare_pluginaggiuntivi.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === immobiliare === )
The official readme.txt might help

immobiliare/immobiliare.php Passed 13 tests

Analyzing the main PHP file in "Immobiliare" version 2.8.0
89 characters long description:
gestionale immobiliare per wordpress. Gestisci i tuoi immobili in modo semplice e veloce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected3,146 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP95158163,065
PO File1222777
CSS1114

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity45.20
▷ Minimum class complexity10.00
▷ Maximum class complexity113.00
Average method complexity5.60
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods48
▷ Static methods12.08%
▷ Public methods4287.50%
▷ Protected methods612.50%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
img/immobili.png0.82KB0.79KB▼ 3.34%