68% amazing-fullfilment-integration-for-woocommerce

Code Review | Amazing Fulfillment Integration for WooCommerce

WordPress plugin Amazing Fulfillment Integration for WooCommerce scored68%from 54 tests.

About plugin

  • Plugin page: amazing-fullfilme...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.2.1
  • WordPress version: 6.3.1
  • First release: May 31, 2017
  • Latest release: May 31, 2019
  • Number of updates: 20
  • Update frequency: every 40.2 days
  • Top authors: denny1989 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /3,085 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.53ms] Passed 4 tests

An overview of server-side resources used by Amazing Fulfillment Integration for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.54 ▼2.02
Dashboard /wp-admin3.31 ▼0.0343.89 ▼13.90
Posts /wp-admin/edit.php3.36 ▲0.0146.41 ▲0.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.96 ▼6.50
Media Library /wp-admin/upload.php3.23 ▲0.0035.38 ▲1.61

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 304 new files
Database: 5 new tables, 6 new options
New tables
wp_amzFulfillment_inventory
wp_amzFulfillment_listing
wp_amzFulfillment_fulfillment
wp_amzFulfillment_package
wp_amzFulfillment_log
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Amazing Fulfillment Integration for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.24 ▼1.441.67 ▲0.0341.81 ▼0.01
Dashboard /wp-admin2,213 ▲255.88 ▼0.0097.20 ▼4.8440.61 ▼1.82
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0740.50 ▲3.1335.57 ▼0.55
Add New Post /wp-admin/post-new.php1,537 ▲2323.22 ▲5.64658.96 ▼12.4256.35 ▲0.89
Media Library /wp-admin/upload.php1,392 ▲44.25 ▼0.1497.28 ▼15.1441.75 ▼6.19

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_amzFulfillment_log
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/amazing-fullfilment-integration-for-woocommerce/FBAInventoryServiceMWS/Model/ListInventorySupplyByNextTokenRequest.php
    • > /wp-content/plugins/amazing-fullfilment-integration-for-woocommerce/AmzFulfillment/Template/OrdersBulkActions.php
    • > /wp-content/plugins/amazing-fullfilment-integration-for-woocommerce/AmzFulfillment/WooCommerce/Email/Template/PackageTrackingEmailHtml.php
  • 130× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AmzFulfillment_Task_Task' not found in wp-content/plugins/amazing-fullfilment-integration-for-woocommerce/AmzFulfillment/Task/SyncInventoryTask.php:9
    • > PHP Fatal error
      Uncaught Error: Call to a member function getResource() on null in wp-content/plugins/amazing-fullfilment-integration-for-woocommerce/AmzFulfillment/Template/SettingsTab.php:3
    • > PHP Fatal error
      Uncaught Error: Call to a member function getClasses() on null in wp-content/plugins/amazing-fullfilment-integration-for-woocommerce/AmzFulfillment/Template/Message.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'MarketplaceWebService_Model' not found in wp-content/plugins/amazing-fullfilment-integration-for-woocommerce/MarketplaceWebService/Model/CancelReportRequestsResult.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'MarketplaceWebService_Model' not found in wp-content/plugins/amazing-fullfilment-integration-for-woocommerce/MarketplaceWebService/Model/GetFeedSubmissionResultResponse.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'MarketplaceWebService_Model' not found in wp-content/plugins/amazing-fullfilment-integration-for-woocommerce/MarketplaceWebService/Model/GetReportRequest.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'MarketplaceWebService_Model' not found in wp-content/plugins/amazing-fullfilment-integration-for-woocommerce/MarketplaceWebService/Model/ManageReportScheduleResponse.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'MarketplaceWebService_Model' not found in wp-content/plugins/amazing-fullfilment-integration-for-woocommerce/MarketplaceWebService/Model/GetReportCountRequest.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'MarketplaceWebService_Model' not found in wp-content/plugins/amazing-fullfilment-integration-for-woocommerce/MarketplaceWebService/Model/IdList.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'MarketplaceWebService_Model' not found in wp-content/plugins/amazing-fullfilment-integration-for-woocommerce/MarketplaceWebService/Model/GetFeedSubmissionListRequest.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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: You can look at the official readme.txt

amazing-fullfilment-integration-for-woocommerce/amzFulfillment.php 92% from 13 tests

The main PHP script in "Amazing Fulfillment Integration for WooCommerce" version 2.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("amazing-fullfilment-integration-for-woocommerce.php" instead of "amzFulfillment.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
No dangerous file extensions were detected22,896 lines of code in 292 files:
LanguageFilesBlank linesComment linesLines of code
PHP2545,25623,30521,632
XML35029785
CSS11337417
JavaScript252162

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity6.65
▷ Minimum class complexity1.00
▷ Maximum class complexity227.00
Average method complexity1.42
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes231
▷ Abstract classes73.03%
▷ Concrete classes22496.97%
▷ Final classes52.23%
Methods3,201
▷ Static methods762.37%
▷ Public methods2,99593.56%
▷ Protected methods451.41%
▷ Private methods1615.03%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants164
▷ Global constants74.27%
▷ Class constants15795.73%
▷ Public constants157100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.33MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/licenseBackground.png104.90KB62.71KB▼ 40.22%
assets/images/iconOrder.png0.59KB0.68KB0.00%
assets/images/proPreviewAutomation.png65.63KB63.60KB▼ 3.11%
assets/images/sealEval.png24.32KB6.51KB▼ 73.21%
assets/images/sealFull.png17.22KB6.01KB▼ 65.10%