78% smartarget-tiktok-follow-us

Code Review | Smartarget Tiktok - Follow Us

WordPress plugin Smartarget Tiktok - Follow Us scored78%from 54 tests.

About plugin

  • Plugin page: smartarget-tiktok...
  • Plugin version: 1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Nov 12, 2021
  • Latest release: Aug 9, 2023
  • Number of updates: 13
  • Update frequency: every 48.8 days
  • Top authors: erezs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /421 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.15 ▼1.30
Dashboard /wp-admin3.37 ▲0.0255.18 ▼10.86
Posts /wp-admin/edit.php3.48 ▲0.1353.46 ▲2.52
Add New Post /wp-admin/post-new.php5.97 ▲0.0884.88 ▼12.51
Media Library /wp-admin/upload.php3.29 ▲0.0643.05 ▲3.24
Smartarget Tiktok - Follow Us /wp-admin/options-general.php?page=smartarget_tiktok_follow3.2634.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲20121.20 ▲6.799.62 ▲7.7745.05 ▲1.68
Dashboard /wp-admin2,228 ▲2510.93 ▲6.05194.45 ▲80.7537.96 ▼5.05
Posts /wp-admin/edit.php2,119 ▲197.31 ▲5.31115.49 ▲80.0533.04 ▼1.99
Add New Post /wp-admin/post-new.php1,694 ▲16328.20 ▲4.81740.46 ▲55.6254.50 ▼3.64
Media Library /wp-admin/upload.php1,407 ▲79.67 ▲5.47184.16 ▲79.3145.99 ▼1.61
Smartarget Tiktok - Follow Us /wp-admin/options-general.php?page=smartarget_tiktok_follow1,58110.13187.2088.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

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript654,369642
PHP12130522225
CSS2041

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 code0.10
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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