80% convert-a-link

Code Review | Awin Publisher MasterTag

WordPress plugin Awin Publisher MasterTag scored80%from 54 tests.

About plugin

  • Plugin page: convert-a-link
  • Plugin version: 1.8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Nov 24, 2015
  • Latest release: Jul 21, 2022
  • Number of updates: 24
  • Update frequency: every 101.6 days
  • Top authors: digitalwindow (95.83%)awinglobal (8.33%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /23,111 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.94MB] [CPU: ▼58.87ms] Passed 4 tests

An overview of server-side resources used by Awin Publisher MasterTag
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.427.74 ▼35.87
Dashboard /wp-admin2.07 ▼1.246.03 ▼49.82
Posts /wp-admin/edit.php2.07 ▼1.296.22 ▼44.80
Add New Post /wp-admin/post-new.php2.07 ▼3.826.37 ▼104.98
Media Library /wp-admin/upload.php2.07 ▼1.166.53 ▼29.29

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Awin Publisher MasterTag
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲11314.27 ▼0.091.93 ▲0.1042.34 ▼1.18
Dashboard /wp-admin2,219 ▲455.51 ▼0.1595.07 ▼9.1981.11 ▲38.25
Posts /wp-admin/edit.php2,125 ▲222.10 ▲0.1036.41 ▼12.8434.40 ▼15.12
Add New Post /wp-admin/post-new.php1,552 ▲2623.02 ▼0.05741.71 ▲69.9453.05 ▲3.79
Media Library /wp-admin/upload.php1,412 ▲124.19 ▲0.0297.75 ▼6.4383.55 ▲39.71

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the convert-a-link handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: convert a link, publisher mastertag, affiliate window, zanox, awin...

convert-a-link/convert-a-link.php Passed 13 tests

Analyzing the main PHP file in "Awin Publisher MasterTag" version 1.8.1
99 characters long description:
The Awin Publisher MasterTag allows you to access and enable technology from Awin and our partners.

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
There were no executable files found in this plugin74 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
one.png56.42KB23.89KB▼ 57.66%
icon.png1.78KB0.90KB▼ 49.29%