10% social-fellow

Code Review | Social Fellow

WordPress plugin Social Fellow scored10%from 54 tests.

About plugin

  • Plugin page: social-fellow
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Apr 6, 2015
  • Latest release: Apr 19, 2015
  • Number of updates: 32
  • Update frequency: every 0.4 days
  • Top authors: PedroEscudero (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,098 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method social_fellow::activation() should not be called statically

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.24ms] Passed 4 tests

This is a short check of server-side resources used by Social Fellow
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.59 ▼11.51
Dashboard /wp-admin3.35 ▲0.0448.14 ▼0.22
Posts /wp-admin/edit.php3.40 ▲0.0451.41 ▲1.13
Add New Post /wp-admin/post-new.php5.95 ▲0.0697.99 ▲1.66
Media Library /wp-admin/upload.php3.27 ▲0.0437.58 ▲4.22
Social Fellow /wp-admin/options-general.php?page=socialfellow3.2131.83

Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
These are issues you should consider
  • You have illegally modified 2 files (0.00KB) outside of "wp-content/plugins/social-fellow/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/social-fellow/assets/banner-772\303\227250.png"
    • (new file) "wp-content/plugins/social-fellow/assets/banner-1544\303\227500.png"
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Social Fellow
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲6214.76 ▲0.081.98 ▼0.1342.09 ▼2.37
Dashboard /wp-admin2,214 ▲236.03 ▲1.17113.74 ▲12.1239.86 ▼3.33
Posts /wp-admin/edit.php2,100 ▲112.02 ▲0.0241.11 ▲0.2836.02 ▼3.71
Add New Post /wp-admin/post-new.php1,521 ▼717.40 ▼0.70624.77 ▲22.1259.45 ▲1.42
Media Library /wp-admin/upload.php1,396 ▲84.36 ▲0.1699.63 ▼6.5741.27 ▼2.28
Social Fellow /wp-admin/options-general.php?page=socialfellow1,2708.26323.1359.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method social_fellow::deactivation() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=socialfellow
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=socialfellow
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=socialfellow
    • > Notice in wp-content/plugins/social-fellow/social-fellow.php+202
    Undefined index: limit
    • > GET request to /wp-admin/options-general.php?page=socialfellow
    • > Notice in wp-content/plugins/social-fellow/social-fellow.php+231
    Undefined variable: selected_limit_20
    • > GET request to /wp-admin/options-general.php?page=socialfellow
    • > Notice in wp-content/plugins/social-fellow/social-fellow.php+232
    Undefined variable: selected_limit_50
    • > GET request to /wp-admin/options-general.php?page=socialfellow
    • > Notice in wp-content/plugins/social-fellow/social-fellow.php+233
    Undefined variable: selected_limit_100
    • > GET request to /wp-admin/options-general.php?page=socialfellow
    • > Notice in wp-content/plugins/social-fellow/social-fellow.php+234
    Undefined variable: selected_limit_all
    • > GET request to /wp-admin/options-general.php?page=socialfellow
    • > Notice in wp-content/plugins/social-fellow/social-fellow.php+251
    Undefined index: pa

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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/social-fellow/social-fellow.php:27

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=socialfellow
    • > 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 93% from 29 tests

readme.txt 94% 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:
  • Plugin Name: You should set the name of your plugin on the first line ( === social-fellow === )
The official readme.txt is a good inspiration

social-fellow/social-fellow.php 92% from 13 tests

Analyzing the main PHP file in "Social Fellow" version 2.1.0
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 193 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
No dangerous file extensions were detected225 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16051208
CSS11011
JavaScript1106

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544×500.png77.79KB34.59KB▼ 55.53%
assets/banner-772×250.png42.78KB18.25KB▼ 57.33%
assets/screenshot-2.png48.13KB24.01KB▼ 50.11%