78% taklink

Code Review | Taklink

WordPress plugin Taklink scored78%from 54 tests.

About plugin

  • Plugin page: taklink
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Mar 6, 2021
  • Latest release: Jul 28, 2021
  • Number of updates: 11
  • Update frequency: every 64.3 days
  • Top authors: taklink (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /599 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼9.72ms] Passed 4 tests

An overview of server-side resources used by Taklink
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1038.08 ▼1.18
Dashboard /wp-admin3.41 ▲0.0647.88 ▼18.23
Posts /wp-admin/edit.php3.52 ▲0.1649.87 ▼2.98
Add New Post /wp-admin/post-new.php6.01 ▲0.1288.33 ▼16.47
Media Library /wp-admin/upload.php3.33 ▲0.1038.22 ▲1.37
TakL.ink /wp-admin/options-general.php?page=taklink3.3134.35

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Taklink
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.38 ▼0.582.21 ▲0.3744.52 ▲4.18
Dashboard /wp-admin2,217 ▲265.75 ▲0.88109.87 ▲3.7940.92 ▼2.29
Posts /wp-admin/edit.php2,109 ▲202.00 ▼0.0438.40 ▲1.5535.82 ▼2.99
Add New Post /wp-admin/post-new.php1,530 ▼323.16 ▲0.04681.90 ▲84.8362.92 ▲8.05
Media Library /wp-admin/upload.php1,408 ▲234.29 ▲0.0795.21 ▼9.5043.63 ▼2.54
TakL.ink /wp-admin/options-general.php?page=taklink8472.1828.2728.69

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 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/taklink/public/partials/taklink-public-display.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/taklink/admin/partials/taklink-admin-settings-display.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/taklink/admin/partials/taklink-admin-display.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

taklink/taklink.php 92% from 13 tests

"Taklink" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 170 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin570 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PO File1264880

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity8.57
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods25.88%
▷ Public methods2985.29%
▷ Protected methods00.00%
▷ Private methods514.71%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin