10% wp-social-seo-booster

Code Review | WP Social SEO Booster - Knowledge Graph Social Signals SEO

WordPress plugin WP Social SEO Booster - Knowledge Graph Social Signals SEO scored10%from 54 tests.

About plugin

  • Plugin page: wp-social-seo-boo...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-3.9.2
  • WordPress version: 6.3.1
  • First release: Jan 10, 2013
  • Latest release: Sep 2, 2014
  • Number of updates: 64
  • Update frequency: every 9.4 days
  • Top authors: dwaser71 (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

900+ active /119,164 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-social-seo-booster/includes/widgets/vcard-widget-business.php+30
    Methods with the same name as their class will not be constructors in a future version of PHP; WPS_SEO_BOOSTER_Vcard_Business_Widget has a deprecated constructor

Server metrics [RAM: ▼1.44MB] [CPU: ▼46.83ms] Passed 4 tests

Analyzing server-side resources used by WP Social SEO Booster - Knowledge Graph Social Signals SEO
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.46 ▼1.008.84 ▼33.90
Dashboard /wp-admin2.59 ▼0.729.69 ▼37.94
Posts /wp-admin/edit.php2.59 ▼0.779.44 ▼33.68
Add New Post /wp-admin/post-new.php2.59 ▼3.3010.47 ▼81.81
Media Library /wp-admin/upload.php2.59 ▼0.6412.59 ▼19.64
WP Social SEO Booster /wp-admin/options-general.php?page=wps-seo-booster-settings2.5911.23

Server storage [IO: ▲0.82MB] [DB: ▲0.03MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 101 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
theysaidso_admin_options
wps_seo_booster_options
widget_recent-comments
widget_widget_wps_seo_booster_business_vcard
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_wps-seo-booster-top-rated

Browser metrics Passed 4 tests

Checking browser requirements for WP Social SEO Booster - Knowledge Graph Social Signals SEO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲10513.71 ▼0.894.55 ▲2.6642.92 ▼1.97
Dashboard /wp-admin2,224 ▲395.87 ▼0.01110.35 ▲8.9839.18 ▼2.40
Posts /wp-admin/edit.php2,107 ▲152.01 ▲0.0039.89 ▲2.4034.76 ▲1.17
Add New Post /wp-admin/post-new.php8,953 ▲7,42026.30 ▲2.93925.69 ▲250.4765.07 ▲5.55
Media Library /wp-admin/upload.php1,403 ▲154.25 ▲0.0298.66 ▼10.0443.90 ▼2.23
WP Social SEO Booster /wp-admin/options-general.php?page=wps-seo-booster-settings2,4672.4048.5767.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/wp-social-seo-booster/includes/widgets/vcard-widget-business.php+30
    Methods with the same name as their class will not be constructors in a future version of PHP; WPS_SEO_BOOSTER_Vcard_Business_Widget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_wps-seo-booster-top-rated
    • db_upgraded
    • widget_recent-comments
    • widget_widget_wps_seo_booster_business_vcard
    • widget_theysaidso_widget
    • wps_seo_booster_options
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wps-seo-booster-settings
    • > Deprecated in wp-content/plugins/wp-social-seo-booster/includes/widgets/vcard-widget-business.php+30
    Methods with the same name as their class will not be constructors in a future version of PHP; WPS_SEO_BOOSTER_Vcard_Business_Widget has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=wps-seo-booster-settings
    • > Deprecated in wp-content/plugins/wp-social-seo-booster/includes/widgets/wps-seo-booster-ratings-widget.php+50
    Methods with the same name as their class will not be constructors in a future version of PHP; Wps_Seo_Booster_Ratings_Widget has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=wps-seo-booster-settings
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in WPS_SEO_BOOSTER_Vcard_Business_Widget is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=wps-seo-booster-settings
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in Wps_Seo_Booster_Ratings_Widget is deprecated since version 4.3.0! Use __construct() instead.

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 fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-social-seo-booster/includes/admin/forms/wps-seo-booster-manual.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-social-seo-booster/includes/admin/forms/wps-seo-booster-wpsocial.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-social-seo-booster/includes/admin/forms/wps-seo-booster-videos.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=wps-seo-booster-settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-social-seo-booster/includes/js/wps-seo-booster-settings.js:28:39)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=wps-seo-booster-settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-social-seo-booster/includes/js/wps-seo-booster-settings.js:176:34)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=wps-seo-booster-settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-social-seo-booster/includes/js/wps-seo-booster-settings.js:4:33)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wps-seo-booster-settings
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration 72% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #17 (SEO Booster Meta Box (Post) Event), #18 (SEO Booster Meta Box (Post) Open Graph)
  • Tags: Please reduce the number of tags, currently 25 tag instead of maximum 10
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

wp-social-seo-booster/wpsocial-seo-booster.php 62% from 13 tests

The main file in "WP Social SEO Booster - Knowledge Graph Social Signals SEO" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-social-seo-booster.php" instead of "wpsocial-seo-booster.php")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin8,446 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP359941,1015,243
PO File29832,2041,998
CSS31014754
JavaScript38434451

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity32.00
▷ Minimum class complexity23.00
▷ Maximum class complexity41.00
Average method complexity7.89
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions72
▷ Named functions72100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
43 PNG files occupy 0.15MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/stars/4stars.png3.99KB1.98KB▼ 50.48%
includes/images/list-square.png0.14KB0.09KB▼ 34.53%
includes/images/stars/3.5stars.png3.94KB1.88KB▼ 52.20%
includes/images/manual/yourprofile.png3.23KB2.49KB▼ 23.04%
includes/images/manual/google_settings.png22.44KB22.46KB0.00%