10% all-in-one-social-feeds

Code Review | All in one Social Feeds

WordPress plugin All in one Social Feeds scored 10% from 54 tests.

About plugin

  • Plugin page: all-in-one-social...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.6
  • WordPress version: 6.3.1
  • First release: Aug 20, 2015
  • Latest release: Aug 20, 2016
  • Number of updates: 8
  • Update frequency: every 45.8 days
  • Top authors: NetAttingo Technologies (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 3,811 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/all-in-one-social-feeds/all-in-one-social-feeds.php+11
    Constant WP_DEBUG already defined

Server metrics [RAM: ▼1.96MB] [CPU: ▼55.55ms] Passed 4 tests

This is a short check of server-side resources used by All in one Social Feeds
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.435.28 ▼34.21
Dashboard /wp-admin2.05 ▼1.265.36 ▼44.83
Posts /wp-admin/edit.php2.05 ▼1.315.36 ▼45.42
Add New Post /wp-admin/post-new.php2.05 ▼3.845.53 ▼97.72
Media Library /wp-admin/upload.php2.05 ▼1.185.69 ▼29.11
About Us /wp-admin/admin.php?page=about-us2.055.07
All in one Social Feeds /wp-admin/admin.php?page=aiosf-page-setting2.055.77

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 65 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_allsocialfeed_widget

Browser metrics Passed 4 tests

Checking browser requirements for All in one Social Feeds
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲20313.71 ▼0.4511.62 ▲9.7547.83 ▼5.46
Dashboard /wp-admin2,233 ▲455.80 ▲0.89102.94 ▼4.9179.44 ▲38.02
Posts /wp-admin/edit.php2,110 ▲211.98 ▼0.0639.02 ▼1.8335.72 ▼0.22
Add New Post /wp-admin/post-new.php1,542 ▲123.08 ▲4.87742.38 ▲123.3061.12 ▲12.08
Media Library /wp-admin/upload.php1,412 ▲244.21 ▲0.0297.27 ▼1.6574.99 ▲31.12
About Us /wp-admin/admin.php?page=about-us8222.0727.0230.07
All in one Social Feeds /wp-admin/admin.php?page=aiosf-page-setting1,1722.0826.6132.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/all-in-one-social-feeds/all-in-one-social-feeds.php+11
    Constant WP_DEBUG already defined
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_allsocialfeed_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/all-in-one-social-feeds.php+11
    Constant WP_DEBUG already defined
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+5
    Undefined index: add_opt_submit
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+8
    Undefined index: netgo_fb_enable
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+9
    Undefined index: netgo_facebook_app_id
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+10
    Undefined index: netgo_facebook_secret_key
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+11
    Undefined index: netgo_facebook_page_id
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+13
    Undefined index: netgo_tw_enable
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+14
    Undefined index: netgo_consumer_key
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+15
    Undefined index: netgo_screen_name
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+16
    Undefined index: netgo_consumer_secret
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+17
    Undefined index: netgo_access_token
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+18
    Undefined index: netgo_access_token_secret
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+21
    Undefined index: netgo_ins_enable
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+22
    Undefined index: netgo_ins_user_id
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+23
    Undefined index: netgo_ins_access_token
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+26
    Undefined index: netgo_pi_enable
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+27
    Undefined index: netgo_pi_user_name
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+30
    Undefined index: netgo_yt_enable
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+31
    Undefined index: netgo_youtube_video_url
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+34
    Undefined index: netgo_box_h
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+35
    Undefined index: netgo_feeds
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+36
    Undefined index: netgo_jquery_include
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+38
    Undefined index: saved
    • > GET request to /wp-admin/admin.php?page=aiosf-page-setting
    • > Notice in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php+124
    Undefined variable: message

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/all-in-one-social-feeds/pages/default/tw.php
    • > /wp-content/plugins/all-in-one-social-feeds/pages/default/yt.php
    • > /wp-content/plugins/all-in-one-social-feeds/pages/default/pi.php
  • 20× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/all-in-one-social-feeds/pages/default/tw.php on line 6
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/all-in-one-social-feeds/pages/default/pi.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/all-in-one-social-feeds/includes/yt/youtube.php:2
    • > PHP Notice
      Trying to get property 'data' of non-object in wp-content/plugins/all-in-one-social-feeds/pages/default/in.php on line 3
    • > PHP Notice
      Undefined variable: response in wp-content/plugins/all-in-one-social-feeds/pages/default/tw.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to a member function api() on null in wp-content/plugins/all-in-one-social-feeds/pages/default/fb.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/all-in-one-social-feeds/pages/about-us.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/all-in-one-social-feeds/pages/aiosf-page-setting.php:5
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/all-in-one-social-feeds/pages/default/in.php on line 3
    • > PHP Notice
      Undefined variable: result in wp-content/plugins/all-in-one-social-feeds/pages/default/in.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Back end faceBook credentials setting), #2 (Back end twitter credentials setting), #3 (Back end instagram credentials setting), #4 (Back end pinterest credentials setting), #5 (Back end youTube credentials setting), #6 (Front end faceBook feeds look.), #7 (Front end twitter feeds look.), #8 (Front end instagram feeds look.), #9 (Front end pinterest feeds look.), #10 (Front end youTube feed look.)
The official readme.txt might help

all-in-one-social-feeds/all-in-one-social-feeds.php Passed 13 tests

The main PHP file in "All in one Social Feeds" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
122 characters long description:
This plugin helps to display latest feeds from facebook, twitter,instagram,pinterest and youtube with tabs using a widget.

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
These items require your attention
  • For security reasons, never distribute binary or executable files with your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/all-in-one-social-feeds/includes/fb/fb_ca_chain_bundle.crt
3,327 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP162296551,466
CSS35571631,409
JavaScript360145452

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity32.40
▷ Minimum class complexity1.00
▷ Maximum class complexity116.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods80
▷ Static methods56.25%
▷ Public methods3645.00%
▷ Protected methods4252.50%
▷ Private methods22.50%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants660.00%
▷ Class constants440.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
37 PNG files occupy 0.42MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/img/boxLeft.png0.19KB0.14KB▼ 27.08%
images/twitter.png0.47KB0.73KB0.00%
screenshot-9.png78.74KB7.98KB▼ 89.87%
screenshot-7.png21.21KB9.17KB▼ 56.77%
images/date-celender.png1.23KB0.44KB▼ 64.00%