Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲1.52MB] [CPU: ▲5.66ms] Passed 4 tests
An overview of server-side resources used by Feed Widget for TikTok
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.65 ▲1.18 | 47.48 ▲6.33 |
Dashboard /wp-admin | 4.96 ▲1.62 | 63.81 ▲0.08 |
Posts /wp-admin/edit.php | 5.00 ▲1.65 | 56.76 ▲12.50 |
Add New Post /wp-admin/post-new.php | 7.55 ▲1.67 | 102.75 ▲3.72 |
Media Library /wp-admin/upload.php | 4.87 ▲1.65 | 53.01 ▲21.86 |
Feeds /wp-admin/admin.php?page=feeds-wtiktok | 5.08 | 305.53 |
Widgets /wp-admin/admin.php?page=widgets-wtiktok | 4.87 | 39.13 |
Server storage [IO: ▲3.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 243 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
wtik_plugin_activated |
wtik_plugin_version |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_wtiktok_feed |
wtik_last_check_premium_update_time |
Browser metrics Passed 4 tests
A check of browser resources used by Feed Widget for TikTok
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲177 | 13.84 ▼0.57 | 6.12 ▲4.03 | 42.08 ▼1.44 |
Dashboard /wp-admin | 2,235 ▲50 | 5.84 ▲0.91 | 99.76 ▼10.54 | 37.62 ▼5.17 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.02 ▲0.03 | 35.05 ▼2.18 | 32.62 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 22.66 ▲4.28 | 674.60 ▲50.26 | 63.00 ▲12.59 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.25 ▲0.07 | 98.91 ▼4.11 | 46.28 ▲1.54 |
Feeds /wp-admin/admin.php?page=feeds-wtiktok | 893 | 1.96 | 37.64 | 30.17 |
Widgets /wp-admin/admin.php?page=widgets-wtiktok | 835 | 1.97 | 27.24 | 24.17 |
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
- The uninstall procedure has failed, leaving 10 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- wtik_last_check_premium_update_time
- wtik_plugin_activated
- can_compress_scripts
- widget_wtiktok_feed
- db_upgraded
- widget_theysaidso_widget
- wtik_plugin_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cm-tiktok-feed/html_templates/thumbs-no-border.php
- > /wp-content/plugins/cm-tiktok-feed/html_templates/thumbs.php
- > /wp-content/plugins/cm-tiktok-feed/html_templates/slider-overlay.php
- > /wp-content/plugins/cm-tiktok-feed/admin/views/tab-widgets.php
- > /wp-content/plugins/cm-tiktok-feed/html_templates/slider.php
- 50× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cm-tiktok-feed/html_templates/slider.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cm-tiktok-feed/html_templates/thumbs-no-border.php on line 8
- > PHP Notice
Undefined variable: args in wp-content/plugins/cm-tiktok-feed/html_templates/thumbs.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cm-tiktok-feed/html_templates/slider.php on line 35
- > PHP Notice
Undefined variable: args in wp-content/plugins/cm-tiktok-feed/html_templates/slider-overlay.php on line 36
- > PHP Warning
Use of undefined constant WTIK_PLUGIN_URL - assumed 'WTIK_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/cm-tiktok-feed/admin/views/tab-about.php on line 77
- > PHP Notice
Undefined variable: args in wp-content/plugins/cm-tiktok-feed/html_templates/slider.php on line 35
- > PHP Notice
Undefined variable: args in wp-content/plugins/cm-tiktok-feed/html_templates/slider-overlay.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/cm-tiktok-feed/html_templates/slider-overlay.php on line 11
- > PHP Notice
Undefined variable: args in wp-content/plugins/cm-tiktok-feed/html_templates/slider.php on line 32
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: feed, tiktok, video, widget
cm-tiktok-feed/cm-tiktok-feed.php 85% from 13 tests
This is the main PHP file of "Feed Widget for TikTok" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin15,775 lines of code in 176 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 3,205 | 7,867 | 11,288 |
CSS | 25 | 360 | 262 | 2,456 |
PO File | 7 | 366 | 429 | 980 |
LESS | 1 | 118 | 28 | 555 |
JavaScript | 14 | 102 | 117 | 459 |
SVG | 1 | 0 | 0 | 26 |
Bourne Shell | 1 | 2 | 0 | 9 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 15.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 100 | |
▷ Abstract classes | 14 | 14.00% |
▷ Concrete classes | 86 | 86.00% |
▷ Final classes | 2 | 2.33% |
Methods | 708 | |
▷ Static methods | 44 | 6.21% |
▷ Public methods | 539 | 76.13% |
▷ Protected methods | 115 | 16.24% |
▷ Private methods | 54 | 7.63% |
Functions | 22 | |
▷ Named functions | 11 | 50.00% |
▷ Anonymous functions | 11 | 50.00% |
Constants | 62 | |
▷ Global constants | 51 | 82.26% |
▷ Class constants | 11 | 17.74% |
▷ Public constants | 11 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 1.27MB with 0.87MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image.png | 2.97KB | 0.15KB | ▼ 94.84% |
admin/assets/img/slider icon.png | 24.19KB | 4.15KB | ▼ 82.85% |
admin/assets/img/about/2019-11-01_11-03-07.png | 457.52KB | 124.21KB | ▼ 72.85% |
admin/assets/img/tiktok.png | 2.54KB | 1.74KB | ▼ 31.43% |
libs/factory/pages/templates/assets/img/webcraftic-plugin-icon.png | 1.97KB | 0.75KB | ▼ 61.79% |