Simple tool for analyzing given website according to (some) recommended SEO rules.
Laravel PHP Framework - version 5.8.16
PHP - version >= 7.1.3
0.) Status code
1.) HTTP/2.0 Support
2.) GZIP Encoding Support
3.) Image/WEBP Support
4.) Detection of existing and nonexistent alt tags of HTML image elements
5.) Page Speed Insights audits processor
6.) Robots indexation - Detection of existence and possible rules
- a) meta tag
- b) robots.txt file
- c) x-robots-tag
For optional maintenance usage the global installation of https://cs.symfony.com (PHP Coding Standards Fixer) is required
wget https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer
OR
curl -L https://cs.symfony.com/download/php-cs-fixer-v2.phar -o php-cs-fixer
THEN
sudo chmod a+x php-cs-fixer
sudo mv php-cs-fixer /usr/local/bin/php-cs-fixer
Simple installation via provided Makefile.
make
Tests of individual modules are placed in tests/Feature directory. Run tests via command below.
phpunit
In order to provide automatic code style fixing (e.g. removing empty lines, unused imports), bash script was written. File also provides tests launching and has own help function.
./analyzer.sh maintenance
php artisan serve
The application supports two usage scenarios. First scenario expects basic interaction with client (browser). The output of second scenario is JSON format.
http://127.0.0.1:8000/api/analyzer?url={URL}