63% squirrly-seo

Code Review | SEO Plugin by Squirrly SEO

WordPress plugin SEO Plugin by Squirrly SEO scored63%from 54 tests.

About plugin

  • Plugin page: squirrly-seo
  • Plugin version: 12.3.15
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Jan 8, 2013
  • Latest release: Nov 21, 2023
  • Number of updates: 2,500
  • Update frequency: every 1.6 days
  • Top authors: cifi (100%)

Code review

54 tests

User reviews

651 reviews

Install metrics

200,000+ active /4,652,393 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.34MB] [CPU: ▲2.09ms] Passed 4 tests

An overview of server-side resources used by SEO Plugin by Squirrly SEO
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3445.69 ▲2.79
Dashboard /wp-admin3.67 ▲0.3357.28 ▼5.25
Posts /wp-admin/edit.php3.71 ▲0.3664.85 ▲16.40
Add New Post /wp-admin/post-new.php6.43 ▲0.54109.56 ▲3.63
Media Library /wp-admin/upload.php3.58 ▲0.3644.97 ▲7.17
Keyword Research /wp-admin/admin.php?page=sq_research3.6545.26
SEO Audit /wp-admin/admin.php?page=sq_audits3.5646.56
Redirects /wp-admin/admin.php?page=sq_redirects3.6260.33
First Step /wp-admin/admin.php?page=sq_dashboard3.5642.07
SEO Configuration /wp-admin/admin.php?page=sq_seosettings4.1865.45
All Features /wp-admin/admin.php?page=sq_features3.9448.32
Focus Pages /wp-admin/admin.php?page=sq_focuspages3.5643.01
One Page Setup /wp-admin/admin.php?page=sq_onpagesetup5.0251.55
IndexNow /wp-admin/admin.php?page=sq_indexnow3.7847.79
Automation /wp-admin/admin.php?page=sq_automation3.8052.05

Server storage [IO: ▲16.76MB] [DB: ▲0.02MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 435 new files
Database: 1 new table, 8 new options
New tables
wp_qss
New WordPress options
widget_theysaidso_widget
widget_recent-posts
sq_options
sq_tasks
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for SEO Plugin by Squirrly SEO
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,079 ▲31714.37 ▲0.131.72 ▼0.0436.97 ▼7.54
Dashboard /wp-admin2,482 ▲3045.63 ▼0.0595.36 ▼16.8492.73 ▲52.79
Posts /wp-admin/edit.php2,412 ▲3152.06 ▲0.1239.22 ▼0.2034.27 ▼0.74
Add New Post /wp-admin/post-new.php3,406 ▲1,87820.07 ▼2.90690.65 ▲5.02248.45 ▲196.89
Media Library /wp-admin/upload.php1,688 ▲2884.26 ▲0.06101.93 ▼5.9377.26 ▲26.31
Keyword Research /wp-admin/admin.php?page=sq_research1,1683.8568.8251.73
SEO Audit /wp-admin/admin.php?page=sq_audits1,1773.7066.6931.77
Redirects /wp-admin/admin.php?page=sq_redirects1,3415.0878.6471.71
First Step /wp-admin/admin.php?page=sq_dashboard1,2513.7849.5847.99
SEO Configuration /wp-admin/admin.php?page=sq_seosettings2,4275.2083.06134.96
All Features /wp-admin/admin.php?page=sq_features4,7193.8358.80151.31
Focus Pages /wp-admin/admin.php?page=sq_focuspages1,1713.8050.6432.01
One Page Setup /wp-admin/admin.php?page=sq_onpagesetup1,1973.8155.1336.08
IndexNow /wp-admin/admin.php?page=sq_indexnow1,2453.6452.4946.93
Automation /wp-admin/admin.php?page=sq_automation1,4505.1074.5991.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 25% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/squirrly-seo/config/config.php+15
    Constant _SQ_MOBILE_ICON_SIZES already defined
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_qss
  • This plugin does not fully uninstall, leaving 8 options in the database
    • sq_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • sq_tasks
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 208× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/squirrly-seo/view/Goals/CheckSeo.php
    • > /wp-content/plugins/squirrly-seo/view/Connect/GoogleSearchConsole.php
    • > /wp-content/plugins/squirrly-seo/view/Blocks/Innerlinks.php
    • > /wp-content/plugins/squirrly-seo/classes/RemoteController.php
    • > /wp-content/plugins/squirrly-seo/view/Blocks/Menu.php
    • > /wp-content/plugins/squirrly-seo/models/CheckSeo.php
    • > /wp-content/plugins/squirrly-seo/view/BulkSeo/Bulkseo.php
    • > /wp-content/plugins/squirrly-seo/view/Research/Labels.php
    • > /wp-content/plugins/squirrly-seo/uninstall.php
    • > /wp-content/plugins/squirrly-seo/view/Indexnow/Settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (31 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

squirrly-seo/squirrly.php 85% from 13 tests

The principal PHP file in "SEO Plugin by Squirrly SEO" v. 12.3.15 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("squirrly-seo.php" instead of "squirrly.php")
  • Description: The description should be shorter than 140 characters (currently 192 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin80,240 lines of code in 306 files:
LanguageFilesBlank linesComment linesLines of code
PHP2088,3135,88143,822
PO File715,54623,08134,429
JavaScript431292341,118
XSLT5194768
CSS43322103

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 272)
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity50.89
▷ Minimum class complexity1.00
▷ Maximum class complexity487.00
Average method complexity6.26
▷ Minimum method complexity1.00
▷ Maximum method complexity272.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes122
▷ Abstract classes32.46%
▷ Concrete classes11997.54%
▷ Final classes00.00%
Methods1,116
▷ Static methods15814.16%
▷ Public methods1,07596.33%
▷ Protected methods141.25%
▷ Private methods272.42%
Functions55
▷ Named functions00.00%
▷ Anonymous functions55100.00%
Constants96
▷ Global constants4951.04%
▷ Class constants4748.96%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
38 compressed PNG files occupy 0.62MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
view/assets/img/seocheck/shares.png20.20KB21.10KB0.00%
view/assets/img/kb/add_copyright_free_images.png7.90KB8.22KB0.00%
view/assets/img/kb/checklist.png8.52KB8.82KB0.00%
view/assets/img/kb/how_to_categorize_keywords.png7.68KB7.82KB0.00%
view/assets/img/seocheck/top10.png19.94KB20.97KB0.00%