Benchmarks
Plugin footprint 29% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲11.74MB] [CPU: ▲43.22ms] 50% from 4 tests
An overview of server-side resources used by Auto Amazon Links - Amazon Associates Affiliate Plugin
Please take the time to fix the following items
- RAM: Total memory usage should be kept under 10MB (currently 16.46MB on /wp-admin/edit.php?post_type=amazon_auto_links&page=aal_add_contextual_unit)
- Extra RAM: Try to keep extra memory usage under 5MB (currently 11.74MB on /wp-admin/edit.php?post_type=amazon_auto_links&page=aal_add_contextual_unit)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 12.08 ▲8.62 | 77.33 ▲37.78 |
Dashboard /wp-admin | 16.08 ▲12.78 | 98.50 ▲49.27 |
Posts /wp-admin/edit.php | 16.15 ▲12.80 | 106.19 ▲59.88 |
Add New Post /wp-admin/post-new.php | 18.74 ▲12.86 | 132.91 ▲29.21 |
Media Library /wp-admin/upload.php | 16.01 ▲12.78 | 89.93 ▲56.62 |
Reports /wp-admin/edit.php?post_type=amazon_auto_links&page=aal_reports | 21.09 | 113.01 |
Help /wp-admin/edit.php?post_type=amazon_auto_links&page=aal_help | 20.68 | 134.69 |
Add Unit by URL /wp-admin/edit.php?post_type=amazon_auto_links&page=aal_add_url_unit | 16.46 | 79.25 |
Add Unit by PA-API /wp-admin/edit.php?post_type=amazon_auto_links&page=aal_add_paapi_unit | 16.39 | 73.87 |
Manage Units /wp-admin/edit.php?post_type=amazon_auto_links | 17.97 | 92.86 |
Add Unit by Category /wp-admin/edit.php?post_type=amazon_auto_links&page=aal_add_category_unit | 20.75 | 109.67 |
Add Unit by Search /wp-admin/edit.php?post_type=amazon_auto_links&page=aal_search_unit | 16.46 | 76.76 |
Manage Auto-insert /wp-admin/edit.php?post_type=aal_auto_insert | 17.92 | 91.40 |
Manage Buttons /wp-admin/edit.php?post_type=aal_button | 18.11 | 100.56 |
Add Contextual Unit /wp-admin/edit.php?post_type=amazon_auto_links&page=aal_add_contextual_unit | 16.46 | 78.18 |
Server storage [IO: ▲9.84MB] [DB: ▲0.04MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 1,515 new files
Database: 3 new tables, 14 new options
New tables |
---|
wp_aal_tasks |
wp_aal_products |
wp_aal_request_cache |
New WordPress options |
---|
aal_request_cache_version |
widget_amazonautolinks_contextualproductwidget |
amazon_auto_links_button_css |
aal_products_version |
amazon_auto_links_active_auto_inserts |
widget_theysaidso_widget |
widget_amazonautolinks_widgetbyid |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
... |
Browser metrics Passed 4 tests
Auto Amazon Links - Amazon Associates Affiliate Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,020 ▲285 | 13.83 ▼0.57 | 7.48 ▲5.73 | 40.80 ▼8.08 |
Dashboard /wp-admin | 2,270 ▲82 | 5.86 ▲0.92 | 108.45 ▲4.33 | 88.53 ▲47.18 |
Posts /wp-admin/edit.php | 2,174 ▲88 | 2.03 ▲0.05 | 38.61 ▲2.76 | 35.02 ▲3.26 |
Add New Post /wp-admin/post-new.php | 1,714 ▲181 | 23.01 ▼0.15 | 683.65 ▲23.31 | 39.90 ▼23.14 |
Media Library /wp-admin/upload.php | 1,461 ▲70 | 4.22 ▲0.01 | 94.48 ▼4.70 | 69.23 ▲22.96 |
Reports /wp-admin/edit.php?post_type=amazon_auto_links&page=aal_reports | 1,675 | 4.60 | 100.55 | 99.59 |
Help /wp-admin/edit.php?post_type=amazon_auto_links&page=aal_help | 3,617 | 12.06 | 284.55 | 154.96 |
Add Unit by URL /wp-admin/edit.php?post_type=amazon_auto_links&page=aal_add_url_unit | 7,775 | 3.31 | 111.12 | 158.35 |
Add Unit by PA-API /wp-admin/edit.php?post_type=amazon_auto_links&page=aal_add_paapi_unit | 8,131 | 3.33 | 106.56 | 96.97 |
Manage Units /wp-admin/edit.php?post_type=amazon_auto_links | 1,232 | 2.36 | 37.83 | 34.78 |
Add Unit by Category /wp-admin/edit.php?post_type=amazon_auto_links&page=aal_add_category_unit | 1,780 | 3.12 | 47.58 | 66.61 |
Add Unit by Search /wp-admin/edit.php?post_type=amazon_auto_links&page=aal_search_unit | 7,775 | 2.96 | 108.14 | 127.28 |
Manage Auto-insert /wp-admin/edit.php?post_type=aal_auto_insert | 1,165 | 2.42 | 35.88 | 28.58 |
Manage Buttons /wp-admin/edit.php?post_type=aal_button | 3,412 | 7.73 | 96.26 | 65.39 |
Add Contextual Unit /wp-admin/edit.php?post_type=amazon_auto_links&page=aal_add_contextual_unit | 8,127 | 3.29 | 90.71 | 101.57 |
Uninstaller [IO: ▲9.84MB] [DB: ▲0.04MB] 0% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the followingZombie tables detected upon uninstall: 3 tables The uninstall procedure has failed, leaving 15 options in the database
- Uninstall procedure had uncaught errors
- > Compile error in wp-content/plugins/amazon-auto-links/amazon-auto-links.php+20
Cannot declare class AmazonAutoLinks_Registry_Base, because the name is already in use
- Incomplete uninstall procedure, leaving 1,515 files (9.84MB) in the plugin directory
- (new file) asset/css/aal_help.css
- (new file) asset/css/aal_add_search_unit.min.css
- (new file) amazon-auto-links.php
- (new file) asset/css/aal_add_category_unit.css
- (new file) asset/css/aal_define_auto_insert.min.css
- (new file) asset/css/aal_define_auto_insert.css
- (new file) asset/css/aal_settings.css
- (new file) asset/css/aal_add_category_unit.min.css
- (new file) asset/css/aal_help.min.css
- (new file) asset/css/aal_add_search_unit.css
- ...
- wp_aal_tasks
- wp_aal_products
- wp_aal_request_cache
- widget_amazonautolinks_contextualproductwidget
- db_upgraded
- widget_recent-posts
- aal_tasks_version
- aal_request_cache_version
- can_compress_scripts
- widget_recent-comments
- aal_products_version
- amazon_auto_links_active_auto_inserts
- amazon_auto_links_button_css
- ...
Smoke tests 50% from 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 0% 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/amazon-auto-links/template/json/template.php
- 985× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'AmazonAutoLinks_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/amazon-auto-links/include/library/apf/factory/_common/_abstract/_controller/AdminPageFramework_Resource_Base.php:9
- > PHP Fatal error
Uncaught Error: Class 'AmazonAutoLinks_Unit_PAAPIItemLookUp_Event_Filter_ProductsFormatter' not found in wp-content/plugins/amazon-auto-links/include/core/component/unit/unit_type/paapi_scratchpad_payload/event/filter/AmazonAutoLinks_Unit_PAAPICustomPayload_Event_Filter_ProductsFormatter.php:15
- > PHP Fatal error
Uncaught Error: Class 'AmazonAutoLinks_FormFields_SearchUnit_Base' not found in wp-content/plugins/amazon-auto-links/include/core/component/unit/unit_type/paapi_item_lookup/admin/form_field/AmazonAutoLinks_FormFields_ItemLookupUnit_Advanced.php:7
- > PHP Fatal error
Uncaught Error: Class 'AmazonAutoLinks_FormFields_Base' not found in wp-content/plugins/amazon-auto-links/include/core/component/button/button_type/flat/admin/form_field/AmazonAutoLinks_Button_Flat_FormFields_Text.php:16
- > PHP Fatal error
Uncaught Error: Class 'AmazonAutoLinks_Locale_EuropeanUnion' not found in wp-content/plugins/amazon-auto-links/include/core/_common/utility/locale/AmazonAutoLinks_Locale_DE.php:15
- > PHP Fatal error
Uncaught Error: Class 'AmazonAutoLinks_Button_Image_PostMetaBox_Base' not found in wp-content/plugins/amazon-auto-links/include/core/component/button/button_type/image/admin/post_meta_box/AmazonAutoLinks_Button_Image_PostMetaBox_Hover.php:14
- > PHP Fatal error
Uncaught Error: Class 'AmazonAutoLinks_WPUtility' not found in wp-content/plugins/amazon-auto-links/include/core/component/unit/_common/output/formatter/link_style/AmazonAutoLinks_Output_Format_LinksStyle_Base.php:16
- > PHP Fatal error
Uncaught Error: Class 'AmazonAutoLinks_Unit_Admin_Page_UnitCreationWizard' not found in wp-content/plugins/amazon-auto-links/include/core/component/unit/unit_type/paapi_product_search/admin/admin_page/AmazonAutoLinks_SearchUnitAdminPage.php:16
- > PHP Fatal error
Uncaught Error: Class 'AmazonAutoLinks_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/amazon-auto-links/include/library/apf/factory/_common/_abstract/_view/AdminPageFramework_Factory_View__SettingNotice.php:9
- > PHP Fatal error
Uncaught Error: Class 'AmazonAutoLinks_ScraperDOM_Base' not found in wp-content/plugins/amazon-auto-links/include/core/component/unit/unit_type/embed/utility/AmazonAutoLinks_ScraperDOM_Product.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: There are too many tags (19 tag instead of maximum 10)
amazon-auto-links/amazon-auto-links.php 92% from 13 tests
The main file in "Auto Amazon Links - Amazon Associates Affiliate Plugin" v. 5.3.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 176 characters long)
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
Success! There were no dangerous files found in this plugin108,051 lines of code in 1,392 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,053 | 9,878 | 33,804 | 61,098 |
JavaScript | 189 | 4,917 | 3,152 | 22,533 |
PO File | 5 | 8,585 | 14,386 | 18,531 |
CSS | 110 | 576 | 537 | 4,414 |
Sass | 9 | 153 | 139 | 1,380 |
SVG | 22 | 0 | 0 | 63 |
Markdown | 2 | 4 | 0 | 20 |
JSON | 2 | 0 | 0 | 12 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 6.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1,044 | |
▷ Abstract classes | 141 | 13.51% |
▷ Concrete classes | 903 | 86.49% |
▷ Final classes | 18 | 1.99% |
Methods | 4,728 | |
▷ Static methods | 564 | 11.93% |
▷ Public methods | 2,539 | 53.70% |
▷ Protected methods | 975 | 20.62% |
▷ Private methods | 1,214 | 25.68% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 43 | |
▷ Global constants | 4 | 9.30% |
▷ Class constants | 39 | 90.70% |
▷ Public constants | 39 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
27 PNG files occupy 0.22MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/library/apf/custom-field-types/date-time-custom-field-types/css/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
include/core/component/template/asset/lightbox2/images/next.png | 1.32KB | 1.58KB | 0.00% |
include/library/apf/custom-field-types/date-time-custom-field-types/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |
include/library/apf/custom-field-types/date-time-custom-field-types/css/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
include/core/component/proxy/web_page_dumper/asset/image/instruction/create/manage-app.png | 47.91KB | 16.49KB | ▼ 65.58% |