Benchmarks
Plugin footprint 82% 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.06MB] [CPU: ▼5.54ms] Passed 4 tests
Analyzing server-side resources used by Smartarget Tiktok - Follow Us
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.15 ▼1.30 |
Dashboard /wp-admin | 3.37 ▲0.02 | 55.18 ▼10.86 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 53.46 ▲2.52 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 84.88 ▼12.51 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 43.05 ▲3.24 |
Smartarget Tiktok - Follow Us /wp-admin/options-general.php?page=smartarget_tiktok_follow | 3.26 | 34.94 |
Server storage [IO: ▲3.84MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Just a few items left to fix
- There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/smartarget-tiktok-follow-us/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Smartarget Tiktok - Follow Us
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲201 | 21.20 ▲6.79 | 9.62 ▲7.77 | 45.05 ▲1.68 |
Dashboard /wp-admin | 2,228 ▲25 | 10.93 ▲6.05 | 194.45 ▲80.75 | 37.96 ▼5.05 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 7.31 ▲5.31 | 115.49 ▲80.05 | 33.04 ▼1.99 |
Add New Post /wp-admin/post-new.php | 1,694 ▲163 | 28.20 ▲4.81 | 740.46 ▲55.62 | 54.50 ▼3.64 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 9.67 ▲5.47 | 184.16 ▲79.31 | 45.99 ▼1.61 |
Smartarget Tiktok - Follow Us /wp-admin/options-general.php?page=smartarget_tiktok_follow | 1,581 | 10.13 | 187.20 | 88.79 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/smartarget-tiktok-follow-us/public/partials/smartarget-tiktok-follow-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/smartarget-tiktok-follow-us/admin/partials/smartarget-tiktok-follow-admin-display.php:20
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: tiktok plugin, smartarget, social media, social, tiktok
smartarget-tiktok-follow-us/smartarget-tiktok-follow.php 85% from 13 tests
The principal PHP file in "Smartarget Tiktok - Follow Us" v. 1.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("smartarget-tiktok-follow-us.php" instead of "smartarget-tiktok-follow.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin868 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 5 | 4,369 | 642 |
PHP | 12 | 130 | 522 | 225 |
CSS | 2 | 0 | 4 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin