83% fbtw-feeds

Code Review | Social Feeds

WordPress plugin Social Feeds scored83%from 54 tests.

About plugin

  • Plugin page: fbtw-feeds
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Dec 20, 2016
  • Latest release: Jul 5, 2022
  • Number of updates: 21
  • Update frequency: every 96.2 days
  • Top authors: shahaji9 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /3,431 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.01ms] Passed 4 tests

Server-side resources used by Social Feeds
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0734.96 ▼6.53
Dashboard /wp-admin3.34 ▲0.0350.83 ▲1.78
Posts /wp-admin/edit.php3.39 ▲0.0348.52 ▼5.09
Add New Post /wp-admin/post-new.php5.94 ▲0.0596.15 ▲1.79
Media Library /wp-admin/upload.php3.26 ▲0.0337.82 ▲8.75
FBTW Feeds /wp-admin/options-general.php?page=facebook_twitter_feeds_options3.2129.85

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 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 Social Feeds
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲10213.88 ▼0.6411.26 ▲9.1641.80 ▼0.84
Dashboard /wp-admin2,206 ▲265.66 ▲0.1491.49 ▼0.2941.05 ▼0.30
Posts /wp-admin/edit.php2,108 ▲52.04 ▲0.0236.65 ▼4.1333.66 ▼6.01
Add New Post /wp-admin/post-new.php1,533 ▼423.17 ▲4.92624.07 ▲14.8371.40 ▲8.05
Media Library /wp-admin/upload.php1,405 ▲114.28 ▲0.08100.08 ▲0.0242.18 ▼3.36
FBTW Feeds /wp-admin/options-general.php?page=facebook_twitter_feeds_options1,4172.0523.5131.36

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=facebook_twitter_feeds_options
    • > 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=facebook_twitter_feeds_options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 92 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=facebook_twitter_feeds_options
    • > Notice in wp-content/plugins/fbtw-feeds/admin-settings.php+512
    Trying to access array offset on value of type bool

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (See screenshot-1.png - Shows how your plugin will display in frontend.), #2 (See screenshot-2.png - Explain admin settings page.), #3 (See screenshot-3.png - Shows facebook timeline.), #4 (See screenshot-4.png - Shows twitter follow button and feeds.)
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
You can take inspiration from this readme.txt

fbtw-feeds/index.php 85% from 13 tests

This is the main PHP file of "Social Feeds" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 183 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fbtw-feeds.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin653 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP3110120440
JSON10086
JavaScript2101265
CSS201062

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.75MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png95.93KB26.27KB▼ 72.61%
images/icon-tw.png0.74KB0.72KB▼ 1.99%
screenshot-1.png229.00KB82.07KB▼ 64.16%
images/icon-fb.png0.58KB0.51KB▼ 12.58%
screenshot-4.png195.74KB65.06KB▼ 66.76%