Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/automatic-affiliate-for-amazon/includes/AmazonSettings.php+29
Undefined property: amazonSettings::$data
Server metrics [RAM: ▼1.83MB] [CPU: ▼59.91ms] Passed 4 tests
An overview of server-side resources used by FS-14 Automatic Amazon Affiliate Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 5.73 ▼33.60 |
Dashboard /wp-admin | 2.19 ▼1.16 | 7.26 ▼58.37 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 6.79 ▼52.26 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 7.01 ▼95.40 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 8.35 ▼28.38 |
FS-14 AAAP /wp-admin/options-general.php?page=listamazon_list_options | 2.19 | 6.57 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_hd_amazon_sidebar |
widget_recent-comments |
can_compress_scripts |
amazonlist |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by FS-14 Automatic Amazon Affiliate Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.23 ▼0.03 | 1.77 ▲0.22 | 43.39 ▲4.46 |
Dashboard /wp-admin | 2,206 ▲29 | 5.73 ▲0.14 | 88.73 ▼2.75 | 38.92 ▼1.48 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 1.99 ▼0.02 | 36.08 ▼4.41 | 36.45 ▼0.92 |
Add New Post /wp-admin/post-new.php | 6,231 ▲4,702 | 25.80 ▲2.56 | 888.83 ▲248.82 | 64.65 ▲0.18 |
Media Library /wp-admin/upload.php | 1,411 ▲17 | 4.18 ▲0.01 | 94.99 ▼3.29 | 46.73 ▲1.96 |
FS-14 AAAP /wp-admin/options-general.php?page=listamazon_list_options | 1,011 | 2.01 | 25.02 | 56.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/automatic-affiliate-for-amazon/includes/AmazonSettings.php+29
Undefined property: amazonSettings::$data
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- widget_hd_amazon_sidebar
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- amazonlist
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=listamazon_list_options
- > Notice in wp-content/plugins/automatic-affiliate-for-amazon/includes/AmazonSettings.php+29
Undefined property: amazonSettings::$data
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=listamazon_list_options
- > Warning in wp-content/plugins/automatic-affiliate-for-amazon/includes/AmazonSettings.php+155
Illegal string offset 'csslayout'
- 14 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=listamazon_list_options
- > Notice in wp-content/plugins/automatic-affiliate-for-amazon/includes/AmazonSettings.php+175
Uninitialized string offset: 0
- > GET request to /wp-admin/options-general.php?page=listamazon_list_options
- > Deprecated in wp-content/plugins/automatic-affiliate-for-amazon/fs-14-aaap.php+43
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=listamazon_list_options
- > Warning in wp-content/plugins/automatic-affiliate-for-amazon/includes/AmazonSettings.php+120
Illegal string offset 'country'
- > GET request to /wp-admin/options-general.php?page=listamazon_list_options
- > Warning in wp-content/plugins/automatic-affiliate-for-amazon/includes/AmazonSettings.php+135
Illegal string offset 'AWS_API_KEY'
- > GET request to /wp-admin/options-general.php?page=listamazon_list_options
- > Warning in wp-content/plugins/automatic-affiliate-for-amazon/includes/AmazonSettings.php+138
Illegal string offset 'AWS_API_SECRET_KEY'
- > GET request to /wp-admin/options-general.php?page=listamazon_list_options
- > Warning in wp-content/plugins/automatic-affiliate-for-amazon/includes/AmazonSettings.php+161
Illegal string offset 'BUY_BUTTON'
- > GET request to /wp-admin/options-general.php?page=listamazon_list_options
- > Warning in wp-content/plugins/automatic-affiliate-for-amazon/includes/AmazonSettings.php+164
Illegal string offset 'TARGET_BLANK'
- > GET request to /wp-admin/options-general.php?page=listamazon_list_options
- > Warning in wp-content/plugins/automatic-affiliate-for-amazon/includes/AmazonSettings.php+175
Illegal string offset 'button_color'
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
Please take a closer look at the following
- 27× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: options in wp-content/plugins/automatic-affiliate-for-amazon/includes/views/producttemplate.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/automatic-affiliate-for-amazon/includes/AmazonSidebar.php:5
- > PHP Notice
Trying to get property 'LowestNewPrice' of non-object in wp-content/plugins/automatic-affiliate-for-amazon/includes/views/producttemplate.php on line 15
- > PHP Notice
Trying to get property 'OfferSummary' of non-object in wp-content/plugins/automatic-affiliate-for-amazon/includes/views/producttemplate.php on line 17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/automatic-affiliate-for-amazon/includes/views/producttemplate.php on line 24
- > PHP Notice
Trying to get property 'DetailPageURL' of non-object in wp-content/plugins/automatic-affiliate-for-amazon/includes/views/producttemplate.php on line 24
- > PHP Notice
Trying to get property 'LowestRefurbishedPrice' of non-object in wp-content/plugins/automatic-affiliate-for-amazon/includes/views/producttemplate.php on line 17
- > PHP Notice
Undefined variable: itemObject in wp-content/plugins/automatic-affiliate-for-amazon/includes/views/producttemplate.php on line 24
- > PHP Notice
Trying to get property 'MediumImage' of non-object in wp-content/plugins/automatic-affiliate-for-amazon/includes/views/producttemplate.php on line 5
- > PHP Notice
Trying to get property 'ItemAttributes' of non-object in wp-content/plugins/automatic-affiliate-for-amazon/includes/views/producttemplate.php on line 10
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=listamazon_list_options
- > Network (severe)
wp-content/plugins/automatic-affiliate-for-amazon/includes/css/admin.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=listamazon_list_options
- > Network (severe)
wp-content/plugins/automatic-affiliate-for-amazon/includes/js/admin.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: amazon, affiliate plugins, affiliate, amazon partnership, amazon associate...
automatic-affiliate-for-amazon/fs-14-aaap.php 92% from 13 tests
"FS-14 Automatic Amazon Affiliate Plugin" version 1.1'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: It is recommended to name the main PHP file as the plugin slug ("automatic-affiliate-for-amazon.php" instead of "fs-14-aaap.php")
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 plugin2,209 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 43 | 2 | 1,432 |
PHP | 8 | 322 | 333 | 777 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.60 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 47 | 82.46% |
▷ Protected methods | 9 | 15.79% |
▷ Private methods | 1 | 1.75% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin