78% immonex-kickstart-team

Code Review | immonex Kickstart Team

WordPress plugin immonex Kickstart Team scored78%from 54 tests.

About plugin

  • Plugin page: immonex-kickstart...
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 20, 2020
  • Latest release: Nov 10, 2023
  • Number of updates: 22
  • Update frequency: every 53.5 days
  • Top authors: immonex (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,803 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.76MB] [CPU: ▲1.75ms] Passed 4 tests

Analyzing server-side resources used by immonex Kickstart Team
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.29 ▲1.8248.04 ▲8.81
Dashboard /wp-admin5.11 ▲1.7652.87 ▼9.83
Posts /wp-admin/edit.php5.16 ▲1.8161.15 ▲13.66
Add New Post /wp-admin/post-new.php7.62 ▲1.7495.35 ▼4.80
Media Library /wp-admin/upload.php4.97 ▲1.7447.20 ▲12.81
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins5.1339.67
Agents /wp-admin/edit.php?post_type=inx_agent5.0844.56
Agencies /wp-admin/edit.php?post_type=inx_agency5.0842.84

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 327 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
immonex-kickstart-team_options

Browser metrics Passed 4 tests

Checking browser requirements for immonex Kickstart Team
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8514.68 ▲0.331.56 ▼0.0538.09 ▼5.20
Dashboard /wp-admin2,231 ▲565.64 ▲0.0391.01 ▼31.7143.41 ▼0.45
Posts /wp-admin/edit.php2,145 ▲452.02 ▲0.0341.74 ▲3.0640.97 ▲6.97
Add New Post /wp-admin/post-new.php1,558 ▲2923.55 ▲0.28687.39 ▼4.9752.14 ▼0.74
Media Library /wp-admin/upload.php1,438 ▲384.21 ▲0.0098.75 ▲2.3144.66 ▲2.49
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins9832.0629.9629.96
Agents /wp-admin/edit.php?post_type=inx_agent1,1221.9934.6134.04
Agencies /wp-admin/edit.php?post_type=inx_agency1,1251.9634.3034.72

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • immonex-kickstart-team_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/immonex-kickstart-team/skins/default/index.php
  • 170× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/immonex-kickstart-team/vendor/twig/twig/src/Node/ForLoopNode.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/immonex-kickstart-team/vendor/twig/twig/src/Node/SandboxNode.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig\odeVisitor\odeVisitorInterface' not found in wp-content/plugins/immonex-kickstart-team/vendor/twig/twig/src/Profiler/NodeVisitor/ProfilerNodeVisitor.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'immonex\\WordPressFreePluginCore\\V1_8_25\\Base' not found in wp-content/plugins/immonex-kickstart-team/includes/class-kickstart-team.php:13
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/immonex-kickstart-team/skins/default/mail/contact-form-to-admin.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\CallExpression' not found in wp-content/plugins/immonex-kickstart-team/vendor/twig/twig/src/Node/Expression/TestExpression.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/immonex-kickstart-team/vendor/twig/twig/src/Node/AutoEscapeNode.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/immonex-kickstart-team/vendor/immonex/wp-free-plugin-core/src/V1_8_25/partials/plugin-options-header.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\ConditionalExpression' not found in wp-content/plugins/immonex-kickstart-team/vendor/twig/twig/src/Node/Expression/NullCoalesceExpression.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\CallExpression' not found in wp-content/plugins/immonex-kickstart-team/vendor/twig/twig/src/Node/Expression/FunctionExpression.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

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
9 plugin tags: agent, immomakler, openimmo, immobilien, team...

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

The main file in "immonex Kickstart Team" v. 1.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
134 characters long description:
immonex Kickstart add-on for handling, linking and embedding OpenImmo-XML-based real estate agent/agency information and contact forms

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
There were no executable files found in this plugin37,256 lines of code in 289 files:
LanguageFilesBlank linesComment linesLines of code
PHP2736,54613,60033,512
PO File38521,3042,475
CSS2622400
JSON100387
JavaScript34323185
Markdown4850177
Twig110094
XML10016
reStructuredText18510

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 102)
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity19.85
▷ Minimum class complexity1.00
▷ Maximum class complexity257.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity102.00
Code structure
Namespaces32
Interfaces12
Traits0
Classes229
▷ Abstract classes166.99%
▷ Concrete classes21393.01%
▷ Final classes5927.70%
Methods1,535
▷ Static methods21814.20%
▷ Public methods1,24981.37%
▷ Protected methods966.25%
▷ Private methods19012.38%
Functions168
▷ Named functions12976.79%
▷ Anonymous functions3923.21%
Constants115
▷ Global constants43.48%
▷ Class constants11196.52%
▷ Public constants111100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/immonex/wp-free-plugin-core/assets/immonex-os-logo-small.png5.22KB2.74KB▼ 47.47%
vendor/immonex/wp-free-plugin-core/assets/immonex-wp-logo-tiny-alternative.png4.68KB2.27KB▼ 51.53%
vendor/immonex/wp-free-plugin-core/assets/inveris-oss-logo-tiny.png36.42KB2.19KB▼ 93.99%
vendor/immonex/wp-free-plugin-core/assets/inveris-plugin-logo-tiny.png36.27KB2.20KB▼ 93.94%
vendor/immonex/wp-free-plugin-core/assets/immonex-wp-logo-tiny.png3.69KB2.00KB▼ 45.73%