94% amazon2smile-affiliate-links

Code Review | Amazon Affiliate Links Updated to Smile

WordPress plugin Amazon Affiliate Links Updated to Smile scored 94% from 54 tests.

About plugin

  • Plugin page: amazon2smile-affi...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.7
  • WordPress version: 5.8.1
  • First release: Nov 13, 2013
  • Latest release: Nov 13, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: tl3po (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 846 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼144.78ms] Passed 4 tests

Analyzing server-side resources used by Amazon Affiliate Links Updated to Smile
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1236.18 ▲13.78
Dashboard /wp-admin3.06 ▲0.0153.65 ▲2.48
Posts /wp-admin/edit.php3.11 ▲0.0142.82 ▼5.68
Add New Post /wp-admin/post-new.php5.42 ▼0.0198.07 ▼572.92
Media Library /wp-admin/upload.php3.01 ▲0.0033.96 ▼3.01

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Amazon Affiliate Links Updated to Smile
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10815.85 ▲0.258.93 ▼0.3055.62 ▼6.42
Dashboard /wp-admin2,973 ▲395.88 ▼0.06144.01 ▼4.70117.62 ▼6.75
Posts /wp-admin/edit.php2,736 ▼32.69 ▲0.0171.68 ▼1.81105.14 ▲11.90
Add New Post /wp-admin/post-new.php1,683 ▲8918.81 ▲0.08400.89 ▼2.89116.38 ▼1.10
Media Library /wp-admin/upload.php1,810 ▲35.00 ▼0.03156.02 ▼22.25126.82 ▼4.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/amazon2smile-affiliate-links/wp-amazon2smile.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration 96% from 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
1 plugin tags: amazon affiliate smile

amazon2smile-affiliate-links/wp-amazon2smile.php 92% from 13 tests

"Amazon Affiliate Links Updated to Smile" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("amazon2smile-affiliate-links.php" instead of "wp-amazon2smile.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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 functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin