63% seo-booster

Code Review | SEO Booster

WordPress plugin SEO Booster scored63%from 54 tests.

About plugin

  • Plugin page: seo-booster
  • Plugin version: 3.8.9
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: Jun 26, 2017
  • Latest release: Jul 5, 2023
  • Number of updates: 175
  • Update frequency: every 12.6 days
  • Top authors: cleverplugins (97.14%)lkoudal (3.43%)

Code review

54 tests

User reviews

51 reviews

Install metrics

3,000+ active /182,140 total downloads

Benchmarks

Plugin footprint 47% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲5.91MB] [CPU: ▲32.02ms] 75% from 4 tests

A check of server-side resources used by SEO Booster
It is recommended to improve the following
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.91MB on /wp-admin/admin.php?page=sb2_dashboard-pricing)
PageMemory (MB)CPU Time (ms)
Home /9.72 ▲6.2688.16 ▲37.43
Dashboard /wp-admin9.74 ▲6.4477.83 ▲21.42
Posts /wp-admin/edit.php9.74 ▲6.3983.39 ▲34.09
Add New Post /wp-admin/post-new.php10.45 ▲4.56133.65 ▲35.95
Media Library /wp-admin/upload.php9.74 ▲6.5172.68 ▲36.63
Incoming Keywords /wp-admin/admin.php?page=sb2_keywords9.7471.64
Contact Us /wp-admin/admin.php?page=sb2_dashboard-contact9.7465.07
Backlinks /wp-admin/admin.php?page=sb2_backlinks9.7472.97
Log /wp-admin/admin.php?page=sb2_log9.7464.36
Settings /wp-admin/admin.php?page=sb2_settings9.7469.42
Support Forum /wp-admin/admin.php?page=sb2_dashboard-wp-support-forum9.7459.10
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.7472.71
404 Errors /wp-admin/admin.php?page=sb2_4049.7465.84
SEO Booster /wp-admin/admin.php?page=sb2_dashboard9.7478.59
Upgrade  ➤ /wp-admin/admin.php?page=sb2_dashboard-pricing9.7461.24

Server storage [IO: ▲4.37MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 563 new files
Database: 9 new tables, 14 new options
New tables
wp_sb2_autolink
wp_sb2_404
wp_sb2_kwdt
wp_sb2_kw
wp_sb2_urls_meta
wp_sb2_bl
wp_sb2_crawl
wp_sb2_log
wp_sb2_urls
New WordPress options
fs_accounts
widget_sb2_dynwidget
db_upgraded
sb2_maintenance_urls_table_stage
sb2_maintenance_bl_table_stage
fs_active_plugins
fs_debug_mode
widget_seobooster_keywords_widget
widget_theysaidso_widget
widget_recent-posts
...

Browser metrics Passed 4 tests

An overview of browser requirements for SEO Booster
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,102 ▲34114.76 ▲0.201.96 ▲0.2145.60 ▲1.93
Dashboard /wp-admin2,483 ▲3035.98 ▲0.3796.61 ▲8.2389.96 ▲49.64
Posts /wp-admin/edit.php2,356 ▲2562.38 ▲0.3644.72 ▲6.5342.28 ▲5.31
Add New Post /wp-admin/post-new.php1,676 ▲15020.97 ▼2.61661.34 ▼17.87172.31 ▲122.27
Media Library /wp-admin/upload.php1,649 ▲2494.43 ▲0.24105.32 ▼0.6482.30 ▲35.48
Incoming Keywords /wp-admin/admin.php?page=sb2_keywords1,5372.9265.0459.39
Contact Us /wp-admin/admin.php?page=sb2_dashboard-contact1,7193.5062.9561.94
Backlinks /wp-admin/admin.php?page=sb2_backlinks1,5332.4440.9058.96
Log /wp-admin/admin.php?page=sb2_log1,2342.4236.1344.66
Settings /wp-admin/admin.php?page=sb2_settings1,7792.4343.1458.97
Support Forum /wp-admin/admin.php?page=sb2_dashboard-wp-support-forum2,8203.9186.19105.08
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,2612.3933.7442.52
404 Errors /wp-admin/admin.php?page=sb2_4041,4552.4339.1045.81
SEO Booster /wp-admin/admin.php?page=sb2_dashboard1,3652.4239.8561.04
Upgrade  ➤ /wp-admin/admin.php?page=sb2_dashboard-pricing2,6663.4380.49155.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/seo-booster/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie tables were found after uninstall: 9 tables
    • wp_sb2_kwdt
    • wp_sb2_bl
    • wp_sb2_log
    • wp_sb2_autolink
    • wp_sb2_urls
    • wp_sb2_urls_meta
    • wp_sb2_kw
    • wp_sb2_crawl
    • wp_sb2_404
  • Zombie WordPress options were found after uninstall: 14 options
    • can_compress_scripts
    • SEOBOOSTER_INSTALLED_DB_VERSION
    • widget_sb2_dynwidget
    • fs_accounts
    • sb2_maintenance_bl_table_stage
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • fs_debug_mode
    • widget_recent-comments
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Interface 'TypistTech\\Imposter\\ImposterInterface' not found in wp-content/plugins/seo-booster/vendor/typisttech/imposter/src/Imposter.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'TypistTech\\Imposter\\ConfigInterface' not found in wp-content/plugins/seo-booster/vendor/typisttech/imposter/src/ProjectConfigInterface.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/seo-booster/vendor/typisttech/imposter-plugin/src/ImposterPlugin.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'TypistTech\\Imposter\\ConfigCollectionInterface' not found in wp-content/plugins/seo-booster/vendor/typisttech/imposter/src/ConfigCollection.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'TypistTech\\Imposter\\Config' not found in wp-content/plugins/seo-booster/vendor/typisttech/imposter/src/ProjectConfig.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'TypistTech\\Imposter\\TransformerInterface' not found in wp-content/plugins/seo-booster/vendor/typisttech/imposter/src/Transformer.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'TypistTech\\Imposter\\FilesystemInterface' not found in wp-content/plugins/seo-booster/vendor/typisttech/imposter/src/Filesystem.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'TypistTech\\Imposter\\ConfigInterface' not found in wp-content/plugins/seo-booster/vendor/typisttech/imposter/src/Config.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Please a description for screenshot #2 in seo-booster/assets to your readme.txt
The official readme.txt might help

seo-booster/seo-booster.php 92% from 13 tests

The main PHP file in "SEO Booster" ver. 3.8.9 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 171 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin49,024 lines of code in 221 files:
LanguageFilesBlank linesComment linesLines of code
PHP1759,60119,51245,643
Sass131001,233
JavaScript118899530
Markdown42100458
CSS16642430
JSON400388
HTML1312160
YAML681128
XML3201154

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity67.25
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.54
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces4
Interfaces6
Traits0
Classes77
▷ Abstract classes22.60%
▷ Concrete classes7597.40%
▷ Final classes00.00%
Methods1,613
▷ Static methods30618.97%
▷ Public methods1,14871.17%
▷ Protected methods804.96%
▷ Private methods38523.87%
Functions118
▷ Named functions10588.98%
▷ Anonymous functions1311.02%
Constants173
▷ Global constants12572.25%
▷ Class constants4827.75%
▷ Public constants4797.92%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
275 compressed PNG files occupy 0.29MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/flags/Slovakia.png0.49KB0.51KB0.00%
images/flags/Australia.png0.73KB0.76KB0.00%
images/flags/Andorra.png1.13KB1.29KB0.00%
images/flags/Aland.png0.14KB0.14KB0.00%
images/flags/Kyrgyzstan.png1.29KB1.30KB0.00%