90% linkt

Code Review | Linkt

WordPress plugin Linkt scored90%from 54 tests.

About plugin

  • Plugin page: linkt
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Aug 13, 2019
  • Latest release: Feb 8, 2022
  • Number of updates: 10
  • Update frequency: every 91.1 days
  • Top authors: Kaira (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /14,750 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.37MB] [CPU: ▲5.48ms] Passed 4 tests

An overview of server-side resources used by Linkt
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3451.53 ▲12.30
Dashboard /wp-admin3.70 ▲0.4056.01 ▲0.34
Posts /wp-admin/edit.php3.76 ▲0.4064.88 ▲14.11
Add New Post /wp-admin/post-new.php6.35 ▲0.4794.76 ▼3.36
Media Library /wp-admin/upload.php3.59 ▲0.3647.96 ▲12.64
All Linkt's /wp-admin/edit.php?post_type=linkt3.6149.81
Add New /wp-admin/post-new.php?post_type=linkt3.6557.55
Categories /wp-admin/edit-tags.php?taxonomy=linkt-cat&post_type=linkt3.5842.04
Settings /wp-admin/edit.php?post_type=linkt&page=linkt_settings3.5645.37

Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
linkt_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Linkt
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲13713.30 ▼1.344.90 ▲3.1742.94 ▼3.42
Dashboard /wp-admin2,304 ▲1044.87 ▼0.04101.48 ▼8.5142.26 ▲0.77
Posts /wp-admin/edit.php2,143 ▲432.05 ▲0.0641.16 ▲6.9035.40 ▼1.94
Add New Post /wp-admin/post-new.php1,563 ▲1823.46 ▲0.13652.14 ▼50.5950.34 ▼10.62
Media Library /wp-admin/upload.php1,443 ▲434.28 ▲0.01109.78 ▼2.2345.89 ▼0.17
All Linkt's /wp-admin/edit.php?post_type=linkt1,1061.9334.9433.29
Add New /wp-admin/post-new.php?post_type=linkt1,6312.6654.8374.96
Categories /wp-admin/edit-tags.php?taxonomy=linkt-cat&post_type=linkt1,3202.1628.6530.68
Settings /wp-admin/edit.php?post_type=linkt&page=linkt_settings1,0172.1526.7332.65

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
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • linkt_version
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 Passed 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: referral, linkt, click tracking, link tracking, track links

linkt/linkt.php Passed 13 tests

Analyzing the main PHP file in "Linkt" version 1.0.8
84 characters long description:
Simply create links that you want to track and see the statistics in your Dashboard.

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 plugin1,747 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP83264941,173
CSS1115444
JavaScript72710130

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity32.40
▷ Minimum class complexity5.00
▷ Maximum class complexity62.00
Average method complexity4.41
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods46
▷ Static methods36.52%
▷ Public methods4495.65%
▷ Protected methods00.00%
▷ Private methods24.35%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/woocustomizer.png9.55KB4.05KB▼ 57.63%
assets/images/paypal-donate.png13.99KB5.59KB▼ 60.05%