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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▲1.13ms] Passed 4 tests
A check of server-side resources used by Feed For TikTok Shop
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.74 ▲0.70 |
Dashboard /wp-admin | 3.38 ▲0.07 | 48.06 ▲2.03 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 46.78 ▲5.80 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 79.86 ▼0.25 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.83 ▲2.02 |
Server storage [IO: ▲2.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Feed For TikTok Shop
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.35 ▲0.07 | 1.68 ▲0.01 | 43.55 ▼0.27 |
Dashboard /wp-admin | 2,224 ▲44 | 5.57 ▼0.08 | 94.98 ▲2.97 | 76.98 ▲33.57 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.00 ▼0.15 | 32.50 ▼9.02 | 30.57 ▼10.55 |
Add New Post /wp-admin/post-new.php | 1,556 ▲21 | 22.96 ▲4.87 | 699.20 ▲46.63 | 68.42 ▲9.73 |
Media Library /wp-admin/upload.php | 1,432 ▲35 | 4.22 ▲0.05 | 92.86 ▼4.99 | 82.25 ▲40.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- feed_option_name
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/feed-for-tiktok-shop/includes/api/feed/v1/class-am-feed-rest-settings-controller.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/feed-for-tiktok-shop/views/feed-landing-view.php:172
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: product feed, woocommerce, tiktok shop
feed-for-tiktok-shop/tiktok-shopping.php 92% from 13 tests
The primary PHP file in "Feed For TikTok Shop" version 1.0.13 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("feed-for-tiktok-shop.php" instead of "tiktok-shopping.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin514 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 70 | 188 | 422 |
SVG | 3 | 0 | 0 | 63 |
JSON | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 3 | 12.50% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 2.24MB with 1.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 32.60KB | 9.49KB | ▼ 70.90% |
assets/screenshot-1.png | 726.29KB | 411.30KB | ▼ 43.37% |
assets/icon-256x256.png | 5.89KB | 2.83KB | ▼ 51.89% |
assets/icon-128x128.png | 3.01KB | 1.53KB | ▼ 49.06% |
assets/screenshot-3.png | 782.40KB | 421.84KB | ▼ 46.08% |