84% amazify

Code Review | Amazon Affiliate Tag

WordPress plugin Amazon Affiliate Tag scored84%from 54 tests.

About plugin

  • Plugin page: amazify
  • Plugin version:
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.6
  • WordPress version: 6.3.1
  • First release: Mar 26, 2015
  • Latest release: Jun 29, 2018
  • Number of updates: 21
  • Update frequency: every 56.7 days
  • Top authors: MaximeB (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

800+ active /8,940 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.32MB] [CPU: ▼17.63ms] Passed 4 tests

Analyzing server-side resources used by Amazon Affiliate Tag
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0335.57 ▼7.38
Dashboard /wp-admin3.31 ▲0.0150.56 ▲0.40
Posts /wp-admin/edit.php3.37 ▲0.0150.12 ▼4.77
Add New Post /wp-admin/post-new.php4.61 ▼1.2849.15 ▼57.45
Media Library /wp-admin/upload.php3.24 ▲0.0136.06 ▼0.90
Amazify /wp-admin/options-general.php?page=amazify3.1831.94

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Amazon Affiliate Tag
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.002.00 ▲0.3641.89 ▼2.13
Dashboard /wp-admin2,199 ▲195.61 ▲0.0888.96 ▼9.4841.95 ▼0.82
Posts /wp-admin/edit.php2,104 ▲11.98 ▲0.0039.51 ▼3.3635.53 ▲0.46
Add New Post /wp-admin/post-new.php1,529 ▼823.53 ▲5.09650.82 ▲21.4653.91 ▼11.96
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.01106.16 ▲7.7145.59 ▲1.16
Amazify /wp-admin/options-general.php?page=amazify8381.9922.7130.06

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=amazify
    • > Notice in wp-content/plugins/amazify/amazify.php+94
    Trying to access array offset on value of type bool

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
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
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (How to configure the plugin in the administration panel screenshot-1.(png|jpg|jpeg|gif).) image missing
Please take inspiration from this readme.txt

amazify/amazify.php 92% from 13 tests

The main PHP script in "Amazon Affiliate Tag" version is automatically included on every request by WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin136 lines of code in 1 file:
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.28
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 functions9100.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
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.png23.53KB9.47KB▼ 59.77%