83% b-tiktok-feed

Code Review | Tiktok Feed - Best TikTok feed plugin for WordPress

WordPress plugin Tiktok Feed - Best TikTok feed plugin for WordPress scored83%from 54 tests.

About plugin

  • Plugin page: b-tiktok-feed
  • Plugin version: 1.0.10
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 2, 2022
  • Latest release: Nov 9, 2023
  • Number of updates: 50
  • Update frequency: every 6.8 days
  • Top authors: btechnologies (88%)abuhayat (14%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /10,154 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.26MB] [CPU: ▼5.77ms] Passed 4 tests

Analyzing server-side resources used by Tiktok Feed - Best TikTok feed plugin for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2839.59 ▲1.22
Dashboard /wp-admin3.56 ▲0.2252.89 ▼10.44
Posts /wp-admin/edit.php3.68 ▲0.3246.98 ▲1.13
Add New Post /wp-admin/post-new.php6.18 ▲0.2984.70 ▼14.98
Media Library /wp-admin/upload.php3.48 ▲0.2639.26 ▲6.87
B Tiktok Feed /wp-admin/admin.php?page=b-tiktok-feed3.4436.81

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 75 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
ttp-redirect
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Tiktok Feed - Best TikTok feed plugin for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲6913.82 ▼0.584.71 ▲3.0236.67 ▼7.04
Dashboard /wp-admin2,208 ▲286.00 ▲0.4191.38 ▼0.9338.66 ▼0.52
Posts /wp-admin/edit.php2,114 ▲172.37 ▲0.4042.29 ▲5.0834.41 ▲1.60
Add New Post /wp-admin/post-new.php6,438 ▲4,90930.52 ▲7.35966.37 ▲367.7041.25 ▼9.82
Media Library /wp-admin/upload.php1,413 ▲224.40 ▲0.17126.41 ▲25.8646.44 ▲4.78
B Tiktok Feed /wp-admin/admin.php?page=b-tiktok-feed8052.4959.9028.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • ttp-redirect
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% 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 50% 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
Please fix the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'BSDK' not found in wp-content/plugins/b-tiktok-feed/bplugins_sdk/inc/Base/Activate.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/b-tiktok-feed/TiktokAPI.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'BSDK' not found in wp-content/plugins/b-tiktok-feed/bplugins_sdk/inc/Base/License.php:3
    • > PHP Warning
      Use of undefined constant TTP_PLUGIN_VERSION - assumed 'TTP_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/b-tiktok-feed/dist/editor.asset.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to a member function can_use_premium_feature() on null in wp-content/plugins/b-tiktok-feed/custom-post.php:7

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 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Requires at least: Invalid plugin version format
The official readme.txt might help

b-tiktok-feed/index.php 85% from 13 tests

This is the main PHP file of "Tiktok Feed - Best TikTok feed plugin for WordPress" version 1.0.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("b-tiktok-feed.php" instead of "index.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 plugin2,122 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP1214857754
JavaScript177129479
JSON700430
PO File297219225
Sass3115184
CSS64450

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity10.12
▷ Minimum class complexity3.00
▷ Maximum class complexity20.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods55
▷ Static methods35.45%
▷ Public methods5396.36%
▷ Protected methods00.00%
▷ Private methods23.64%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
11 compressed PNG files occupy 0.59MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/patterns/ttp-default-profile-slider-vertical.png57.09KB61.15KB0.00%
assets/images/patterns/ttp-default-profile-slider-horizontal.png37.81KB40.37KB0.00%
assets/images/patterns/ttp-landscape-profile-default-center.png87.60KB94.97KB0.00%
assets/images/patterns/ttp-profile-masonry.png87.10KB93.86KB0.00%
assets/images/patterns/ttp-potrait-profile-default-center.png70.04KB74.60KB0.00%