Ejemplo n.º 1
0
            ?>
                        <tr class="<?php 
            echo $even ? "even" : "odd";
            ?>
">
                            <td>
                                <img src="<?php 
            echo base_url();
            ?>
assets/images/analytics/<?php 
            echo $analytics;
            ?>
.png" />
                                &nbsp;&nbsp;
                                <?php 
            echo htmlspecialchars(AnalyticsFinder::getProviderName($analytics));
            ?>
                            </td>
                        </tr>
                        <?php 
            $i++;
        }
        ?>
                </table>
            <?php 
    } else {
        ?>
                <?php 
        echo _t("Missing");
        ?>
                <br><br>
Ejemplo n.º 2
0
 private function parseWebsite()
 {
     $document = new Document($this->html);
     $this->document["doctype"] = $document->getDoctype();
     $this->document["isPrintable"] = $document->isPrintable();
     $this->document["appleIcon"] = $document->issetAppleIcon();
     $this->document["deprecatedTags"] = $document->getDeprecatedTags();
     $this->document["langID"] = $document->getLanguageID();
     //$this -> document["langID"] = $this->lang;
     $this->document["cssCount"] = $document->getCssFilesCount();
     $this->document["jsCount"] = $document->getJsFilesCount();
     $favicon = new Favicon($this->html, $this->domain);
     $this->favicon = $favicon->getFavicon();
     $content = new Content($this->html);
     $this->content["flash"] = $content->issetFlash();
     $this->content["iframe"] = $content->issetIframe();
     $this->content["headings"] = $content->getHeadings();
     $this->content["issetHeadings"] = !Helper::isEmptyArray($this->content["headings"]);
     $this->content["nestedTables"] = $content->issetNestedTables();
     $this->content["inlinceCss"] = $content->issetInlineCss();
     $this->content["email"] = $content->issetEmail();
     $image = new Image($this->html);
     $this->image["totalCount"] = $image->getTotal();
     $this->image["totalAlt"] = $image->getAltCount();
     $links = new Links($this->html, $this->domain);
     $this->links["links"] = $links->getLinks();
     $this->links["internal"] = $links->getInternalCount();
     $this->links["externalNofollow"] = $links->getExternalNofollowCount();
     $this->links["externalDofollow"] = $links->getExternalDofollowCount();
     $this->links["files"] = $links->getFilesCount();
     $this->links["issetUnderscore"] = $links->issetUnderscore();
     $this->links["friendly"] = $links->isAllLinksAreFriendly();
     $metatags = new MetaTags($this->html);
     $this->metatags["title"] = $metatags->getTitle();
     $this->metatags["description"] = $metatags->getDescription();
     $this->metatags["keywords"] = $metatags->getKeywords();
     $this->metatags["charset"] = $metatags->getCharset();
     $this->metatags["viewport"] = $metatags->getViewPort() !== null ? 1 : 0;
     $this->metatags["dublincore"] = $metatags->getDublinCore();
     $this->metatags["ogproperties"] = $metatags->getOgMetaProperties();
     $seoanalyse = new SeoAnalyse($this->html);
     $this->seoanalyse['htmlratio'] = $seoanalyse->getHtmlRatio();
     $validation = new Validation($this->domain);
     $this->validation["w3c"] = $validation->w3cHTML();
     $tagcloud = new TagCloud($this->html, $this->lang);
     $analyser = $this->CI->config->item('analyser');
     $this->tagcloud = $tagcloud->generate($analyser["tagCloud"]);
     $matrix = new SearchMatrix();
     $matrix->addWords(array_slice(array_keys($this->tagcloud), 0, $analyser["consistencyCount"]));
     $matrix->addSearchInString("title", $this->metatags["title"]);
     $matrix->addSearchInString("description", $this->metatags["description"]);
     $matrix->addSearchInString("keywords", $this->metatags["keywords"]);
     $matrix->addSearchInArrayRecursive("headings", $this->content["headings"]);
     $this->matrix = $matrix->generate();
     $optimization = new Optimization($this->domain);
     $analytics = new AnalyticsFinder($this->html);
     $this->misc['sitemap'] = $optimization->getSitemap();
     $this->misc['robotstxt'] = $optimization->hasRobotsTxt();
     $this->misc['gzip'] = $optimization->hasGzipSupport();
     $this->misc['analytics'] = $analytics->findAll();
     $this->score = $this->getScore();
     $p = new PageSpeedInsights($this->domain, $this->CI->config->item('googleApiKey'));
     $p->setLocale($this->CI->config->item('langshort'));
     $results = $p->getResults();
     $this->pagespeed = $results;
     // Social grader
     $s = new Socialgrader($this->html, $this->domain);
     $this->grader = $s->grader();
 }