77% wpsso

Code Review | WordPress Social and Search Optimization - The Complete Structured Data Plugin for WordPress

WordPress plugin WordPress Social and Search Optimization - The Complete Structured Data Plugin for WordPress scored 77% from 54 tests.

About plugin

  • Plugin page: wpsso
  • Plugin version: 12.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9.3
  • WordPress version: 5.9.2
  • First release: Dec 29, 2013
  • Latest release: Apr 5, 2022
  • Number of updates: 1,000
  • Update frequency: every 0.1 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

275 reviews

Install metrics

10,000+ active / 3,199,333 total downloads

Benchmarks

Plugin footprint 81% 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: ▲8.23MB] [CPU: ▼151.60ms] 25% from 4 tests

This is a short check of server-side resources used by WordPress Social and Search Optimization - The Complete Structured Data Plugin for WordPress
It is recommended to improve the following
  • RAM: You should keep total memory usage under 10MB (currently 16.02MB on /wp-admin/admin.php?page=wpsso-general)
  • CPU: Total CPU usage must kept under 500.00ms (currently 588.34ms on /wp-admin/admin.php?page=wpsso-dashboard)
  • Extra RAM: The extra memory usage must be under 5MB (currently 8.23MB on /wp-admin/admin.php?page=wpsso-general)
PageMemory (MB)CPU Time (ms)
Home /9.96 ▲6.45165.48 ▲83.70
Dashboard /wp-admin11.78 ▲8.3792.41 ▲46.97
Posts /wp-admin/edit.php13.33 ▲9.68126.81 ▲77.92
Add New Post /wp-admin/post-new.php19.95 ▲12.98458.69 ▼803.43
Media Library /wp-admin/upload.php11.72 ▲8.42105.47 ▲72.14
Advanced Settings /wp-admin/admin.php?page=wpsso-advanced12.961,124.82
Tools and Actions /wp-admin/admin.php?page=wpsso-tools11.7480.09
Premium Licenses /wp-admin/admin.php?page=wpsso-licenses11.8079.76
Setup Guide /wp-admin/admin.php?page=wpsso-setup11.78547.67
Profile SSO - Social and Search Optimization /wp-admin/users.php?page=wpsso-your-sso15.82154.97
Dashboard /wp-admin/admin.php?page=wpsso-dashboard13.60588.34
Essential Settings /wp-admin/admin.php?page=wpsso-essential12.1188.95
Plugin Add-ons /wp-admin/admin.php?page=wpsso-addons11.7585.53
Add Person /wp-admin/users.php?page=wpsso-add-person11.8483.47
General Settings /wp-admin/admin.php?page=wpsso-general16.02112.51

