72% immonex-kickstart

Code Review | immonex Kickstart

WordPress plugin immonex Kickstart scored72%from 54 tests.

About plugin

  • Plugin page: immonex-kickstart
  • Plugin version: 1.8.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 31, 2020
  • Latest release: Nov 10, 2023
  • Number of updates: 32
  • Update frequency: every 41.6 days
  • Top authors: immonex (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /6,973 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲3.57MB] [CPU: ▲19.18ms] Passed 4 tests

This is a short check of server-side resources used by immonex Kickstart
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /6.58 ▲3.1255.85 ▲16.86
Dashboard /wp-admin7.04 ▲3.7071.21 ▲12.20
Posts /wp-admin/edit.php7.08 ▲3.7377.67 ▲34.40
Add New Post /wp-admin/post-new.php9.97 ▲4.08113.23 ▲16.44
Media Library /wp-admin/upload.php6.97 ▲3.7463.39 ▲31.23
Types Of Use /wp-admin/edit-tags.php?taxonomy=inx_type_of_use&post_type=inx_property6.9758.85
Locations /wp-admin/edit-tags.php?taxonomy=inx_location&post_type=inx_property6.9755.68
Marketing Types /wp-admin/edit-tags.php?taxonomy=inx_marketing_type&post_type=inx_property6.9756.93
Settings /wp-admin/admin.php?page=immonex-kickstart_settings6.9554.58
Property Types /wp-admin/edit-tags.php?taxonomy=inx_property_type&post_type=inx_property6.9757.74
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins7.0857.03
Projects /wp-admin/edit-tags.php?taxonomy=inx_project&post_type=inx_property6.9755.04
Labels /wp-admin/edit-tags.php?taxonomy=inx_label&post_type=inx_property6.9757.60
Features /wp-admin/edit-tags.php?taxonomy=inx_feature&post_type=inx_property6.9753.10

Server storage [IO: ▲5.59MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 1,177 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
immonex-kickstart_options
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for immonex Kickstart
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,031 ▲25914.92 ▲0.3724.21 ▲22.2051.54 ▲7.01
Dashboard /wp-admin2,353 ▲1725.94 ▲0.3296.10 ▼17.9648.84 ▲2.75
Posts /wp-admin/edit.php2,274 ▲1742.58 ▲0.6446.80 ▲10.6639.86 ▼1.79
Add New Post /wp-admin/post-new.php1,646 ▲12023.49 ▲0.32602.31 ▼89.2932.32 ▼29.99
Media Library /wp-admin/upload.php1,570 ▲1704.62 ▲0.42102.95 ▼11.3349.35 ▲1.06
Types Of Use /wp-admin/edit-tags.php?taxonomy=inx_type_of_use&post_type=inx_property1,4212.2839.5137.09
Locations /wp-admin/edit-tags.php?taxonomy=inx_location&post_type=inx_property1,4452.2737.1937.12
/wp-admin/admin.php?page=#inx-submenu-separator280.410.073.62
Marketing Types /wp-admin/edit-tags.php?taxonomy=inx_marketing_type&post_type=inx_property1,4212.2843.2838.60
Settings /wp-admin/admin.php?page=immonex-kickstart_settings1,2992.1432.7738.61
Property Types /wp-admin/edit-tags.php?taxonomy=inx_property_type&post_type=inx_property1,4432.2836.0236.22
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins1,1192.0130.6933.47
Projects /wp-admin/edit-tags.php?taxonomy=inx_project&post_type=inx_property1,4212.2937.9836.93
Labels /wp-admin/edit-tags.php?taxonomy=inx_label&post_type=inx_property1,4212.2735.0139.26
Features /wp-admin/edit-tags.php?taxonomy=inx_feature&post_type=inx_property1,4142.2734.7834.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • immonex-kickstart_options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/immonex-kickstart/skins/default/index.php
  • 296× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/immonex-kickstart/vendor/twig/twig/src/Node/BodyNode.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\Test\odeTestCase' not found in wp-content/plugins/immonex-kickstart/vendor/twig/twig/tests/Node/SetTest.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'immonex\\Kickstart\\Property_Component_Hooks' not found in wp-content/plugins/immonex-kickstart/includes/class-property-list-hooks.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/immonex-kickstart/vendor/twig/twig/src/Node/Expression/Binary/SubBinary.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'immonex\\Kickstart\\Property_Component_Hooks' not found in wp-content/plugins/immonex-kickstart/includes/class-property-search-hooks.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig\\Cache\\CacheInterface' not found in wp-content/plugins/immonex-kickstart/vendor/twig/twig/src/Cache/NullCache.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/immonex-kickstart/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/immonex-kickstart/vendor/cmb2/cmb2/includes/types/CMB2_Type_File.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/immonex-kickstart/vendor/twig/twig/src/Node/Expression/Binary/BitwiseXorBinary.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/immonex-kickstart/vendor/twig/twig/extra/cssinliner-extra/CssInlinerExtension.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=#inx-submenu-separator
    • > Network (severe)
    wp-admin/admin.php?page=#inx-submenu-separator - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: import, openimmo, immomakler, immobilien, realestate

immonex-kickstart/immonex-kickstart.php Passed 13 tests

Analyzing the main PHP file in "immonex Kickstart" version 1.8.5
126 characters long description:
Essential components and add-on framework for embedding and searching/filtering imported OpenImmo-XML-based real estate offers

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin69,081 lines of code in 695 files:
LanguageFilesBlank linesComment linesLines of code
PHP47110,52721,39849,488
PO File223,3284,4297,812
CSS203191,2165,034
reStructuredText1202,6602,5903,002
JavaScript204046091,625
Markdown1639201,137
JSON200459
SVG103322
Twig9150109
Bourne Shell16143
XML20033
HTML110017

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 102)
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity14.48
▷ Minimum class complexity1.00
▷ Maximum class complexity260.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity102.00
Code structure
Namespaces67
Interfaces14
Traits0
Classes449
▷ Abstract classes245.35%
▷ Concrete classes42594.65%
▷ Final classes7016.47%
Methods2,716
▷ Static methods32612.00%
▷ Public methods2,31985.38%
▷ Protected methods2027.44%
▷ Private methods1957.18%
Functions235
▷ Named functions16670.64%
▷ Anonymous functions6929.36%
Constants144
▷ Global constants96.25%
▷ Class constants13593.75%
▷ Public constants12693.33%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
23 PNG files occupy 0.13MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/immonex/wp-free-plugin-core/assets/immonex-wp-logo-tiny.png3.69KB2.00KB▼ 45.73%
vendor/cmb2/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
vendor/immonex/wp-free-plugin-core/assets/immonex-os-logo-tiny.png2.13KB0.86KB▼ 59.84%
vendor/cmb2/cmb2/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
vendor/cmb2/cmb2/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%