Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.74MB] [CPU: ▲9.40ms] Passed 4 tests
A check of server-side resources used by WP-Lister Lite for Amazon
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.49 ▲2.03 | 54.33 ▲5.35 |
Dashboard /wp-admin | 6.30 ▲2.95 | 72.08 ▲7.36 |
Posts /wp-admin/edit.php | 6.35 ▲2.99 | 69.55 ▲20.37 |
Add New Post /wp-admin/post-new.php | 9.17 ▲3.28 | 113.22 ▲4.51 |
Media Library /wp-admin/upload.php | 6.22 ▲2.99 | 69.69 ▲30.10 |
Tutorial /wp-admin/admin.php?page=wpla-tutorial | 6.15 | 64.33 |
Listings /wp-admin/admin.php?page=wpla | 6.98 | 172.87 |
Orders /wp-admin/admin.php?page=wpla-orders | 6.79 | 60.49 |
Reports /wp-admin/admin.php?page=wpla-reports | 6.81 | 61.83 |
Tools /wp-admin/admin.php?page=wpla-tools | 7.09 | 62.54 |
Profiles /wp-admin/admin.php?page=wpla-profiles | 6.15 | 55.73 |
Settings /wp-admin/admin.php?page=wpla-settings | 6.15 | 74.67 |
Import /wp-admin/admin.php?page=wpla-import | 6.66 | 70.11 |
Feeds /wp-admin/admin.php?page=wpla-feeds | 6.81 | 58.80 |
Server storage [IO: ▲41.64MB] [DB: ▲0.02MB] 67% from 3 tests
Input-output and database impact of this plugin
These are issues you should consider
- Total filesystem usage must be limited to 25MB (currently using 41.64MB)
Filesystem: 4,436 new files
Database: 15 new tables, 24 new options
New tables |
---|
wp_amazon_feed_templates |
wp_amazon_reports |
wp_amazon_stock_log |
wp_amazon_feed_tpl_values |
wp_amazon_jobs |
wp_amazon_profiles |
wp_amazon_markets |
wp_amazon_btg |
wp_amazon_shipping |
wp_amazon_feeds |
... |
New WordPress options |
---|
db_upgraded |
wpla_cron_last_full_run |
wpla_update_channel |
wpla_daily_cron_last_run |
wpla_fba_report_cron_last_run |
wpla_orders_cron_last_run |
wpla_announcements |
wpla_staging_site_pattern |
widget_recent-comments |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP-Lister Lite for Amazon
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,076 ▲315 | 13.52 ▼1.07 | 7.78 ▲6.04 | 39.69 ▼4.03 |
Dashboard /wp-admin | 2,327 ▲150 | 5.68 ▲0.04 | 94.37 ▼5.37 | 79.89 ▲40.49 |
Posts /wp-admin/edit.php | 2,240 ▲140 | 2.06 ▲0.04 | 35.37 ▼8.39 | 34.74 ▼2.82 |
Add New Post /wp-admin/post-new.php | 1,656 ▲124 | 17.53 ▼5.46 | 665.71 ▼56.92 | 35.17 ▼63.29 |
Media Library /wp-admin/upload.php | 1,531 ▲134 | 4.27 ▲0.17 | 102.64 ▼3.84 | 77.90 ▲32.57 |
Tutorial /wp-admin/admin.php?page=wpla-tutorial | 1,214 | 2.02 | 34.91 | 48.19 |
Listings /wp-admin/admin.php?page=wpla | 1,642 | 2.10 | 40.13 | 33.27 |
Orders /wp-admin/admin.php?page=wpla-orders | 1,551 | 2.21 | 34.58 | 30.82 |
Reports /wp-admin/admin.php?page=wpla-reports | 1,447 | 2.11 | 31.62 | 36.51 |
Tools /wp-admin/admin.php?page=wpla-tools | 1,652 | 2.03 | 31.84 | 30.68 |
Profiles /wp-admin/admin.php?page=wpla-profiles | 1,289 | 2.02 | 29.06 | 27.68 |
Settings /wp-admin/admin.php?page=wpla-settings | 919 | 1.62 | 11.11 | 20.82 |
Import /wp-admin/admin.php?page=wpla-import | 1,200 | 1.99 | 27.48 | 26.50 |
Feeds /wp-admin/admin.php?page=wpla-feeds | 1,345 | 2.02 | 30.34 | 29.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 15 tables in the database
- wp_amazon_listings
- wp_amazon_feed_tpl_values
- wp_amazon_accounts
- wp_amazon_log
- wp_amazon_orders
- wp_amazon_feed_templates
- wp_amazon_feeds
- wp_amazon_profiles
- wp_amazon_markets
- wp_amazon_reports
- ...
- The uninstall procedure has failed, leaving 24 options in the database
- wpla_enable_missing_details_warning
- theysaidso_admin_options
- widget_recent-comments
- recovery_mode_email_last_sent
- wpla_last_announcement_check
- widget_recent-posts
- wpla_cron_last_full_run
- wpla_db_version
- wpla_daily_cron_last_run
- can_compress_scripts
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpla-feeds
- > Warning in wp-content/plugins/wp-lister-for-amazon/classes/core/WPLA_Setup.php+174
Use of undefined constant WOOCOMMERCE_VERSION - assumed 'WOOCOMMERCE_VERSION' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpla-settings
- > Warning in wp-content/plugins/wp-lister-for-amazon/classes/page/SettingsPage.php+965
Use of undefined constant WC_PLUGIN_FILE - assumed 'WC_PLUGIN_FILE' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=wpla-settings
- > Error in wp-content/plugins/wp-lister-for-amazon/classes/page/SettingsPage.php+172
Uncaught Error: Call to undefined function WC() in wp-content/plugins/wp-lister-for-amazon/classes/page/SettingsPage.php:172
Stack trace:
#0 wp-content/plugins/wp-lister-for-amazon/classes/page/SettingsPage.php(166): WPLA_SettingsPage->displayGeneralSettingsPage()
#1 wp-includes/class-wp-hook.php(310): WPLA_SettingsPage->onDisplaySettingsPage()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
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
Almost there! Just fix the following items
- 40× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/wp-lister-for-amazon/includes/amazon/src/MarketplaceWebService/Samples/CancelFeedSubmissionsSample.php
- > /wp-content/plugins/wp-lister-for-amazon/includes/amazon/vendor/mtdowling/jmespath.php/bin/jp.php
- > /wp-content/plugins/wp-lister-for-amazon/includes/amazon/src/MarketplaceWebService/Samples/GetFeedSubmissionResultSample.php
- > /wp-content/plugins/wp-lister-for-amazon/includes/amazon/src/MarketplaceWebServiceProducts/Samples/GetProductCategoriesForASINSample.php
- > /wp-content/plugins/wp-lister-for-amazon/includes/amazon/src/MarketplaceWebServiceProducts/Samples/GetMatchingProductForIdSample.php
- > /wp-content/plugins/wp-lister-for-amazon/views/profile/select_profile.php
- > /wp-content/plugins/wp-lister-for-amazon/includes/amazon/src/MWSSubscriptionsService/Samples/SendTestNotificationToDestinationSample.php
- > /wp-content/plugins/wp-lister-for-amazon/includes/amazon/src/MWSSubscriptionsService/Samples/ListSubscriptionsSample.php
- > /wp-content/plugins/wp-lister-for-amazon/includes/amazon/src/MarketplaceWebServiceProducts/Samples/GetLowestPricedOffersForASINSample.php
- > /wp-content/plugins/wp-lister-for-amazon/includes/amazon/src/MarketplaceWebService/Samples/RequestReportSample.php
- 2798× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/wp-lister-for-amazon/includes/amazon/vendor/wplab/guzzlehttp/guzzle/src/Exception/GuzzleException.php:7
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/wp-lister-for-amazon/includes/dompdf/lib/php-font-lib/src/FontLib/Table/Type/glyf.php:21
- > PHP Fatal error
Uncaught Error: Interface 'SellingPartnerApi\\Model\\ModelInterface' not found in wp-content/plugins/wp-lister-for-amazon/includes/amazon/vendor/jlevers/selling-partner-api/lib/Model/ProductPricingV0/LowestPriceType.php:44
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wp-lister-for-amazon/includes/amazon/vendor/aws/aws-sdk-php/src/AutoScaling/AutoScalingClient.php:132
- > PHP Fatal error
Uncaught Error: Interface 'SellingPartnerApi\\Model\\ModelInterface' not found in wp-content/plugins/wp-lister-for-amazon/includes/amazon/vendor/jlevers/selling-partner-api/lib/Model/MessagingV1/GetAttributesResponse.php:45
- > PHP Fatal error
Uncaught Error: Class 'WPLab\\Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/wp-lister-for-amazon/includes/dompdf/src/FrameDecorator/Table.php:21
- > PHP Notice
Undefined variable: serviceUrl in wp-content/plugins/wp-lister-for-amazon/includes/amazon/src/MarketplaceWebServiceProducts/Samples/GetProductCategoriesForSKUSample.php on line 45
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AbstractConfigurationProvider' not found in wp-content/plugins/wp-lister-for-amazon/includes/amazon/vendor/aws/aws-sdk-php/src/S3/UseArnRegion/ConfigurationProvider.php:44
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wp-lister-for-amazon/includes/amazon/vendor/aws/aws-sdk-php/src/KafkaConnect/KafkaConnectClient.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-lister-for-amazon/views/settings_tabs.php:21
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpla-settings
- > Network (severe)
wp-content/plugins/assets/css/select2.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: export, woocommerce, import, products, amazon...
wp-lister-for-amazon/wp-lister-amazon.php 85% from 13 tests
The entry point to "WP-Lister Lite for Amazon" version 2.5.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("4.2" instead of "6.0.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-lister-for-amazon.php" instead of "wp-lister-amazon.php")
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Please make sure to remedy the following
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wp-lister-for-amazon/includes/amazon/vendor/aws/aws-crt-php/run_tests.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3,683 | 109,197 | 417,983 | 497,233 |
Markdown | 46 | 2,243 | 0 | 6,650 |
PO File | 2 | 1,696 | 6,363 | 3,878 |
XML | 77 | 60 | 39 | 3,381 |
JSON | 28 | 6 | 0 | 2,650 |
CSS | 6 | 166 | 129 | 1,012 |
JavaScript | 11 | 270 | 292 | 850 |
SVG | 9 | 0 | 0 | 612 |
YAML | 6 | 61 | 1 | 316 |
Bourne Shell | 3 | 19 | 4 | 176 |
HTML | 3 | 6 | 0 | 73 |
reStructuredText | 1 | 35 | 29 | 59 |
GLSL | 1 | 17 | 0 | 55 |
m4 | 1 | 4 | 4 | 22 |
Bourne Again Shell | 1 | 5 | 0 | 13 |
make | 1 | 4 | 0 | 9 |
INI | 3 | 1 | 1 | 4 |
DOS Batch | 1 | 2 | 0 | 2 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,017)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 651)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 14.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,017.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 651.00 |
Code structure | ||
---|---|---|
Namespaces | 838 | |
Interfaces | 95 | |
Traits | 30 | |
Classes | 3,489 | |
▷ Abstract classes | 79 | 2.26% |
▷ Concrete classes | 3,410 | 97.74% |
▷ Final classes | 89 | 2.61% |
Methods | 45,004 | |
▷ Static methods | 7,533 | 16.74% |
▷ Public methods | 41,880 | 93.06% |
▷ Protected methods | 814 | 1.81% |
▷ Private methods | 2,310 | 5.13% |
Functions | 2,152 | |
▷ Named functions | 279 | 12.96% |
▷ Anonymous functions | 1,873 | 87.04% |
Constants | 4,020 | |
▷ Global constants | 60 | 1.49% |
▷ Class constants | 3,960 | 98.51% |
▷ Public constants | 3,821 | 96.49% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
61 PNG files occupy 0.16MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/amazon-business.png | 45.92KB | 16.47KB | ▼ 64.13% |
js/jqueryFileTree/images/xls.png | 0.65KB | 0.63KB | ▼ 2.41% |
img/amazon-256x256.png | 5.84KB | 2.88KB | ▼ 50.69% |
img/icon-error.png | 5.01KB | 2.68KB | ▼ 46.48% |
img/search3.png | 1.24KB | 0.32KB | ▼ 74.41% |