Server storage [IO: ▲7.93MB] [DB: ▲0.79MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
  • Illegal file modification detected: 7 files (542.42KB) outside of "wp-content/plugins/wpsso/" and "wp-content/uploads/"
    • (new file) wp-content/cache/wpsso/.htaccess
    • (new file) wp-content/cache/wpsso/2b4e229f84d63db61d330de40b279391.txt
    • (new file) wp-content/cache/wpsso/9888896ca6ccbaeaaea6bfdb95331979.js
    • (new file) wp-content/cache/wpsso/e6179578f5872bb88d81a076791ec462.html
    • (new file) wp-content/cache/wpsso/d9e5a6f9f4a95b2c877a442f429f83b1.js
    • (new file) wp-content/cache/wpsso/ec9ce89da92e0b7a1b416ccd170da670.js
    • (new file) wp-content/cache/wpsso/index.php
Filesystem: 233 new files
Database: no new tables, 3 new options
New WordPress options
wpsso_options
wpsso_timestamps
category_children

Browser metrics Passed 4 tests

A check of browser resources used by WordPress Social and Search Optimization - The Complete Structured Data Plugin for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,082 ▲32816.00 ▲0.529.09 ▲0.193.14 ▼0.92
Dashboard /wp-admin3,160 ▲2446.45 ▲0.06197.30 ▼23.08204.40 ▼12.89
Posts /wp-admin/edit.php2,955 ▲2373.71 ▲0.28106.22 ▲10.68240.97 ▲56.73
Add New Post /wp-admin/post-new.php8,018 ▲6,36923.99 ▲2.24998.21 ▲339.26329.82 ▲104.47
Media Library /wp-admin/upload.php1,922 ▲1905.79 ▲0.05202.18 ▲14.31237.52 ▼13.40
Advanced Settings /wp-admin/admin.php?page=wpsso-advanced9,7766.98252.21295.36
Tools and Actions /wp-admin/admin.php?page=wpsso-tools1,7595.46116.28209.51
Premium Licenses /wp-admin/admin.php?page=wpsso-licenses1,8625.49128.22221.22
Setup Guide /wp-admin/admin.php?page=wpsso-setup2,2635.55120.33240.45
Profile SSO - Social and Search Optimization /wp-admin/users.php?page=wpsso-your-sso9,0336.57268.07233.01
Dashboard /wp-admin/admin.php?page=wpsso-dashboard3,4025.55151.51203.80
Essential Settings /wp-admin/admin.php?page=wpsso-essential2,0335.69122.16184.68
Plugin Add-ons /wp-admin/admin.php?page=wpsso-addons2,3205.52131.77215.17
Add Person /wp-admin/users.php?page=wpsso-add-person2,11813.75217.61206.11
General Settings /wp-admin/admin.php?page=wpsso-general6,2917.53183.89246.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 3 options
    • category_children
    • wpsso_timestamps
    • wpsso_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please fix the following items
  • 137× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/wpsso/lib/link-rel.php
    • > /wp-content/plugins/wpsso/lib/users/add-person.php
    • > /wp-content/plugins/wpsso/lib/pinterest.php
    • > /wp-content/plugins/wpsso/lib/sitesubmenu/site-licenses.php
    • > /wp-content/plugins/wpsso/lib/compat.php
    • > /wp-content/plugins/wpsso/lib/json-filters/type/movie.php
    • > /wp-content/plugins/wpsso/lib/submenu/setup.php
    • > /wp-content/plugins/wpsso/lib/ext/parse-readme.php
    • > /wp-content/plugins/wpsso/lib/functions.php
    • > /wp-content/plugins/wpsso/lib/json-filters/type/blog.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Interface 'Michelf\\MarkdownInterface' not found in wp-content/plugins/wpsso/lib/ext/markdown/Markdown.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Michelf\\Markdown' not found in wp-content/plugins/wpsso/lib/ext/markdown/MarkdownExtra.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wpsso/lib/theme-compat/embed-content.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wpsso/lib/theme-compat/embed.php:10

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: meta tags, image seo, google search, schema, sitemaps...

wpsso/wpsso.php 92% from 13 tests

Analyzing the main PHP file in "WordPress Social and Search Optimization - The Complete Structured Data Plugin for WordPress" version 12.1.0
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 153 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 plugin62,363 lines of code in 192 files:
LanguageFilesBlank linesComment linesLines of code
PHP14724,45513,75149,839
PO File12,1882,8145,483
CSS125591802,507
JavaScript148375552,226
HTML1470271,094
JSON100884
Markdown1470197
SVG21020133

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
The following items need your attention
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 307)
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity70.75
▷ Minimum class complexity1.00
▷ Maximum class complexity607.00
Average method complexity6.57
▷ Minimum method complexity1.00
▷ Maximum method complexity307.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes132
▷ Abstract classes32.27%
▷ Concrete classes12997.73%
▷ Final classes00.00%
Methods1,668
▷ Static methods42225.30%
▷ Public methods1,40784.35%
▷ Protected methods1599.53%
▷ Private methods1026.12%
Functions42
▷ Named functions3788.10%
▷ Anonymous functions511.90%
Constants17
▷ Global constants1694.12%
▷ Class constants15.88%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-256x256.png53.13KB24.63KB▼ 53.64%
images/icon-128x128.png19.41KB9.26KB▼ 52.30%