10% immobilcio-agenzie-immobiliari

Code Review | ImmobilCIO

WordPress plugin ImmobilCIO scored 10% from 54 tests.

About plugin

  • Plugin page: immobilcio-agenzi...
  • Plugin version: 0.8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.4-3.4
  • WordPress version: 6.3.1
  • First release: Feb 23, 2013
  • Latest release: Feb 27, 2013
  • Number of updates: 13
  • Update frequency: every 0.3 days
  • Top authors: KING_Hack (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,022 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/immobilcio-agenzie-immobiliari/index.php+767
    Methods with the same name as their class will not be constructors in a future version of PHP; ciowidget has a deprecated constructor

Server metrics [RAM: ▼1.60MB] [CPU: ▼51.18ms] Passed 4 tests

This is a short check of server-side resources used by ImmobilCIO
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.39 ▼1.075.11 ▼37.01
Dashboard /wp-admin2.41 ▼0.896.03 ▼44.95
Posts /wp-admin/edit.php2.41 ▼0.956.74 ▼36.84
Add New Post /wp-admin/post-new.php2.41 ▼3.487.34 ▼85.91
Media Library /wp-admin/upload.php2.41 ▼0.827.53 ▼27.49
Prices /wp-admin/edit-tags.php?taxonomy=price&post_type=singlehome2.416.84
Property /wp-admin/edit.php?post_type=singlehome2.417.68
Zone /wp-admin/edit-tags.php?taxonomy=zone&post_type=singlehome2.416.02
Type /wp-admin/edit-tags.php?taxonomy=type&post_type=singlehome2.417.61
Add New /wp-admin/post-new.php?post_type=singlehome2.416.13

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 54 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_ciowidget
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ImmobilCIO
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲15014.00 ▼0.6223.86 ▲22.0337.36 ▼7.83
Dashboard /wp-admin2,263 ▲755.86 ▲0.8495.76 ▼22.6265.44 ▲22.83
Posts /wp-admin/edit.php2,146 ▲571.99 ▼0.0238.70 ▲3.2035.38 ▲4.28
Add New Post /wp-admin/post-new.php1,731 ▲19824.37 ▲1.06606.78 ▲25.1069.95 ▲23.50
Media Library /wp-admin/upload.php1,445 ▲634.13 ▼0.1196.95 ▼4.3247.70 ▲3.66
Prices /wp-admin/edit-tags.php?taxonomy=price&post_type=singlehome1,3132.1524.5029.34
Property /wp-admin/edit.php?post_type=singlehome1,1471.9532.1726.90
Zone /wp-admin/edit-tags.php?taxonomy=zone&post_type=singlehome1,3162.1324.3830.65
Type /wp-admin/edit-tags.php?taxonomy=type&post_type=singlehome1,3192.1524.9928.55
Add New /wp-admin/post-new.php?post_type=singlehome3,1288.02185.04153.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/immobilcio-agenzie-immobiliari/index.php+767
    Methods with the same name as their class will not be constructors in a future version of PHP; ciowidget has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_ciowidget
    • widget_recent-comments

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
These server-side errors were triggered
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=singlehome
    • > Deprecated in wp-content/plugins/immobilcio-agenzie-immobiliari/index.php+767
    Methods with the same name as their class will not be constructors in a future version of PHP; ciowidget has a deprecated constructor

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
Almost there! Just fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/immobilcio-agenzie-immobiliari/index.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/immobilcio-agenzie-immobiliari/init.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/immobilcio-agenzie-immobiliari/admin/panel.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/post-new.php?post_type=singlehome
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,thickbox,shortcode,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/immobilcio-agenzie-immobiliari/js/cmb.js?ver=0.9.1:68:26)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,thickbox,shortcode,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,thickbox,shortcode,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=singlehome
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,underscore,thickbox,shortcode,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: widget, real estate, metabox, agenzie immobiliari, geolocalization...

immobilcio-agenzie-immobiliari/index.php 92% from 13 tests

The primary PHP file in "ImmobilCIO" version 0.8.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("immobilcio-agenzie-immobiliari.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,321 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP42792821,520
CSS21116417
PO File19696239
JavaScript32767145

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.40
Average class complexity47.50
▷ Minimum class complexity2.00
▷ Maximum class complexity150.00
Average method complexity8.58
▷ Minimum method complexity1.00
▷ Maximum method complexity93.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
39 PNG files occupy 0.73MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/linkedin.png4.90KB1.86KB▼ 62.03%
images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
admin/lib/images/pointer.png1.16KB1.25KB0.00%
screenshot-2.png51.69KB12.53KB▼ 75.77%
images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%