74% ws-tiktok-feed

Code Review | WebSync TikTok Feed

WordPress plugin WebSync TikTok Feed scored74%from 54 tests.

About plugin

  • Plugin page: ws-tiktok-feed
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 20, 2022
  • Latest release: Oct 27, 2022
  • Number of updates: 12
  • Update frequency: every 0.6 days
  • Top authors: websynctech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /602 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▲9.98ms] Passed 4 tests

Analyzing server-side resources used by WebSync TikTok Feed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0857.85 ▲19.58
Dashboard /wp-admin3.38 ▲0.0762.20 ▲16.86
Posts /wp-admin/edit.php3.47 ▲0.1253.41 ▲4.28
Add New Post /wp-admin/post-new.php5.98 ▲0.0997.27 ▲11.01
Media Library /wp-admin/upload.php3.30 ▲0.0740.70 ▲7.75
Global Settings /wp-admin/admin.php?page=settings_tkf3.2638.94
All Feeds /wp-admin/admin.php?page=feeds_tkf3.5741.07

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 42 new files
Database: 3 new tables, 6 new options
New tables
wp_tkf_users
wp_tkf_feeds
wp_tkf_medias
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

WebSync TikTok Feed: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲9113.57 ▼0.822.15 ▲0.3949.16 ▲0.08
Dashboard /wp-admin2,232 ▲805.86 ▲0.30107.33 ▲8.8675.37 ▲34.71
Posts /wp-admin/edit.php2,115 ▲442.01 ▼0.1436.19 ▼0.9135.58 ▲1.02
Add New Post /wp-admin/post-new.php1,690 ▲15722.43 ▼0.93695.80 ▲29.7260.27 ▼6.08
Media Library /wp-admin/upload.php1,408 ▲234.27 ▲0.0699.38 ▼0.0180.23 ▲37.09
Global Settings /wp-admin/admin.php?page=settings_tkf8092.0327.5930.34
All Feeds /wp-admin/admin.php?page=feeds_tkf8362.3326.7527.06

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_tkf_medias
    • wp_tkf_users
    • wp_tkf_feeds
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'TKFViewSite' not found in wp-content/plugins/ws-tiktok-feed/frontend/views/TKFViewMasonry.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/ws-tiktok-feed/tiktok_feed.php:50
    • > PHP Fatal error
      Uncaught Error: Class 'TKFViewSite' not found in wp-content/plugins/ws-tiktok-feed/frontend/views/TKFViewSlideshow.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'TKFViewSite' not found in wp-content/plugins/ws-tiktok-feed/frontend/views/TKFViewThumbnails.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'TKFViewSite' not found in wp-content/plugins/ws-tiktok-feed/frontend/views/TKFViewBlog_style.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: tiktok video, tiktok, tiktok gallery, tiktok feed, tiktok thumbnail

ws-tiktok-feed/tiktok_feed.php 92% from 13 tests

"WebSync TikTok Feed" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ws-tiktok-feed.php" instead of "tiktok_feed.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin3,166 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP162222801,877
CSS31566918
JavaScript34535371

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity15.81
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes16.25%
Methods80
▷ Static methods1012.50%
▷ Public methods7897.50%
▷ Protected methods00.00%
▷ Private methods22.50%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
13 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icons/tiktok_logo.png1.33KB1.31KB▼ 1.32%
assets/images/icons/like.png1.45KB0.96KB▼ 33.89%
assets/images/icons/camera_black.png0.19KB0.19KB▼ 3.05%
assets/images/icons/play.png1.40KB0.66KB▼ 53.00%
assets/images/icons/comment.png1.70KB1.05KB▼ 37.97%