90% embed-block-for-tiktok

Code Review | Embed Block for TikTok

WordPress plugin Embed Block for TikTok scored90%from 54 tests.

About plugin

  • Plugin page: embed-block-for-t...
  • Plugin version: 0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5
  • WordPress version: 6.3.1
  • First release: Jan 9, 2020
  • Latest release: Aug 13, 2020
  • Number of updates: 6
  • Update frequency: every 36.2 days
  • Top authors: audrasjb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /8,879 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.62ms] Passed 4 tests

This is a short check of server-side resources used by Embed Block for TikTok
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.51 ▲2.78
Dashboard /wp-admin3.31 ▲0.0151.49 ▲0.55
Posts /wp-admin/edit.php3.36 ▲0.0049.82 ▼8.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.97 ▼2.51
Media Library /wp-admin/upload.php3.23 ▲0.0039.67 ▲0.19

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Embed Block for TikTok
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2914.74 ▼0.081.78 ▼0.4843.67 ▼10.31
Dashboard /wp-admin2,221 ▲185.83 ▼0.19108.53 ▼0.0638.48 ▼0.85
Posts /wp-admin/edit.php2,100 ▲32.00 ▼0.0236.53 ▼4.0039.11 ▼1.71
Add New Post /wp-admin/post-new.php6,194 ▲4,64519.19 ▼3.75959.70 ▲284.0361.20 ▼1.57
Media Library /wp-admin/upload.php1,400 ▲64.25 ▲0.04100.40 ▼11.4249.39 ▲2.18

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (TikTok embed video.) image not found
The official readme.txt might help

embed-block-for-tiktok/embed-block-for-tiktok.php Passed 13 tests

"Embed Block for TikTok" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
64 characters long description:
Easily embed TikTok videos in both Gutenberg and Classic Editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin114 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript141878
PHP242536

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin