Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.54MB] [CPU: ▲0.57ms] Passed 4 tests
Analyzing server-side resources used by Floating Tiktok button (Tiktok Follow button)+ Tikcode (QrCode) for Tiktok followers
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.60 | 36.24 ▼0.20 |
Dashboard /wp-admin | 3.90 ▲0.60 | 47.32 ▲2.50 |
Posts /wp-admin/edit.php | 3.95 ▲0.60 | 48.21 ▼1.62 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.53 | 93.83 ▲1.73 |
Media Library /wp-admin/upload.php | 3.66 ▲0.44 | 36.48 ▲2.39 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.03 | 34.90 |
Server storage [IO: ▲3.85MB] [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: 227 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
fs_debug_mode |
fs_accounts |
fs_active_plugins |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
floating-tiktok-button |
can_compress_scripts |
Browser metrics Passed 4 tests
Floating Tiktok button (Tiktok Follow button)+ Tikcode (QrCode) for Tiktok followers: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲90 | 13.55 ▼0.83 | 1.61 ▲0.04 | 31.03 ▼12.75 |
Dashboard /wp-admin | 2,240 ▲49 | 4.85 ▼0.04 | 108.22 ▼1.52 | 41.78 ▼0.23 |
Posts /wp-admin/edit.php | 2,123 ▲37 | 2.00 ▼0.03 | 40.34 ▲3.29 | 37.95 ▲1.02 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 18.10 ▼5.41 | 614.45 ▼59.15 | 53.44 ▼7.63 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.21 ▲0.03 | 96.76 ▼7.46 | 45.70 ▼1.28 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,081 | 1.71 | 23.43 | 29.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/floating-tiktok-button/vendor/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 10 options in the database
- floating-tiktok-button
- fs_accounts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- fs_active_plugins
- theysaidso_admin_options
- fs_debug_mode
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/floating-tiktok-button/admin/views/inc/button_preview.view.php
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Pagup\\TikTokButton\\Controllers\\SettingsController' not found in wp-content/plugins/floating-tiktok-button/admin/Settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/floating-tiktok-button/admin/views/button_qrcode.view.php:3
- > PHP Notice
Undefined variable: option in wp-content/plugins/floating-tiktok-button/admin/views/button_styles.view.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/floating-tiktok-button/admin/views/inc/top.view.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/floating-tiktok-button/admin/views/inc/promotion.view.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/floating-tiktok-button/admin/views/button.view.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/floating-tiktok-button/admin/views/inc/step2.view.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/floating-tiktok-button/admin/views/inc/side.view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/floating-tiktok-button/admin/views/inc/top.view.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/floating-tiktok-button/admin/views/inc/top.view.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: tiktok, tiktok widget, tiktok pixel, social button, conversion
floating-tiktok-button/floating-tiktok-button.php 85% from 13 tests
The main file in "Floating Tiktok button (Tiktok Follow button)+ Tikcode (QrCode) for Tiktok followers" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
- Description: Please don't use more than 140 characters for the plugin description (currently 162 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected39,543 lines of code in 177 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 148 | 8,412 | 17,484 | 35,224 |
JavaScript | 10 | 939 | 573 | 3,591 |
CSS | 16 | 60 | 52 | 705 |
SVG | 2 | 0 | 0 | 16 |
JSON | 1 | 0 | 0 | 7 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 77.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 1,316 | |
▷ Static methods | 216 | 16.41% |
▷ Public methods | 926 | 70.36% |
▷ Protected methods | 17 | 1.29% |
▷ Private methods | 373 | 28.34% |
Functions | 106 | |
▷ Named functions | 103 | 97.17% |
▷ Anonymous functions | 3 | 2.83% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/freemius/assets/img/add-twitter-pixel.png | 9.16KB | 5.26KB | ▼ 42.58% |
vendor/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
vendor/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
admin/assets/icon2.png | 8.53KB | 2.62KB | ▼ 69.26% |
admin/assets/icon1.png | 4.47KB | 2.29KB | ▼ 48.76% |