77% feed-them-social

Code Review | Feed Them Social - Page, Post, Video, and Photo Galleries

WordPress plugin Feed Them Social - Page, Post, Video, and Photo Galleries scored77%from 54 tests.

About plugin

  • Plugin page: feed-them-social
  • Plugin version: 4.1.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: WordPress 5.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Dec 19, 2012
  • Latest release: Nov 21, 2023
  • Number of updates: 903
  • Update frequency: every 4.4 days
  • Top authors: slickremix (100%)

Code review

54 tests

User reviews

601 reviews

Install metrics

30,000+ active /3,695,563 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲5.31MB] [CPU: ▲28.45ms] 75% from 4 tests

A check of server-side resources used by Feed Them Social - Page, Post, Video, and Photo Galleries
Please fix the following
  • Extra RAM: The extra memory usage must be under 5MB (currently 5.31MB on /wp-admin/edit.php?post_type=fts&page=fts-system-info-submenu-page)
PageMemory (MB)CPU Time (ms)
Home /8.70 ▲5.2366.95 ▲26.50
Dashboard /wp-admin8.69 ▲5.3481.70 ▲14.80
Posts /wp-admin/edit.php8.75 ▲5.3892.98 ▲44.16
Add New Post /wp-admin/post-new.php11.23 ▲5.33123.62 ▲30.44
Media Library /wp-admin/upload.php8.55 ▲5.3275.16 ▲42.07
Add New Feed /wp-admin/edit.php?post_type=fts&page=create-new-feed8.5571.38
Extension License /wp-admin/edit.php?post_type=fts&page=fts-license-page8.5270.86
Settings /wp-admin/edit.php?post_type=fts&page=fts-settings-page8.5765.69
Feeds /wp-admin/edit.php?post_type=fts8.7373.40
System Info /wp-admin/edit.php?post_type=fts&page=fts-system-info-submenu-page8.5262.79

