72% feeds-of-twitter

Code Review | WordPress Twitter Plugin: Display Your Feed on Your WordPress Site with Ease!

WordPress plugin WordPress Twitter Plugin: Display Your Feed on Your WordPress Site with Ease! scored 72% from 54 tests.

About plugin

  • Plugin page: feeds-of-twitter
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.2
  • WordPress version: 6.3.1
  • First release: Mar 6, 2018
  • Latest release: May 23, 2023
  • Number of updates: 44
  • Update frequency: every 43.3 days
  • Top authors: samdani (100%)Otto42 (4.55%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active / 8,036 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.74MB] [CPU: ▼0.51ms] 75% from 4 tests

Analyzing server-side resources used by WordPress Twitter Plugin: Display Your Feed on Your WordPress Site with Ease!
Please take the time to fix the following items
  • CPU: Total CPU usage should be kept under 500.00ms (currently 635.07ms on /wp-admin/admin.php?page=gs-twitter-plugins-premium)
PageMemory (MB)CPU Time (ms)
Home /4.14 ▲0.6842.54 ▲0.43
Dashboard /wp-admin4.07 ▲0.7754.19 ▲1.85
Posts /wp-admin/edit.php4.19 ▲0.8354.95 ▲4.47
Add New Post /wp-admin/post-new.php6.65 ▲0.7692.31 ▼8.78
Media Library /wp-admin/upload.php3.97 ▲0.7443.54 ▲6.14
GS Plugins Lite /wp-admin/admin.php?page=gs-twitter-plugins-lite4.27782.45
Help & Usage /wp-admin/admin.php?page=gs-twitter-plugins-help3.9640.86
GS Plugins Pro /wp-admin/admin.php?page=gs-twitter-plugins-premium4.06635.07
Twitter Feed /wp-admin/admin.php?page=twitter-feed-settings3.9641.46

Server storage [IO: ▲1.97MB] [DB: ▲0.04MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 10 new options
New WordPress options
can_compress_scripts
gs_twitter_user_card_settings
gs_twitter_collection_settings
widget_gs_tweet_widget
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
gs_twitter_feed_settings

Browser metrics Passed 4 tests

Checking browser requirements for WordPress Twitter Plugin: Display Your Feed on Your WordPress Site with Ease!
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,036 ▲27915.10 ▲1.101.99 ▼0.0940.18 ▼6.65
Dashboard /wp-admin2,409 ▲2216.76 ▲0.87136.71 ▲35.3247.65 ▲4.01
Posts /wp-admin/edit.php2,311 ▲2223.69 ▲1.6450.54 ▲8.5533.23 ▼5.65
Add New Post /wp-admin/post-new.php1,568 ▲3517.50 ▼5.75663.45 ▼19.7536.50 ▼24.67
Media Library /wp-admin/upload.php1,451 ▲604.49 ▲0.3595.38 ▼2.9044.83 ▼2.19
GS Plugins Lite /wp-admin/admin.php?page=gs-twitter-plugins-lite2,7403.3948.21120.64
Help & Usage /wp-admin/admin.php?page=gs-twitter-plugins-help1,1413.3144.1844.64
GS Plugins Pro /wp-admin/admin.php?page=gs-twitter-plugins-premium2,4023.4045.2251.90
Twitter Feed /wp-admin/admin.php?page=twitter-feed-settings2,1285.54119.7054.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • gs_twitter_feed_settings
    • gs_twitter_user_card_settings
    • gs_twitter_collection_settings
    • widget_recent-comments
    • widget_gs_tweet_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/feeds-of-twitter/lib/templates/gs-twitter-actions-buttons.php
  • 24× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: tweets in wp-content/plugins/feeds-of-twitter/lib/templates/gs-twitter-actions-buttons.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'GS_Twitter_WeDevs_Settings_API' not found in wp-content/plugins/feeds-of-twitter/assets/admin/gs_twitterfeed_options_config.php:20
    • > PHP Notice
      Undefined variable: tweets in wp-content/plugins/feeds-of-twitter/lib/templates/gs-twitter-actions-buttons.php on line 6
    • > PHP Notice
      Undefined variable: link in wp-content/plugins/feeds-of-twitter/lib/templates/gs-twitter-actions-buttons.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feeds-of-twitter/lib/gs-twitter-feed-enque-scripts.php:18
    • > PHP Notice
      Undefined variable: gs_tweets in wp-content/plugins/feeds-of-twitter/lib/templates/gs_tw_feed_theme2dark.php on line 5
    • > PHP Notice
      Trying to get property 'id_str' of non-object in wp-content/plugins/feeds-of-twitter/lib/templates/gs-twitter-actions-buttons.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/feeds-of-twitter/lib/twitter-feed-for-developers.php:4
    • > PHP Notice
      Trying to get property 'id_str' of non-object in wp-content/plugins/feeds-of-twitter/lib/templates/gs-twitter-actions-buttons.php on line 5
    • > PHP Notice
      Undefined variable: gs_tweets in wp-content/plugins/feeds-of-twitter/lib/templates/gs_tw_feed_theme1light.php on line 5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=twitter-feed-settings
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=twitter-feed-settings
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: best wordpress twitter plugin, twitter feed plugin wordpress, wordpress twitter plugin, wordpress twitter feed plugin, twitter plugin

feeds-of-twitter/gs-twitter-feeds.php 77% from 13 tests

The main PHP file in "WordPress Twitter Plugin: Display Your Feed on Your WordPress Site with Ease!" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("feeds-of-twitter.php" instead of "gs-twitter-feeds.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 497 characters long)

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
Good job! No executable or dangerous file extensions detected9,349 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP178311,0393,263
SVG6002,973
CSS5169392,397
Sass11016521
JavaScript15165195

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity16.67
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes18
▷ Abstract classes211.11%
▷ Concrete classes1688.89%
▷ Final classes00.00%
Methods184
▷ Static methods115.98%
▷ Public methods15684.78%
▷ Protected methods73.80%
▷ Private methods2111.41%
Functions28
▷ Named functions2796.43%
▷ Anonymous functions13.57%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon-128x128.png4.33KB2.99KB▼ 30.85%
assets/img/twitter_logo.png1.61KB0.88KB▼ 45.23%
assets/img/test-images-2.png12.01KB3.96KB▼ 67.02%