83% appy-pie-connect-for-woocommerce

Code Review | Appy Pie Connect for WooCommerce

WordPress plugin Appy Pie Connect for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: appy-pie-connect-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.2
  • WordPress version: 6.3.1
  • First release: Aug 25, 2020
  • Latest release: Sep 28, 2023
  • Number of updates: 13
  • Update frequency: every 87.3 days
  • Top authors: hancock11 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /762 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼17.17ms] Passed 4 tests

Server-side resources used by Appy Pie Connect for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.21 ▲0.7547.15 ▼3.29
Dashboard /wp-admin4.11 ▲0.7755.40 ▼8.43
Posts /wp-admin/edit.php4.16 ▲0.8156.56 ▲5.67
Add New Post /wp-admin/post-new.php3.93 ▼1.9642.45 ▼59.81
Media Library /wp-admin/upload.php3.97 ▲0.7445.22 ▲2.86

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Appy Pie Connect for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.49 ▲0.081.67 ▲0.1044.25 ▲1.65
Dashboard /wp-admin2,192 ▲125.61 ▲0.0591.87 ▼3.6542.26 ▼3.51
Posts /wp-admin/edit.php2,100 ▼31.99 ▲0.0438.72 ▲0.3734.50 ▼6.40
Add New Post /wp-admin/post-new.php1,526 ▼223.56 ▲0.49678.04 ▲25.3956.54 ▼1.15
Media Library /wp-admin/upload.php1,403 ▼04.18 ▼0.04101.26 ▼3.2446.42 ▲4.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/appy-pie-connect-for-woocommerce/connect-woocommerce-rest-api.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/appy-pie-connect-for-woocommerce/wc-order-api.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/appy-pie-connect-for-woocommerce/product-api.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/appy-pie-connect-for-woocommerce/wc-coupons-api.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/appy-pie-connect-for-woocommerce/wc-invoice-api.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI ("#")
The official readme.txt might help

appy-pie-connect-for-woocommerce/connect-woocommerce-rest-api.php 77% from 13 tests

"Appy Pie Connect for WooCommerce" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("appy-pie-connect-for-woocommerce.php" instead of "connect-woocommerce-rest-api.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin4,936 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP55922974,936

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity124.80
▷ Minimum class complexity42.00
▷ Maximum class complexity258.00
Average method complexity7.25
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods99
▷ Static methods00.00%
▷ Public methods99100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin