77% tagembed-widget

Code Review | Tagembed: Embed Twitter Feed, Google Reviews, YouTube Videos, TikTok, RSS Feed & More Social Media Feeds

WordPress plugin Tagembed: Embed Twitter Feed, Google Reviews, YouTube Videos, TikTok, RSS Feed & More Social Media Feeds scored77%from 54 tests.

About plugin

  • Plugin page: tagembed-widget
  • Plugin version: 4.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 1, 2020
  • Latest release: Oct 14, 2023
  • Number of updates: 90
  • Update frequency: every 11.6 days
  • Top authors: tagembed (100%)

Code review

54 tests

User reviews

33 reviews

Install metrics

7,000+ active /67,957 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.35MB] [CPU: ▲415.84ms] 75% from 4 tests

This is a short check of server-side resources used by Tagembed: Embed Twitter Feed, Google Reviews, YouTube Videos, TikTok, RSS Feed & More Social Media Feeds
It is recommended to improve the following
  • Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 415.84ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3241.89 ▼2.14
Dashboard /wp-admin3.71 ▲0.40956.41 ▲908.70
Posts /wp-admin/edit.php3.76 ▲0.40642.68 ▲593.79
Add New Post /wp-admin/post-new.php6.22 ▲0.34675.25 ▲572.26
Media Library /wp-admin/upload.php3.57 ▲0.34537.06 ▲499.45

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 257 new files
Database: 5 new tables, 6 new options
New tables
wp_tagembed_active_widget
wp_tagembed_menus
wp_tagembed_active_widget_user
wp_tagembed_user
wp_tagembed_active_options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Tagembed: Embed Twitter Feed, Google Reviews, YouTube Videos, TikTok, RSS Feed & More Social Media Feeds
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,038 ▲29213.51 ▼0.438.85 ▲7.0841.72 ▼6.19
Dashboard /wp-admin2,332 ▲1525.75 ▲0.09100.77 ▲12.5244.06 ▲1.21
Posts /wp-admin/edit.php2,236 ▲1392.22 ▲0.2439.39 ▲3.6035.88 ▲1.42
Add New Post /wp-admin/post-new.php6,241 ▲4,71519.21 ▼3.94892.28 ▲220.8138.63 ▼23.39
Media Library /wp-admin/upload.php1,600 ▲2034.25 ▲0.13103.87 ▼2.0344.14 ▼3.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/tagembed-widget/views/analytics/analyticsView.php
    • > /wp-content/plugins/tagembed-widget/views/widget/widgetView.php
    • > /wp-content/plugins/tagembed-widget/views/support/supportView.php
  • 92× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      include_once(): Failed opening 'TAGEMBED_PLUGIN_DIR_PATHviews/includes/footerView.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/tagembed-widget/views/widget/widgetView.php on line 61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/tagembed-widget/views/filter/filterView.php:4
    • > PHP Warning
      include_once(): Failed opening 'TAGEMBED_PLUGIN_DIR_PATHviews/includes/headerView.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/tagembed-widget/views/socialAccount/socialAccountView.php on line 3
    • > PHP Warning
      Use of undefined constant TAGEMBED_PLUGIN_DIR_PATH - assumed 'TAGEMBED_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tagembed-widget/views/upgrade/upgradeView.php on line 3
    • > PHP Warning
      include_once(TAGEMBED_PLUGIN_DIR_PATHviews/includes/headView.php): failed to open stream: No such file or directory in wp-content/plugins/tagembed-widget/views/display/displayView.php on line 2
    • > PHP Warning
      include_once(): Failed opening 'TAGEMBED_PLUGIN_DIR_PATHviews/includes/headerView.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/tagembed-widget/views/support/supportView.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'TAGEMBED_PLUGIN_DIR_PATHviews/includes/footerView.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/tagembed-widget/views/analytics/analyticsView.php on line 8
    • > PHP Notice
      Undefined variable: __tagembed__active_menue_id in wp-content/plugins/tagembed-widget/views/includes/footerView.php on line 24
    • > PHP Warning
      Use of undefined constant TAGEMBED_PLUGIN_SERVER_URL - assumed 'TAGEMBED_PLUGIN_SERVER_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/tagembed-widget/views/analytics/analyticsView.php on line 6
    • > PHP Warning
      include_once(TAGEMBED_PLUGIN_DIR_PATHviews/includes/headerView.php): failed to open stream: No such file or directory in wp-content/plugins/tagembed-widget/views/socialAccount/socialAccountView.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

tagembed-widget/tagembed.php 85% from 13 tests

"Tagembed: Embed Twitter Feed, Google Reviews, YouTube Videos, TikTok, RSS Feed & More Social Media Feeds" version 4.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tagembed-widget.php" instead of "tagembed.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 256 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
Everything looks great! No dangerous files found in this plugin14,297 lines of code in 75 files:
LanguageFilesBlank linesComment linesLines of code
CSS69108,236
JavaScript19722923,346
PHP16221832,341
SVG3407374

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions40
▷ Named functions3997.50%
▷ Anonymous functions12.50%
Constants8
▷ Global constants8100.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
177 compressed PNG files occupy 0.76MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/feeds/75.png0.38KB0.53KB0.00%
assets/images/feeds/instagram-reel-1.png0.25KB0.33KB0.00%
assets/images/fonts/12.png0.98KB1.01KB0.00%
assets/images/rating/1.png1.33KB0.56KB▼ 58.06%
assets/images/fonts/25.png0.97KB1.01KB0.00%