78% wp-tiktok-feed

Code Review | QuadLayers TikTok Feed

WordPress plugin QuadLayers TikTok Feed scored78%from 54 tests.

About plugin

  • Plugin page: wp-tiktok-feed
  • Plugin version: 4.2.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Apr 7, 2020
  • Latest release: Nov 17, 2023
  • Number of updates: 214
  • Update frequency: every 6.2 days
  • Top authors: quadlayers (99.07%)beluserra (1.4%)

Code review

54 tests

User reviews

49 reviews

Install metrics

10,000+ active /372,841 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼2.02ms] Passed 4 tests

Server-side resources used by QuadLayers TikTok Feed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1541.07 ▼3.36
Dashboard /wp-admin3.50 ▲0.1655.71 ▼3.74
Posts /wp-admin/edit.php3.52 ▲0.1646.76 ▲1.42
Add New Post /wp-admin/post-new.php6.11 ▲0.2298.52 ▼2.40
Media Library /wp-admin/upload.php3.32 ▲0.0939.15 ▲6.68
Premium /wp-admin/admin.php?page=qlttf_backend&tab=premium3.3441.02
Feeds /wp-admin/admin.php?page=qlttf_backend&tab=feeds3.3438.12
Settings /wp-admin/admin.php?page=qlttf_backend&tab=settings3.3439.62
Welcome /wp-admin/admin.php?page=qlttf_backend3.3433.87
Accounts /wp-admin/admin.php?page=qlttf_backend&tab=accounts3.3439.25

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 185 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for QuadLayers TikTok Feed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,113 ▲36616.05 ▲1.7010.50 ▲8.7441.39 ▼1.39
Dashboard /wp-admin2,389 ▲2116.30 ▲0.67117.55 ▲2.4399.11 ▲58.87
Posts /wp-admin/edit.php2,215 ▲1153.82 ▲1.8045.61 ▲9.7364.94 ▲22.23
Add New Post /wp-admin/post-new.php6,269 ▲4,74319.56 ▼3.64925.29 ▲246.3838.89 ▼12.00
Media Library /wp-admin/upload.php1,506 ▲1095.71 ▲1.50109.61 ▲7.7075.62 ▲29.68
Premium /wp-admin/admin.php?page=qlttf_backend&tab=premium1,27711.67229.31129.80
Feeds /wp-admin/admin.php?page=qlttf_backend&tab=feeds1,23011.78115.58163.30
Settings /wp-admin/admin.php?page=qlttf_backend&tab=settings1,24311.72109.79146.48
Welcome /wp-admin/admin.php?page=qlttf_backend1,24011.74118.47151.73
Accounts /wp-admin/admin.php?page=qlttf_backend&tab=accounts1,23411.63108.12147.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 58× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'QuadLayers\\TTF\\Api\\Rest\\Endpoints\\Base' not found in wp-content/plugins/wp-tiktok-feed/lib/api/rest/endpoints/frontend/external-user-profile/class-load.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'QuadLayers\\TTF\\Api\\Rest\\Endpoints\\Base' not found in wp-content/plugins/wp-tiktok-feed/lib/api/rest/endpoints/backend/feeds/class-delete.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'QuadLayers\\WP_Orm\\Entity\\CollectionEntity' not found in wp-content/plugins/wp-tiktok-feed/vendor/franmastromarino/wp-orm/tests/Collection/CollectionEntityTestPrimaryKeyString.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-tiktok-feed/vendor/franmastromarino/wp-orm/tests/Collection/CollectionRepositoryBuilderTest.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'QuadLayers\\WP_Orm\\Mapper\\CollectionMapperInterface' not found in wp-content/plugins/wp-tiktok-feed/vendor/franmastromarino/wp-orm/src/Mapper/CollectionMapper.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-tiktok-feed/vendor/franmastromarino/wp-orm/tests/Single/SingleTest.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'QuadLayers\\WP_Orm\\Entity\\SingleEntity' not found in wp-content/plugins/wp-tiktok-feed/vendor/franmastromarino/wp-orm/src/Entity/CollectionEntity.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'QuadLayers\\TTF\\Api\\Rest\\Endpoints\\Base' not found in wp-content/plugins/wp-tiktok-feed/lib/api/rest/endpoints/backend/accounts/class-delete.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'QuadLayers\\TTF\\Api\\Rest\\Endpoints\\Base' not found in wp-content/plugins/wp-tiktok-feed/lib/api/rest/endpoints/backend/feeds/class-create.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function QuadLayers\\TTF\\load_plugin_textdomain() in wp-content/plugins/wp-tiktok-feed/lib/class-plugin.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=qlttf_backend&tab=feeds
    • > Console-api (severe) in unknown
    /wp-content/plugins/wp-tiktok-feed/build/store/js/index.js?ver=1a702afe9c1a88ba2c55 0:6479 Error: {}at /wp-content/plugins/wp-tiktok-feed/build/store/js/index.js?ver=1a702afe9c1a88ba2c55:1:1769at async y (/wp-content/plugins/wp-tiktok-feed/build/store/js/index.js?ver=1a702afe9c1a88ba2c55:1:1652)at async Object.$ [as fulfill] (/wp-content/plugins/wp-tiktok-feed/build/store/js/index.js?ver=1a702afe9c1a88ba2c55:1:6441)at async /wp-includes/js/dist/data.min.js?ver=ff7eb3945f963be850ff:2:17117
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=qlttf_backend&tab=accounts
    • > Console-api (severe) in unknown
    /wp-content/plugins/wp-tiktok-feed/build/store/js/index.js?ver=1a702afe9c1a88ba2c55 0:6405 Error: {}at /wp-content/plugins/wp-tiktok-feed/build/store/js/index.js?ver=1a702afe9c1a88ba2c55:1:1769at async y (/wp-content/plugins/wp-tiktok-feed/build/store/js/index.js?ver=1a702afe9c1a88ba2c55:1:1652)at async Object.L [as fulfill] (/wp-content/plugins/wp-tiktok-feed/build/store/js/index.js?ver=1a702afe9c1a88ba2c55:1:6367)at async /wp-includes/js/dist/data.min.js?ver=ff7eb3945f963be850ff:2:17117
    • > GET request to /wp-admin/admin.php?page=qlttf_backend&tab=settings
    • > Console-api (severe) in unknown
    /wp-content/plugins/wp-tiktok-feed/build/store/js/index.js?ver=1a702afe9c1a88ba2c55 0:6553 Error: {}at /wp-content/plugins/wp-tiktok-feed/build/store/js/index.js?ver=1a702afe9c1a88ba2c55:1:1769at async y (/wp-content/plugins/wp-tiktok-feed/build/store/js/index.js?ver=1a702afe9c1a88ba2c55:1:1652)at async Object.G [as fulfill] (/wp-content/plugins/wp-tiktok-feed/build/store/js/index.js?ver=1a702afe9c1a88ba2c55:1:6515)at async /wp-includes/js/dist/data.min.js?ver=ff7eb3945f963be850ff:2:17117

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #6 (Tik Tok Feed / Settings tab) image not found
The official readme.txt is a good inspiration

