94% super-amazon-associate-affiliate-tools

Code Review | Super - Amazon Associate Affiliate Plugin

WordPress plugin Super - Amazon Associate Affiliate Plugin scored 94% from 54 tests.

About plugin

  • Plugin page: super-amazon-asso...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.1-4.9.7
  • WordPress version: 5.8.1
  • First release: Jul 17, 2018
  • Latest release: Jul 17, 2018
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: thaliatech (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 930 total downloads

Benchmarks

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.00MB] [CPU: ▼144.29ms] Passed 4 tests

Server-side resources used by Super - Amazon Associate Affiliate Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0034.12 ▼2.44
Dashboard /wp-admin3.06 ▲0.0139.81 ▼0.63
Posts /wp-admin/edit.php3.11 ▲0.0143.21 ▼2.99
Add New Post /wp-admin/post-new.php5.42 ▼0.0186.56 ▼564.16
Media Library /wp-admin/upload.php3.00 ▲0.0029.71 ▼7.55

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Super - Amazon Associate Affiliate Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.02 ▲0.3312.95 ▲4.8748.99 ▲2.84
Dashboard /wp-admin2,967 ▲405.94 ▼0.04134.03 ▼23.33110.49 ▼4.59
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0060.46 ▼4.9995.88 ▲3.30
Add New Post /wp-admin/post-new.php1,504 ▲618.65 ▼0.13370.78 ▲7.67110.29 ▲7.14
Media Library /wp-admin/upload.php1,807 ▼35.04 ▼0.00155.72 ▲4.28117.30 ▼1.74

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 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_oembed_add_provider() in wp-content/plugins/super-amazon-associate-affiliate-tools/getsuper.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: amazon ads, amazon link, amazon associate, amazon, amazon affiliate

super-amazon-associate-affiliate-tools/getsuper.php 92% from 13 tests

Analyzing the main PHP file in "Super - Amazon Associate Affiliate Plugin" version 1.0
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("super-amazon-associate-affiliate-tools.php" instead of "getsuper.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 plugin4 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1394

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
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
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%
Functions0
▷ Named functions00.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 were not PNG files found in your plugin