74% easy-tiktok-feed

Code Review | Easy Tiktok Feed

WordPress plugin Easy Tiktok Feed scored74%from 54 tests.

About plugin

  • Plugin page: easy-tiktok-feed
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.3
  • WordPress version: 6.3.1
  • First release: Sep 25, 2020
  • Latest release: Sep 15, 2023
  • Number of updates: 15
  • Update frequency: every 72.9 days
  • Top authors: DaNish Ali (80%)maltathemes (26.67%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,394 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.49MB] [CPU: ▼7.16ms] Passed 4 tests

Analyzing server-side resources used by Easy Tiktok Feed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.98 ▲0.5145.66 ▼1.17
Dashboard /wp-admin3.81 ▲0.5160.43 ▲6.05
Posts /wp-admin/edit.php3.86 ▲0.5153.98 ▼6.59
Add New Post /wp-admin/post-new.php6.33 ▲0.4488.81 ▼24.39
Media Library /wp-admin/upload.php3.74 ▲0.5046.32 ▲3.53
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius3.9337.96

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 250 new files
Database: no new tables, 11 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
etf_settings
fs_debug_mode
fs_accounts
widget_recent-posts
fs_active_plugins
widget_theysaidso_widget
can_compress_scripts
fs_gdpr
...

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Tiktok Feed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲18214.04 ▼0.3514.10 ▲12.0634.08 ▼14.32
Dashboard /wp-admin2,238 ▲645.52 ▼0.1196.85 ▼2.9684.75 ▲40.42
Posts /wp-admin/edit.php2,162 ▲621.97 ▼0.1636.50 ▼0.9037.27 ▲1.25
Add New Post /wp-admin/post-new.php1,724 ▲19822.52 ▼0.49753.82 ▲96.7758.05 ▼9.88
Media Library /wp-admin/upload.php1,452 ▲524.12 ▼0.00103.53 ▼14.8679.60 ▲31.76
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,1141.6925.9128.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/easy-tiktok-feed/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • Zombie WordPress options were found after uninstall: 11 options
    • fs_accounts
    • widget_recent-comments
    • db_upgraded
    • fs_active_plugins
    • can_compress_scripts
    • etf_settings
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • fs_debug_mode
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/easy-tiktok-feed/frontend/views/html-feed-header.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/easy-tiktok-feed/frontend/views/feed.php:12

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 Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: tiktok video, tiktok feed, tiktok widget, tiktok gallery, tiktok...

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

The main file in "Easy Tiktok Feed" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
68 characters long description:
Display your awesome TikTok feed responsive gallery on your website.

Code Analysis 97% from 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
No dangerous file extensions were detected40,533 lines of code in 200 files:
LanguageFilesBlank linesComment linesLines of code
PHP1207,62516,24031,495
Sass542,0153395,898
CSS173001,980
SVG210608
JavaScript614190404
PO File16165148

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity86.31
▷ Minimum class complexity1.00
▷ Maximum class complexity2,911.00
Average method complexity4.64
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes48
▷ Abstract classes24.17%
▷ Concrete classes4695.83%
▷ Final classes00.00%
Methods1,158
▷ Static methods17314.94%
▷ Public methods81370.21%
▷ Protected methods151.30%
▷ Private methods33028.50%
Functions96
▷ Named functions96100.00%
▷ Anonymous functions00.00%
Constants127
▷ Global constants10280.31%
▷ Class constants2519.69%
▷ Public constants25100.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
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
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/easy-tiktok-feed.png3.32KB3.09KB▼ 7.02%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%