83% clink

Code Review | Clink - WordPress Link Manager

WordPress plugin Clink - WordPress Link Manager scored83%from 54 tests.

About plugin

  • Plugin page: clink
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-5.5
  • WordPress version: 6.3.1
  • First release: Aug 27, 2015
  • Latest release: Aug 24, 2020
  • Number of updates: 12
  • Update frequency: every 152.0 days
  • Top authors: aryanthemes (91.67%)saeedshabani (16.67%)

Code review

54 tests

User reviews

7 reviews

Install metrics

600+ active /12,962 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.29ms] Passed 4 tests

Analyzing server-side resources used by Clink - WordPress Link Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.77 ▲0.22
Dashboard /wp-admin3.37 ▲0.0745.61 ▼4.67
Posts /wp-admin/edit.php3.48 ▲0.1347.92 ▲1.57
Add New Post /wp-admin/post-new.php5.95 ▲0.0792.34 ▲5.32
Media Library /wp-admin/upload.php3.29 ▲0.0634.83 ▲1.72
Categories /wp-admin/edit-tags.php?taxonomy=clink_category&post_type=clink3.2832.35
Global Settings /wp-admin/edit.php?post_type=clink&page=clink-settings3.2428.92
Add New /wp-admin/post-new.php?post_type=clink3.3139.59
All Links /wp-admin/edit.php?post_type=clink3.3437.11

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 12 new options
New WordPress options
clink_main_slug
db_upgraded
widget_clink
clink_countdown_option
clink_countdown_meta_tags
can_compress_scripts
widget_recent-posts
widget_recent-comments
clink_countdown_duration
clink_powered_by_text
...

Browser metrics Passed 4 tests

Checking browser requirements for Clink - WordPress Link Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲8014.44 ▼0.211.75 ▼0.2748.35 ▲2.45
Dashboard /wp-admin2,267 ▲905.64 ▲0.1192.16 ▼10.4839.02 ▼4.70
Posts /wp-admin/edit.php2,137 ▲372.03 ▼0.0039.62 ▲3.7236.80 ▲0.19
Add New Post /wp-admin/post-new.php1,557 ▲3123.10 ▼0.37673.42 ▼13.0860.27 ▲3.16
Media Library /wp-admin/upload.php1,434 ▲344.15 ▼0.02101.66 ▲3.5645.26 ▲1.90
Categories /wp-admin/edit-tags.php?taxonomy=clink_category&post_type=clink1,3112.1227.0228.40
Global Settings /wp-admin/edit.php?post_type=clink&page=clink-settings9632.0123.5741.75
Add New /wp-admin/post-new.php?post_type=clink1,7122.6253.1164.17
All Links /wp-admin/edit.php?post_type=clink1,1331.9839.5231.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 12 options in the database
    • widget_clink
    • theysaidso_admin_options
    • widget_recent-comments
    • clink_countdown_option
    • clink_powered_by_text
    • clink_countdown_meta_tags
    • clink_main_slug
    • clink_countdown_duration
    • can_compress_scripts
    • db_upgraded
    • ...

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/edit.php?post_type=clink&page=clink-settings
    • > Notice in wp-content/plugins/clink/inc/admin.php+106
    Undefined index: settings-updated
    • > GET request to /wp-admin/post-new.php?post_type=clink
    • > Notice in wp-content/plugins/clink/inc/meta-box.php+92
    Undefined variable: clink_post_countdown_1
    • > GET request to /wp-admin/post-new.php?post_type=clink
    • > Notice in wp-content/plugins/clink/inc/meta-box.php+93
    Undefined variable: clink_post_countdown_0

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can look at the official readme.txt

clink/clink.php 85% from 13 tests

The main PHP file in "Clink - WordPress Link Manager" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,775 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP10309217913
PO File2250363473
CSS4209354
JavaScript23935

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin