73% structured-social-profiles

Code Review | Structured Social Profiles

WordPress plugin Structured Social Profiles scored73%from 54 tests.

About plugin

  • Plugin page: structured-social...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 30, 2015
  • Latest release: Jan 30, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: alexmoss (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /2,787 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼15.01ms] Passed 4 tests

This is a short check of server-side resources used by Structured Social Profiles
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.11 ▼23.32
Dashboard /wp-admin3.34 ▲0.0349.35 ▼27.31
Posts /wp-admin/edit.php3.39 ▲0.0352.47 ▲0.86
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.70 ▼3.42
Media Library /wp-admin/upload.php3.27 ▲0.0335.32 ▼5.97
Structured Social Profiles /wp-admin/options-general.php?page=ssp3.2132.51

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
ssp
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Structured Social Profiles
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.27 ▼0.111.84 ▼0.8239.95 ▼15.38
Dashboard /wp-admin2,196 ▲165.62 ▼0.0390.95 ▲1.0142.27 ▲3.69
Posts /wp-admin/edit.php2,101 ▲12.01 ▼0.0139.79 ▲2.7536.15 ▲0.66
Add New Post /wp-admin/post-new.php1,548 ▲323.21 ▲0.18612.43 ▼11.5748.89 ▼14.04
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.05101.33 ▼1.8444.00 ▼2.05
Structured Social Profiles /wp-admin/options-general.php?page=ssp1,5589.59255.2384.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • ssp
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ssp
    • > Notice in wp-content/plugins/structured-social-profiles/class-admin.php+185
    Undefined variable: domain

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
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/structured-social-profiles/class-frontend.php:57
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/structured-social-profiles/class-admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/structured-social-profiles/structured-social-profiles.php:23

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=ssp
    • > Network (severe)
    http://platform.stumbleupon.com/1/widgets.js - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
    • > GET request to /wp-admin/options-general.php?page=ssp
    • > Javascript (severe) in unknown
    https://button.buffer.com/button/?id=78ef5562a0f7dc2d&url=http%3A%2F%2Fpeadig.com%2Fwordpress-plugins%2Fstructured-social-profiles%2F&text=Just%20been%20using%20Structured%20Social%20Profiles%20%23WordPress%20plugin&via=alexmoss&count=horizontal&placement=button&utm_source=http%3A%2F%2Fwp.com%2Fwp-admin%2Foptions-general.php%3Fpage%3Dssp&utm_medium=buffer_button&utm_campaign=buffer 15:647 Uncaught TypeError: Cannot set properties of null (setting 'onclick')
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ssp
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: structured data, social profiles, social, google

structured-social-profiles/structured-social-profiles.php Passed 13 tests

"Structured Social Profiles" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
58 characters long description:
This plugin adds structured data to Google search results.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin360 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33119259
CSS1120101

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/peadig-landscape-300.png4.33KB2.49KB▼ 42.63%