wp-tiktok-feed/wp-tiktok-feed.php Passed 13 tests

The entry point to "QuadLayers TikTok Feed" version 4.2.7 is a PHP file that has certain tags in its header comment area
89 characters long description:
Display beautiful and responsive galleries on your website from your TikTok feed account.

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
Success! There were no dangerous files found in this plugin16,454 lines of code in 148 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript711298,121
PHP1151,5732,1426,350
Markdown112590713
JSON500663
CSS4111531
XML27745
SVG40031

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity7.02
▷ Minimum class complexity1.00
▷ Maximum class complexity91.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces46
Interfaces7
Traits3
Classes81
▷ Abstract classes56.17%
▷ Concrete classes7693.83%
▷ Final classes11.32%
Methods440
▷ Static methods10523.86%
▷ Public methods39489.55%
▷ Protected methods143.18%
▷ Private methods327.27%
Functions32
▷ Named functions618.75%
▷ Anonymous functions2681.25%
Constants33
▷ Global constants33100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
14 compressed PNG files occupy 0.83MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/backend/img/tiktok-feed.png70.25KB75.67KB0.00%
assets/backend/img/carousel.png0.31KB0.32KB0.00%
assets/backend/img/tiktok-popup-uai.png53.18KB57.62KB0.00%
assets/backend/img/tiktok-feed-highlight.png94.08KB101.73KB0.00%
assets/backend/img/highlight-square.png0.16KB0.15KB▼ 4.24%