78% ls-social-feed

Code Review | LS Social Feed

WordPress plugin LS Social Feed scored78%from 54 tests.

About plugin

  • Plugin page: ls-social-feed
  • Plugin version: 0.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-3.5
  • WordPress version: 6.3.1
  • First release: Apr 17, 2013
  • Latest release: Apr 24, 2013
  • Number of updates: 11
  • Update frequency: every 0.6 days
  • Top authors: ladislav.soukup@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,565 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
Install script ran successfully

Server metrics [RAM: ▲0.54MB] [CPU: ▲2.25ms] Passed 4 tests

An overview of server-side resources used by LS Social Feed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.02 ▲0.5653.07 ▲11.04
Dashboard /wp-admin3.88 ▲0.5852.41 ▲3.03
Posts /wp-admin/edit.php3.93 ▲0.5747.95 ▼0.84
Add New Post /wp-admin/post-new.php6.40 ▲0.5194.09 ▲3.00
Media Library /wp-admin/upload.php3.74 ▲0.5138.03 ▲3.79
LS Social Feed /wp-admin/options-general.php?page=options-general.php_ls_social_feed3.7235.98

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for LS Social Feed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.84 ▲0.461.88 ▼0.1642.52 ▼2.09
Dashboard /wp-admin2,210 ▲214.83 ▼0.10100.19 ▼25.1641.40 ▼5.20
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0433.81 ▼2.7932.61 ▼0.68
Add New Post /wp-admin/post-new.php1,545 ▲2618.04 ▼5.28601.14 ▼69.5251.20 ▼3.35
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.0295.18 ▼5.9640.79 ▼1.82
LS Social Feed /wp-admin/options-general.php?page=options-general.php_ls_social_feed2,4232.4150.5266.81

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ls-social-feed/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ls-social-feed/ls-social-feed.php:46

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=options-general.php_ls_social_feed
    • > Console-api (warning) in unknown
    /wp-includes/js/jquery/jquery.min.js?ver=3.7.0 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at apc_init (/wp-content/plugins/ls-social-feed/admin-page-class/js/Admin_Page_Class.js:49:22)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/ls-social-feed/admin-page-class/js/Admin_Page_Class.js:20:3)\n at e (/wp-includes/js/jquery/jquery.min.js?ver=3.7.0:2:26990)\n at t (/wp-includes/js/jquery/jquery.min.js?ver=3.7.0:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=options-general.php_ls_social_feed
    • > Javascript (severe) in unknown
    /wp-includes/js/jquery/jquery.min.js?ver=3.7.0 1:28721 Uncaught TypeError: $(...).live is not a function
    • > GET request to /wp-admin/options-general.php?page=options-general.php_ls_social_feed
    • > Network (severe)
    https://button.flattr.com/flattr-badge-large.png - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: template, aggregate, facebook, full control, google...

ls-social-feed/ls-social-feed.php 92% from 13 tests

"LS Social Feed" version 0.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 151 characters long)

Code Analysis Passed 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 plugin11,845 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript128038956,874
PHP34541,4282,343
CSS92822491,848
PO File5317441759
HTML20021

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity210.50
▷ Minimum class complexity43.00
▷ Maximum class complexity378.00
Average method complexity4.04
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods138
▷ Static methods00.00%
▷ Public methods13497.10%
▷ Protected methods00.00%
▷ Private methods42.90%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin-page-class/css/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
admin-page-class/css/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
admin-page-class/css/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
admin-page-class/css/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
admin-page-class/js/select2/select2x2.png0.83KB0.77KB▼ 6.15%