78% immotoolbox-connect

Code Review | ImmoToolBox Connect

WordPress plugin ImmoToolBox Connect scored 78% from 54 tests.

About plugin

  • Plugin page: immotoolbox-connect
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.9+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Nov 14, 2018
  • Latest release: Jul 17, 2023
  • Number of updates: 83
  • Update frequency: every 20.6 days
  • Top authors: zebrasoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,955 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
Install script ran successfully

Server metrics [RAM: ▲0.34MB] [CPU: ▼4.18ms] Passed 4 tests

This is a short check of server-side resources used by ImmoToolBox Connect
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3029.62 ▼10.07
Dashboard /wp-admin3.71 ▲0.4050.59 ▼0.25
Posts /wp-admin/edit.php3.76 ▲0.4050.27 ▲1.44
Add New Post /wp-admin/post-new.php6.23 ▲0.3491.76 ▼7.85
Media Library /wp-admin/upload.php3.57 ▲0.3438.47 ▲4.16
Clear cache /wp-admin/admin.php?page=itbconnect_clearcache3.5434.54
ITB Connect /wp-admin/admin.php?page=itbconnect3.51327.64

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2,799 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
itbconnect_data
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for ImmoToolBox Connect
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,048 ▲31314.27 ▼0.5319.04 ▲17.1954.30 ▲7.48
Dashboard /wp-admin2,230 ▲425.90 ▲1.0399.20 ▼10.1743.63 ▼0.29
Posts /wp-admin/edit.php2,116 ▲272.06 ▲0.0441.47 ▲0.9336.07 ▼0.32
Add New Post /wp-admin/post-new.php6,607 ▲5,09329.37 ▲11.71912.54 ▲278.5862.41 ▲5.47
Media Library /wp-admin/upload.php1,415 ▲304.17 ▼0.01101.11 ▼2.4542.16 ▼4.19
Clear cache /wp-admin/admin.php?page=itbconnect_clearcache7872.0924.1223.90
ITB Connect /wp-admin/admin.php?page=itbconnect1,1122.0524.4126.87

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=itbconnect
    • > Warning in wp-content/plugins/immotoolbox-connect/includes/ITBConnect.php+133
    file_get_contents(https://clientapi.immotoolbox.com/api/properties?ori=wp.com&wp_version=6.3.1): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden

SRP 50% 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
Almost there! Just fix the following items
  • 912× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Function' not found in wp-content/plugins/immotoolbox-connect/includes8.0/vendor/twig/twig/lib/Twig/Function/Node.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Filter' not found in wp-content/plugins/immotoolbox-connect/includes8.0/vendor/twig/twig/lib/Twig/Filter/Node.php:23
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig\\TokenParser\\TokenParserInterface' not found in wp-content/plugins/immotoolbox-connect/includes8.2/vendor/twig/twig/src/TokenParser/AbstractTokenParser.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/immotoolbox-connect/includeslegacy/vendor/twig/twig/test/Twig/Tests/ContainerRuntimeLoaderTest.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig\\Sandbox\\SecurityPolicyInterface' not found in wp-content/plugins/immotoolbox-connect/includes8.2/vendor/twig/twig/src/Sandbox/SecurityPolicy.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Extension' not found in wp-content/plugins/immotoolbox-connect/includes/vendor/twig/twig/lib/Twig/Extension/Debug.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/immotoolbox-connect/includes8.0/vendor/twig/twig/src/Extension/OptimizerExtension.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/immotoolbox-connect/includes8.0/vendor/twig/extensions/test/Twig/Tests/Grammar/TagTest.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig_FilterInterface' not found in wp-content/plugins/immotoolbox-connect/includes8.0/vendor/twig/twig/lib/Twig/Filter.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression_Unary' not found in wp-content/plugins/immotoolbox-connect/includes/vendor/twig/twig/lib/Twig/Node/Expression/Unary/Not.php:12

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 on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

immotoolbox-connect/immotoolbox-connect.php Passed 13 tests

This is the main PHP file of "ImmoToolBox Connect" version 1.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
57 characters long description:
Displays ImmoToolBox real estate listings in your website

Code Analysis Passed 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 plugin63,035 lines of code in 1,333 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,11211,80717,67851,096
reStructuredText1544,2973,7316,018
PO File35826481,440
JavaScript23911,200
Twig22501996
JSON1300951
C1171186860
YAML5592205
Markdown4610147
XML26052
CSS21033
HTML110017
C/C++ Header171315
m41215

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity4.40
▷ Minimum class complexity1.00
▷ Maximum class complexity161.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity89.00
Code structure
Namespaces29
Interfaces126
Traits0
Classes1,786
▷ Abstract classes633.53%
▷ Concrete classes1,72396.47%
▷ Final classes643.71%
Methods5,069
▷ Static methods1893.73%
▷ Public methods4,44187.61%
▷ Protected methods4789.43%
▷ Private methods1502.96%
Functions410
▷ Named functions36990.00%
▷ Anonymous functions4110.00%
Constants202
▷ Global constants94.46%
▷ Class constants19395.54%
▷ Public constants193100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin