Coder Social home page Coder Social logo

vormkracht10 / laravel-seo-scanner Goto Github PK

View Code? Open in Web Editor NEW
179.0 4.0 15.0 377 KB

Scan your Laravel application routes for SEO improvements suggestions.

License: MIT License

PHP 100.00%
laravel laravel-framework laravel-seo seo seo-optimization seo-tools seotools laravel-seo-scanner crawler scanner

laravel-seo-scanner's People

Contributors

atmonshi avatar baspa avatar dependabot[bot] avatar github-actions[bot] avatar markvaneijk avatar murilochianfa avatar simonjenny avatar thibaultduhem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

laravel-seo-scanner's Issues

Incorrect results

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.

websites blocked by cloudflare dns

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.

relative url check fails using seo:scan-url

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

getimagesize failing on relative path

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 :)

Translate CLI content

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.