66% wp-facebook-feed

Code Review | The Awesome Feed - Custom Feed

WordPress plugin The Awesome Feed - Custom Feed scored66%from 54 tests.

About plugin

  • Plugin page: wp-facebook-feed
  • Plugin version: 2.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Dec 20, 2016
  • Latest release: May 30, 2022
  • Number of updates: 105
  • Update frequency: every 18.9 days
  • Top authors: arrowplugins (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

900+ active /36,136 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.61ms] Passed 4 tests

This is a short check of server-side resources used by The Awesome Feed - Custom Feed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.47 ▼3.21
Dashboard /wp-admin3.34 ▼0.0144.01 ▼18.29
Posts /wp-admin/edit.php3.39 ▲0.0349.61 ▲4.61
Add New Post /wp-admin/post-new.php5.94 ▲0.0679.43 ▼15.59
Media Library /wp-admin/upload.php3.26 ▲0.0332.17 ▼1.35
Support /wp-admin/edit.php?post_type=fbfba_facebook_feed&page=fbfba_form_support3.3131.13
Add New /wp-admin/post-new.php?post_type=fbfba_facebook_feed3.4652.60
All Facebook Feeds /wp-admin/edit.php?post_type=fbfba_facebook_feed3.3036.09
Our Plugins /wp-admin/edit.php?post_type=fbfba_facebook_feed&page=fbfba_our_plugins3.2730.99
Rate us /wp-admin/edit.php?post_type=fbfba_facebook_feed&page=fbfba_rate_us_plugins3.2529.82

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 140 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for The Awesome Feed - Custom Feed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,944 ▲18313.89 ▼0.6910.80 ▲9.0842.97 ▲0.28
Dashboard /wp-admin2,258 ▲845.82 ▲0.2985.19 ▼13.9437.46 ▼4.68
Posts /wp-admin/edit.php2,168 ▲682.28 ▲0.3341.73 ▲5.4335.01 ▲0.16
Add New Post /wp-admin/post-new.php1,574 ▲3723.87 ▲5.82644.74 ▲53.5134.54 ▼38.19
Media Library /wp-admin/upload.php1,463 ▲664.43 ▲0.2697.04 ▼4.1541.94 ▼1.28
Support /wp-admin/edit.php?post_type=fbfba_facebook_feed&page=fbfba_form_support9552.0828.3739.25
Add New /wp-admin/post-new.php?post_type=fbfba_facebook_feed3,15410.78381.76163.83
All Facebook Feeds /wp-admin/edit.php?post_type=fbfba_facebook_feed1,1372.2432.4928.00
Our Plugins /wp-admin/edit.php?post_type=fbfba_facebook_feed&page=fbfba_our_plugins1,0471.8725.2787.38
Rate us /wp-admin/edit.php?post_type=fbfba_facebook_feed&page=fbfba_rate_us_plugins8901.9326.8633.77

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/edit.php?post_type=fbfba_facebook_feed&page=fbfba_form_support
    • > Notice in wp-content/plugins/wp-facebook-feed/includes/fbfba-support-page.php+486
    Undefined variable: _SESSION
    • > GET request to /wp-admin/post-new.php?post_type=fbfba_facebook_feed
    • > Notice in wp-content/plugins/wp-facebook-feed/includes/fbfba-settings-page.php+248
    Undefined index: post
    • > GET request to /wp-admin/post-new.php?post_type=fbfba_facebook_feed
    • > Notice in wp-content/plugins/wp-facebook-feed/includes/fbfba-settings-page.php+249
    Undefined index: action

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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-facebook-feed/includes/fbfba-rate-us.php
    • > /wp-content/plugins/wp-facebook-feed/js/template.php
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-facebook-feed/includes/fbfba-shortcode.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-facebook-feed/includes/fbfba-post-type.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-facebook-feed/includes/fbfba-settings-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-facebook-feed/includes/fbfba-post-meta-boxes.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-facebook-feed/includes/fbfba-custom-columns.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-facebook-feed/includes/fbfba-save-post.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-facebook-feed/includes/fbfba-our-plugins.php:81
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-facebook-feed/includes/fbfba-enqueue-scripts.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/edit.php?post_type=fbfba_facebook_feed&page=fbfba_form_support
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Modernizr is not defined" "ReferenceError: Modernizr is not defined\n at HTMLInputElement.\u003Canonymous> (/wp-admin/edit.php?post_type=fbfba_facebook_feed&page=fbfba_form_support:174:3)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:1594)\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit.php?post_type=fbfba_facebook_feed&page=fbfba_form_support:171:15)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/edit.php?post_type=fbfba_facebook_feed&page=fbfba_form_support
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: Modernizr is not defined
    • > GET request to /wp-admin/post-new.php?post_type=fbfba_facebook_feed
    • > Network (severe)
    https://www.arrowplugins.com/1.gif - Failed to load resource: the server responded with a status of 403 ()
    • > GET request to /wp-admin/post-new.php?post_type=fbfba_facebook_feed
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/post-new.php?post_type=fbfba_facebook_feed
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/post-new.php?post_type=fbfba_facebook_feed
    • > 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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (All Facebook Feeds), #2 (Facebook Feed Settings), #3 (Facebook Feed Templates), #4 (Facebook Feed Vertical View), #5 (Facebook Feed Masonry), #6 (Facebook Feed Blog Style View)
The official readme.txt might help

wp-facebook-feed/facebook-feed-by-arrowplugins.php 92% from 13 tests

The entry point to "The Awesome Feed - Custom Feed" version 2.2.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-facebook-feed.php" instead of "facebook-feed-by-arrowplugins.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected27,150 lines of code in 106 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript921,7401,97324,495
PHP133421382,530
CSS185125

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
31 PNG files occupy 4.65MB with 3.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/template3.png255.03KB84.38KB▼ 66.92%
includes/images/simple.png355.81KB110.59KB▼ 68.92%
screenshot-2.png119.23KB44.41KB▼ 62.75%
includes/images/ilogo.png135.83KB45.77KB▼ 66.31%
includes/images/accepted_48.png5.13KB1.89KB▼ 63.13%