90% auto-tagger-for-amazon

Code Review | Auto Tagger for Amazon Affiliate Links

WordPress plugin Auto Tagger for Amazon Affiliate Links scored 90% from 54 tests.

About plugin

  • Plugin page: auto-tagger-for-a...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 27, 2021
  • Latest release: Aug 19, 2023
  • Number of updates: 5
  • Update frequency: every 138.2 days
  • Top authors: bhadaway (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 534 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

An overview of server-side resources used by Auto Tagger for Amazon Affiliate Links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.11 ▼0.74
Dashboard /wp-admin3.33 ▲0.0245.01 ▼8.79
Posts /wp-admin/edit.php3.38 ▲0.0243.54 ▼2.19
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.65 ▼6.34
Media Library /wp-admin/upload.php3.25 ▲0.0237.96 ▲5.30
Amazon Tracking ID /wp-admin/options-general.php?page=auto-tagger-for-amazon3.2136.39

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto Tagger for Amazon Affiliate Links
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲5014.80 ▲0.242.14 ▼0.2647.14 ▼2.38
Dashboard /wp-admin2,210 ▲225.85 ▲0.96109.96 ▼2.1743.23 ▲0.26
Posts /wp-admin/edit.php2,093 ▲12.03 ▲0.0136.37 ▲1.5034.65 ▼0.62
Add New Post /wp-admin/post-new.php1,536 ▲1723.40 ▲0.11684.85 ▼12.2962.39 ▲11.66
Media Library /wp-admin/upload.php1,392 ▲14.26 ▲0.14103.89 ▲2.3843.94 ▲2.73
Amazon Tracking ID /wp-admin/options-general.php?page=auto-tagger-for-amazon7822.0327.5925.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
No browser errors were detected

Optimizations

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
8 plugin tags: associates, tracking id, affiliates, tagging, links...

auto-tagger-for-amazon/auto-tagger-for-amazon.php 92% from 13 tests

"Auto Tagger for Amazon Affiliate Links" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 294 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin52 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171352

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.05
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
There are no PNG files in this plugin