Server storage [IO: ▲5.20MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 141 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
fts_settings
fts_version
widget_recent-comments
fts_slick_rating_notice
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Feed Them Social - Page, Post, Video, and Photo Galleries: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲18513.49 ▼0.918.81 ▲7.1136.91 ▼0.88
Dashboard /wp-admin2,243 ▲635.66 ▲0.0194.67 ▼0.5444.47 ▲2.48
Posts /wp-admin/edit.php2,178 ▲782.00 ▲0.0039.85 ▼0.1735.78 ▼0.98
Add New Post /wp-admin/post-new.php1,808 ▲27924.75 ▲1.39682.11 ▲46.3142.48 ▼15.83
Media Library /wp-admin/upload.php1,471 ▲714.15 ▼0.04112.68 ▲11.8847.84 ▲5.97
Add New Feed /wp-admin/edit.php?post_type=fts&page=create-new-feed7,3845.86350.5995.79
Extension License /wp-admin/edit.php?post_type=fts&page=fts-license-page1,3175.2349.3235.71
Settings /wp-admin/edit.php?post_type=fts&page=fts-settings-page1,3105.4251.3939.72
Feeds /wp-admin/edit.php?post_type=fts1,7172.1738.8833.06
System Info /wp-admin/edit.php?post_type=fts&page=fts-system-info-submenu-page1,1555.0847.8941.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • db_upgraded
    • widget_theysaidso_widget
    • fts_settings
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • fts_slick_rating_notice
    • fts_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: module in wp-content/plugins/feed-them-social/admin/modules/beaver-builder/includes/frontend.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to a member function render() on null in wp-content/plugins/feed-them-social/admin/modules/beaver-builder/includes/frontend.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feedthemsocial\\add_action() in wp-content/plugins/feed-them-social/admin/modules/elementor/includes/module.php:32

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
    • > GET request to /wp-admin/edit.php?post_type=fts&page=create-new-feed
    • > Other (warning) in unknown
    /wp-admin/post.php?action=edit&post=11 1525 Failed to decode downloaded font: /wp-content/plugins/feed-them-social/admin/css/fonts/SlickRemix.woff?p9iqv
    • > GET request to /wp-admin/edit.php?post_type=fts&page=create-new-feed
    • > Other (warning) in unknown
    /wp-admin/post.php?action=edit&post=11 1546 Failed to decode downloaded font: /wp-content/plugins/feed-them-social/metabox/css/font/fa-brands-400.woff?v=3.2.1
    • > GET request to /wp-admin/edit.php?post_type=fts&page=create-new-feed
    • > Other (warning) in unknown
    /wp-admin/post.php?action=edit&post=11 1589 Failed to decode downloaded font: /wp-content/plugins/feed-them-social/admin/css/fonts/SlickRemix.woff?p9iqv
    • > GET request to /wp-admin/edit.php?post_type=fts&page=create-new-feed
    • > Other (warning) in unknown
    /wp-admin/post.php?action=edit&post=11 1589 Failed to decode downloaded font: /wp-content/plugins/feed-them-social/metabox/css/font/fa-brands-400.woff?v=3.2.1
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=fts&page=fts-settings-page
    • > Other (warning) in unknown
    https://beacon-v2.helpscout.net/static/js/vendor.69ce94b1.js 0 Failed to decode downloaded font: /wp-content/plugins/feed-them-social/admin/css/fonts/SlickRemix.woff?p9iqv
    • > GET request to /wp-admin/edit.php?post_type=fts&page=create-new-feed
    • > Other (warning) in unknown
    https://beacon-v2.helpscout.net/static/js/vendor.69ce94b1.js 0 Failed to decode downloaded font: /wp-content/plugins/feed-them-social/metabox/css/font/fa-brands-400.woff?v=3.2.1
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=fts&page=fts-system-info-submenu-page
    • > Other (warning) in unknown
    https://beacon-v2.helpscout.net/static/js/full-beacon-init.201d6e38.chunk.js 0 Failed to decode downloaded font: /wp-content/plugins/feed-them-social/admin/css/fonts/SlickRemix.woff?p9iqv
    • > GET request to /wp-admin/edit.php?post_type=fts&page=create-new-feed
    • > Other (warning) in unknown
    https://beacon-v2.helpscout.net/static/js/full-beacon-init.201d6e38.chunk.js 0 Failed to decode downloaded font: /wp-content/plugins/feed-them-social/metabox/css/font/fa-brands-400.woff?v=3.2.1
    • > GET request to /wp-admin/edit.php?post_type=fts&page=fts-license-page
    • > Other (warning) in unknown
    /wp-admin/edit.php?post_type=fts&page=fts-license-page - Failed to decode downloaded font: /wp-content/plugins/feed-them-social/admin/css/fonts/SlickRemix.woff?p9iqv
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=fts&page=fts-settings-page
    • > Other (warning) in unknown
    /wp-admin/edit.php?post_type=fts&page=fts-settings-page - Failed to decode downloaded font: /wp-content/plugins/feed-them-social/admin/css/fonts/SlickRemix.woff?p9iqv
    • > GET request to /wp-admin/edit.php?post_type=fts
    • > Other (warning) in unknown
    /wp-admin/edit.php?post_type=fts - Failed to decode downloaded font: /wp-content/plugins/feed-them-social/admin/css/fonts/SlickRemix.woff?p9iqv
    • > GET request to /wp-admin/edit.php?post_type=fts&page=fts-system-info-submenu-page
    • > Other (warning) in unknown
    /wp-admin/edit.php?post_type=fts&page=fts-system-info-submenu-page 255 Failed to decode downloaded font: /wp-content/plugins/feed-them-social/admin/css/fonts/SlickRemix.woff?p9iqv

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #17, #18, #19 in feed-them-social/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can look at the official readme.txt

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

The primary PHP file in "Feed Them Social - Page, Post, Video, and Photo Galleries" version 4.1.9 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "WordPress 5.4")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin38,149 lines of code in 97 files:
LanguageFilesBlank linesComment linesLines of code
PHP474,1788,09219,409
PO File114,2595,5468,621
JavaScript247956685,636
SVG3004,417
CSS111157
JSON1009

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 388)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity60.94
▷ Minimum class complexity1.00
▷ Maximum class complexity556.00
Average method complexity7.67
▷ Minimum method complexity1.00
▷ Maximum method complexity388.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes54
▷ Abstract classes23.70%
▷ Concrete classes5296.30%
▷ Final classes11.92%
Methods489
▷ Static methods193.89%
▷ Public methods46494.89%
▷ Protected methods40.82%
▷ Private methods214.29%
Functions7
▷ Named functions228.57%
▷ Anonymous functions571.43%
Constants11
▷ Global constants11100.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
13 compressed PNG files occupy 0.12MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
metabox/js/jscolor/hv.png2.80KB7.32KB0.00%
metabox/images/google-logo-admin.png1.73KB1.70KB▼ 1.86%
includes/feeds/images/fts-fb-location.png0.50KB0.76KB0.00%
admin/images/feed-them-social-logo.png3.53KB2.98KB▼ 15.56%
admin/css/footer-logo.png2.86KB2.09KB▼ 27.00%