99% add-link-to-copied-text

Code Review | Add Link to Copied Text

WordPress plugin Add Link to Copied Text scored 99% from 54 tests.

About plugin

  • Plugin page: add-link-to-copie...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.6
  • WordPress version: 5.8.1
  • First release: May 21, 2014
  • Latest release: Dec 10, 2020
  • Number of updates: 36
  • Update frequency: every 66.6 days
  • Top authors: amitaits (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

2,000+ active / 10,094 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼164.79ms] Passed 4 tests

Analyzing server-side resources used by Add Link to Copied Text
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0552.09 ▲20.11
Dashboard /wp-admin3.11 ▲0.0557.23 ▲9.26
Posts /wp-admin/edit.php3.17 ▲0.0553.49 ▲6.73
Add New Post /wp-admin/post-new.php5.47 ▲0.0395.21 ▼680.58
Media Library /wp-admin/upload.php3.06 ▲0.0534.45 ▲5.45
Add Link /wp-admin/options-general.php?page=ftAddlink_options3.0330.35

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Add Link to Copied Text
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,715 ▲11915.76 ▼0.1811.17 ▲4.1471.44 ▲16.61
Dashboard /wp-admin2,991 ▲605.92 ▲0.02167.08 ▲20.35138.59 ▲31.00
Posts /wp-admin/edit.php2,744 ▲52.70 ▲0.0163.36 ▼2.4490.49 ▲0.03
Add New Post /wp-admin/post-new.php1,686 ▲7118.78 ▼2.39382.58 ▲101.87121.85 ▲9.46
Media Library /wp-admin/upload.php1,815 ▲85.02 ▼0.02142.83 ▼15.17121.57 ▼11.67
Add Link /wp-admin/options-general.php?page=ftAddlink_options1,2532.2155.0282.92

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Plugin options)
  • Tags: There are too many tags (16 tag instead of maximum 10)
The official readme.txt is a good inspiration

add-link-to-copied-text/settings.php 85% from 13 tests

The main PHP script in "Add Link to Copied Text" version 2.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("add-link-to-copied-text.php" instead of "settings.php")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin317 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File1161651

PHP code Passed 2 tests

An short overview of 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.36
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png25.04KB11.78KB▼ 52.97%