This is a tool to detect deprecated code in Elementor ecosystem plugins.
- PHP >= 8.0
- Composer >= 2.0
git clone [email protected]:matipojo/elementor-deprecated-code-detector.git
cd elementor-deprecated-code-detectorThe tool includes two composer commands:
scan:sourceScan the source code of Elementor and Elementor Pro and generates a list of deprecated code.scan:pluginsScan 3rd party plugins and detects if they use deprecated code.
The plugins code is scanned from wp-content/plugins folder.
The list of deprecated code is saved in reports folder.
Update the version of elementor in composer.json file to version you want to scan.
For scanning deprecations in Elementor Pro, add it via composer, follow the instructions.
Then run:
composer update
composer scan:sourceThe scan commands will scan by default both Elementor and Elementor Pro (if added).
For scanning only one of them, add the plugin name to the command, for example:
composer scan:source:elementor
composer scan:plugins:elementor-proFor one plugin:
composer require wpackagist-plugin/<plugin-slug>For a specific version
composer require wpackagist-plugin/<plugin-slug>:<version>For a list of plugins, add them to the composer.json require section and run:
composer update
composer scan:source
composer scan:pluginsFor scanning top 100 plugins from WordPress.org, run:
composer require:top100
composer scan:source
composer scan:pluginsIf the plugin is available via Composer, add it to the composer.json require section and run:
composer require <package-name>
composer scan:pluginsOtherwise, put the plugin in the wp-content/plugins folder and run:
composer scan:plugins