vormkracht10 / laravel-seo-scanner Goto Github PK
View Code? Open in Web Editor NEWScan your Laravel application routes for SEO improvements suggestions.
License: MIT License
Scan your Laravel application routes for SEO improvements suggestions.
License: MIT License
Maybe the usage of https://github.com/postlight/parser improves the content extraction.
Cannot be installed currently in Laravel 10 project.
hello friend, my project have a lower throttle middleware to some routes, and this impact on the scam.
have any ideia to bypass the throttle middleware?
its possible to ignore this?
The results seem to returning incorrect results.
php artisan seo:scan-url https://www.bbc.co.uk/news
Returns the following:
-----------------------------------------------------------------------------------------------------------------------------------
> https://www.bbc.co.uk/news | 15 passed 9 failed
-----------------------------------------------------------------------------------------------------------------------------------
✔ Robots.txt allows indexing
✔ The page does not have 'noindex' set
✔ The page does not have 'nofollow' set
✔ The page response returns a 200 status code
✔ All links redirect to an url using HTTPS
✔ The page contains no broken images
✔ Every image has an alt tag
✔ Length of the content is at least 2100 characters
✔ The page contains no broken links
✔ Too long sentence check
✔ CSS files are not bigger than 15 KB
✔ Time To First Byte (TTFB) is below 600 ms
✔ HTML is GZIP compressed
✔ Images are not larger than 1 MB
✔ Javascript files are not bigger than 1 MB
✘ The page has a meta description failed.
The page does not contain a description meta tag, while it should. Estimated time to fix: 1 minute(s).
✘ The lang attribute is set on the html tag failed.
The page does not contain a lang attribute, while it should. Estimated time to fix: 1 minute(s).
✘ The page has an Open Graph image failed.
The page does not contain an open graph image, while it should. Estimated time to fix: 20 minute(s).
✘ The page title is not longer than 60 characters failed.
The page does not contain a title tag, while it should. Estimated time to fix: 1 minute(s).
✘ The page has the focus keyword in the first paragraph failed.
The page does not contain the focus keyword in the first paragraph, while it should. Estimated time to fix: 10 minute(s).
✘ The page has an H1 tag and if it is used only once per page failed.
The page does not contain any h1 tag, while it should. Estimated time to fix: 1 minute(s).
✘ The page has the focus keyword in the title failed.
The page title does not contain the focus keyword, while it should. Estimated time to fix: 1 minute(s).
✘ Transition word ratio check failed.
The page contains too few transition words. The recommended minimum is 30%, while the actual number is 0%. Estimated time to fix: 60 minute(s).
✘ HTML is not larger than 100 KB failed.
The page contains HTML that is too large (max 100 KB), the actual size is 112.93 KB. Estimated time to fix: 60 minute(s).
Completed 24 out of 24 checks.
Looking at the page source at the URL, the site does have a meta description, HTML lang tag, OG image, etc.
Hi, i am loving this tool, so useful, but a number of the sites i am checking are blocked by cloudflare
is there any solution to allow this tool to bypass cloudflare gatekeeping?
thanks in advance.
When im running scanner from localhost, but some webpage have relative url, for example <a href="/home">Home</a>,
then scanner tries to open his own page: http://localhost/home
Hi guys! Love the package and it is awesome to see other dutchies in the laravel open source space :)
So I am using the package to scan our blog for which we use Statamic.
Statamic outputs the images with the following format:
/assets/listicles/2022/fast-excel.png
So there is no base URL, this is causing the getimagesize to fail in the AltTagCheck class.
Below the error:
ErrorException
getimagesize(/assets/listicles/2022/fast-excel.png): Failed to open stream: No such file or directory
at vendor/vormkracht10/laravel-seo-scanner/src/Checks/Content/AltTagCheck.php:93
89▕ 'height' => $node->attr('height'),
90▕ ];
91▕ }
92▕
➜ 93▕ $dimensions = getimagesize($src);
94▕
95▕ return [
96▕ 'width' => $dimensions[0],
97▕ 'height' => $dimensions[1],
+36 vendor frames
37 [internal]:0
Vormkracht10\Seo\Commands\SeoScan::Vormkracht10\Seo\Commands\{closure}()
+18 vendor frames
56 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
Is there a way for the package to know to check the base URL + the URL in the image tag.
Would love to know your thoughts on a solution.
Am willing to submit an PR if that is okay with you :)
Currently the tests are failing and it seems like the only ones that fail are the one run on Windows: https://github.com/vormkracht10/laravel-seo-scanner/actions/runs/3858247119.
Only the failure reason is translated for each check, while the check name and other content is not translated. We could translate those as well. We might need help with the French translations.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.