78% social-semantic-recommendation-sosere

Code Review | Social Semantic Recommendation (SOSERE)

WordPress plugin Social Semantic Recommendation (SOSERE) scored 78% from 54 tests.

About plugin

  • Plugin page: social-semantic-r...
  • Plugin version: 3.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 27, 2014
  • Latest release: Aug 17, 2023
  • Number of updates: 219
  • Update frequency: every 15.9 days
  • Top authors: sosere (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

30+ active / 9,533 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.17MB] [CPU: ▼6.79ms] Passed 4 tests

This is a short check of server-side resources used by Social Semantic Recommendation (SOSERE)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1242.96 ▼0.17
Dashboard /wp-admin3.49 ▲0.1849.95 ▼9.65
Posts /wp-admin/edit.php3.60 ▲0.2446.36 ▼3.91
Add New Post /wp-admin/post-new.php6.07 ▲0.1884.79 ▼13.41
Media Library /wp-admin/upload.php3.41 ▲0.1836.65 ▲1.58
SOSERE /wp-admin/options-general.php?page=sosere-settings3.4037.82

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
plugin_sosere
plugin_sosere_activated
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Social Semantic Recommendation (SOSERE): an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.29 ▼1.131.72 ▲0.0143.98 ▼2.12
Dashboard /wp-admin2,207 ▲194.80 ▼0.10114.89 ▲8.0942.48 ▼4.25
Posts /wp-admin/edit.php2,096 ▲41.99 ▼0.0542.23 ▲1.4548.43 ▲9.80
Add New Post /wp-admin/post-new.php1,540 ▲623.40 ▲0.24660.38 ▼22.0548.40 ▼13.32
Media Library /wp-admin/upload.php1,395 ▲104.15 ▼0.0596.27 ▼4.3142.92 ▼4.76
SOSERE /wp-admin/options-general.php?page=sosere-settings1,6083.4251.2570.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-comments
    • plugin_sosere
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • plugin_sosere_activated

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/social-semantic-recommendation-sosere/sosere_lib/languages.ini.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/social-semantic-recommendation-sosere/social-semantic-recommendation-sosere.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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 to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can take inspiration from this readme.txt

social-semantic-recommendation-sosere/social-semantic-recommendation-sosere.php 85% from 13 tests

The main PHP file in "Social Semantic Recommendation (SOSERE)" ver. 3.1.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 209 characters long)
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("/sosere_languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,304 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP42494841,199
PO File54401,066935
CSS2175101
JavaScript1172769

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.69
Average class complexity109.33
▷ Minimum class complexity11.00
▷ Maximum class complexity177.00
Average method complexity7.77
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods48
▷ Static methods12.08%
▷ Public methods4491.67%
▷ Protected methods00.00%
▷ Private methods48.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.15MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
sosere_img/admin-viewstyle2.png72.13KB11.03KB▼ 84.71%
sosere_img/admin-viewstyle1.png72.77KB11.19KB▼ 84.62%
sosere_img/sosere-logo30x30.png5.95KB1.30KB▼ 78.21%
sosere_img/admin-icon-edit.png0.49KB0.42KB▼ 13.83%
sosere_img/admin-viewstyle0.png4.42KB0.63KB▼ 85.85%