Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness. github.com/phan/phan
composer require --dev phan/phan
note: php-ast is necessary (sudo apt install php-ast)
| <?php | |
| /** | |
| * Plugin Name: Control plugin update. | |
| * Description: xyz | |
| * Plugin URI: https://wpbuch.com/listing-13-1 | |
| * Version: 1.0.0 | |
| * Author: | |
| * Author URI: | |
| * Licence: GPLv2+ | |
| */ |
| <?php declare(strict_types=1); | |
| /** | |
| * Plugin Name: Emoji Removel. | |
| * Description: Remove all Emoji support to laod faster on back - and front-end. | |
| */ | |
| add_action( | |
| 'init', | |
| function () { | |
| remove_action('wp_head', 'print_emoji_detection_script', 7); |
| <?php # -*- coding: utf-8 -*- | |
| declare(strict_types=1); | |
| /** | |
| * Plugin Name: Disable REST API | |
| */ | |
| // Completely disable wp-json access. | |
| add_filter( | |
| 'rest_authentication_errors', | |
| function () { |
| <?php # -*- coding: utf-8 -*- | |
| /** | |
| * Plugin Name: Gutenberg Add Formatting | |
| * Description: Add formatting button in Gutenberg. | |
| * Plugin URI: | |
| * Version: 0.0.1 | |
| * Author: | |
| * Author URI: | |
| * Licence: MIT | |
| * Text Domain: |
| <?php | |
| /** | |
| * Plugin Name: Valéries Authenticator Plugin to exclude pages | |
| * Plugin URI: https://github.com/bueltge/Authenticator | |
| * Description: This plugin extends the Authenticator plugin to exclude pages from the . | |
| * Author: | |
| * Version: 2018-07-10 | |
| * Author URI: | |
| * License: GPLv3+ | |
| * License URI: ./assets/license.txt |
| <?php # -*- coding: utf-8 -*- | |
| declare( strict_types = 1 ); | |
| /** | |
| * Plugin Name: Stop Save IP Adress on Comment | |
| * Plugin URI: https://gist.github.com/bueltge/d0126eee91c0c17e80ad57e34e339a11 | |
| * Description: Stop Storing IP Addresses with WordPress Comments. | |
| * Version: 2018-05-25 | |
| * Author: Frank Bültge | |
| * Author URI: https://bueltge.de | |
| * License: MIT |
| // ==UserScript== | |
| // @name xDebug Restyling | |
| // @namespace localhost | |
| // @version 0.1 | |
| // @description Restyling Xdebug output | |
| // @author Frank Bueltge | |
| // @match http://*localhost/* | |
| // @grant none | |
| // ==/UserScript== |
Phan is a static analyzer for PHP. Phan prefers to avoid false-positives and attempts to prove incorrectness rather than correctness. github.com/phan/phan
composer require --dev phan/phan
note: php-ast is necessary (sudo apt install php-ast)
| <?php # -*- coding: utf-8 -*- | |
| declare( strict_types = 1 ); | |
| /** | |
| * Plugin Name: Port Switch | |
| * Plugin URI: https://gist.github.com/bueltge/51013ab809f5f0f5e305c70c2d393fff | |
| * Description: Port switch to get an workaround to use WordPress Multisite also without the default port 80. | |
| * Version: dev | |
| * Author: Frank Bültge | |
| * Author URI: https://bueltge.de | |
| * License: MIT |
| <?php | |
| class foo { | |
| /** | |
| * Return sites of MU. | |
| * $sites object | |
| */ | |
| public function get_sites() { | |
| $sites = get_sites(); |