89% add-link-on-copied-text

Code Review | Add link on copied text

WordPress plugin Add link on copied text scored89%from 54 tests.

About plugin

  • Plugin page: add-link-on-copie...
  • Plugin version: 2.4.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: May 11, 2022
  • Latest release: Apr 3, 2023
  • Number of updates: 8
  • Update frequency: every 40.9 days
  • Top authors: dmitrylitvinov (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /2,145 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.14ms] Passed 4 tests

An overview of server-side resources used by Add link on copied text
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.47 ▼3.24
Dashboard /wp-admin3.33 ▲0.0350.33 ▼1.75
Posts /wp-admin/edit.php3.38 ▲0.0350.17 ▲2.73
Add New Post /wp-admin/post-new.php5.91 ▲0.03120.14 ▲31.70
Media Library /wp-admin/upload.php3.26 ▲0.0340.13 ▲1.69
Add link on copied text settings /wp-admin/options-general.php?page=aloct-plugin-options3.2233.10

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Add link on copied text: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲3414.34 ▼0.041.99 ▼0.3543.88 ▼3.67
Dashboard /wp-admin2,196 ▲195.55 ▼0.0688.89 ▲1.9137.29 ▼0.73
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0535.54 ▼2.2631.26 ▼5.92
Add New Post /wp-admin/post-new.php1,539 ▲1318.38 ▼2.58687.96 ▼14.7985.78 ▲26.88
Media Library /wp-admin/upload.php1,407 ▲74.10 ▼0.02101.59 ▼13.7545.34 ▼2.11
Add link on copied text settings /wp-admin/options-general.php?page=aloct-plugin-options8281.9924.3528.47

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (View on the post page.) image required
You can look at the official readme.txt

add-link-on-copied-text/add-link-on-copied-text.php 92% from 13 tests

The main PHP script in "Add link on copied text" version 2.4.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 196 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
No dangerous file extensions were detected106 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods8100.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
There are no PNG files in this plugin