Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼311.05ms] Passed 4 tests
This is a short check of server-side resources used by AADP: Amazon Affiliate & Dropshipping for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 53.60 ▲3.64 |
Dashboard /wp-admin | 3.41 ▲0.00 | 33.20 ▲1.22 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 35.51 ▲0.65 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 90.16 ▼1,244.34 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 22.59 ▼1.72 |
AADP Docs /wp-admin/admin.php?page=aadp_amazon_affiliate_dropshipping_docs | 3.10 | 18.89 |
Product Importer /wp-admin/admin.php?page=wp_amazon_product_importer | 3.10 | 18.06 |
Settings /wp-admin/admin.php?page=wp_amazon | 3.10 | 16.60 |
Server storage [IO: ▲3.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 408 new files
Database: no new tables, 10 new options
New WordPress options |
---|
use_for |
amazon_associate_tag |
default_store |
amazon_hero_search |
enable_no_follow |
buy_now_action |
product_importer |
cart_import_category |
wp_amazon_country |
import_as |
Browser metrics Passed 4 tests
An overview of browser requirements for AADP: Amazon Affiliate & Dropshipping for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲19 | 15.87 ▲0.30 | 5.90 ▼0.36 | 2.32 ▼0.08 |
Dashboard /wp-admin | 2,895 ▲34 | 6.15 ▼0.03 | 117.54 ▼15.29 | 155.32 ▼2.24 |
Posts /wp-admin/edit.php | 2,691 ▲3 | 3.24 ▲0.02 | 61.76 ▼1.64 | 141.62 ▲3.23 |
Add New Post /wp-admin/post-new.php | 1,661 ▼29 | 16.61 ▼5.51 | 406.25 ▼27.59 | 160.55 ▲5.98 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.50 ▲0.01 | 135.20 ▼11.12 | 183.73 ▲3.83 |
AADP Docs /wp-admin/admin.php?page=aadp_amazon_affiliate_dropshipping_docs | 28 | 0.94 | 0.03 | 18.12 |
Product Importer /wp-admin/admin.php?page=wp_amazon_product_importer | 28 | 0.94 | 0.03 | 17.05 |
Settings /wp-admin/admin.php?page=wp_amazon | 28 | 0.94 | 0.03 | 16.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 following
- Zombie WordPress options were found after uninstall: 10 options
- use_for
- enable_no_follow
- buy_now_action
- wp_amazon_country
- default_store
- product_importer
- amazon_associate_tag
- import_as
- cart_import_category
- amazon_hero_search
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/aadp-amazon-affiliate-dropshipping-for-woocommerce/aadp.php
- > /wp-content/plugins/aadp-amazon-affiliate-dropshipping-for-woocommerce/vendor/symfony/mime/Resources/bin/update_mime_types.php
- 169× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Contracts\\HttpClient\\ResponseInterface' not found in wp-content/plugins/aadp-amazon-affiliate-dropshipping-for-woocommerce/vendor/symfony/http-client/Response/NativeResponse.php:27
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Mime\\Crypto\\SMime' not found in wp-content/plugins/aadp-amazon-affiliate-dropshipping-for-woocommerce/vendor/symfony/mime/Crypto/SMimeSigner.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Contracts\\HttpClient\\Exception\\HttpExceptionInterface' not found in wp-content/plugins/aadp-amazon-affiliate-dropshipping-for-woocommerce/vendor/symfony/http-client-contracts/Exception/RedirectionExceptionInterface.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\Constraint\\Constraint' not found in wp-content/plugins/aadp-amazon-affiliate-dropshipping-for-woocommerce/vendor/symfony/dom-crawler/Test/Constraint/CrawlerSelectorTextContains.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/aadp-amazon-affiliate-dropshipping-for-woocommerce/vendor/symfony/css-selector/Parser/Handler/CommentHandler.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/aadp-amazon-affiliate-dropshipping-for-woocommerce/templates/admin_docs.php:3
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\HttpClient\\Exception\\TransportException' not found in wp-content/plugins/aadp-amazon-affiliate-dropshipping-for-woocommerce/vendor/symfony/http-client/Exception/TimeoutException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Mime\\RawMessage' not found in wp-content/plugins/aadp-amazon-affiliate-dropshipping-for-woocommerce/vendor/symfony/mime/Message.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Contracts\\HttpClient\\ResponseInterface' not found in wp-content/plugins/aadp-amazon-affiliate-dropshipping-for-woocommerce/vendor/symfony/http-client/Response/AmpResponse.php:41
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Contracts\\HttpClient\\HttpClientInterface' not found in wp-content/plugins/aadp-amazon-affiliate-dropshipping-for-woocommerce/vendor/symfony/http-client/CurlHttpClient.php:35
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=aadp_amazon_affiliate_dropshipping_docs
- > Network (severe)
wp-admin/admin.php?page=aadp_amazon_affiliate_dropshipping_docs - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=wp_amazon_product_importer
- > Network (severe)
wp-admin/admin.php?page=wp_amazon_product_importer - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=wp_amazon
- > Network (severe)
wp-admin/admin.php?page=wp_amazon - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 26 tag instead of maximum 10
- Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #2, #3, #4, #5, #6, #7, #8, #9 in aadp-amazon-affiliate-dropshipping-for-woocommerce/assets to your readme.txt
aadp-amazon-affiliate-dropshipping-for-woocommerce/aadp.php 69% from 13 tests
Analyzing the main PHP file in "AADP: Amazon Affiliate & Dropshipping for WooCommerce" version 0.0.8
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("aadp-amazon-affiliate-dropshipping-for-woocommerce.php" instead of "aadp.php")
- Domain Path: The domain path folder was not found ("/lang/")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 280 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected47,260 lines of code in 368 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 307 | 5,314 | 8,742 | 44,256 |
JSON | 21 | 0 | 0 | 1,863 |
JavaScript | 7 | 67 | 45 | 566 |
Markdown | 23 | 155 | 0 | 417 |
CSS | 7 | 13 | 22 | 86 |
reStructuredText | 1 | 39 | 34 | 37 |
YAML | 1 | 6 | 0 | 19 |
XML | 1 | 1 | 0 | 16 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 13.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 58 | |
Interfaces | 38 | |
Traits | 10 | |
Classes | 221 | |
▷ Abstract classes | 13 | 5.88% |
▷ Concrete classes | 208 | 94.12% |
▷ Final classes | 84 | 40.38% |
Methods | 1,535 | |
▷ Static methods | 225 | 14.66% |
▷ Public methods | 1,307 | 85.15% |
▷ Protected methods | 76 | 4.95% |
▷ Private methods | 152 | 9.90% |
Functions | 218 | |
▷ Named functions | 97 | 44.50% |
▷ Anonymous functions | 121 | 55.50% |
Constants | 197 | |
▷ Global constants | 80 | 40.61% |
▷ Class constants | 117 | 59.39% |
▷ Public constants | 107 | 91.45% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin