78% woocommerce-to-autoresponders-woar

Code Review | WooCommerce to Autoresponders Email Syncing

WordPress plugin WooCommerce to Autoresponders Email Syncing scored78%from 54 tests.

About plugin

  • Plugin page: woocommerce-to-au...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-4.2.1
  • WordPress version: 6.3.1
  • First release: Dec 30, 2014
  • Latest release: Jun 9, 2019
  • Number of updates: 20
  • Update frequency: every 81.2 days
  • Top authors: Bhuvnesh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,791 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.37ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce to Autoresponders Email Syncing
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.75 ▼2.45
Dashboard /wp-admin3.33 ▲0.0348.69 ▼7.19
Posts /wp-admin/edit.php3.38 ▲0.0345.60 ▼1.38
Add New Post /wp-admin/post-new.php5.93 ▲0.05105.60 ▲15.54
Media Library /wp-admin/upload.php3.26 ▲0.0340.54 ▲1.55

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 144 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce to Autoresponders Email Syncing
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.05 ▼0.572.09 ▲0.4343.89 ▲3.83
Dashboard /wp-admin2,217 ▲405.74 ▲0.1294.67 ▲2.9388.70 ▲52.45
Posts /wp-admin/edit.php2,137 ▲372.06 ▲0.0635.57 ▼3.3234.01 ▼3.38
Add New Post /wp-admin/post-new.php1,561 ▲3522.99 ▲0.15749.01 ▲56.6052.58 ▼1.35
Media Library /wp-admin/upload.php1,437 ▲374.29 ▲0.09101.55 ▼13.7576.40 ▲29.21

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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
Good news, no errors were detected

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 fix the following items
  • 9× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/woocommerce-to-autoresponders-woar/infusionsoft_src/xmlrpc-3.0/debugger/index.php
    • > /wp-content/plugins/woocommerce-to-autoresponders-woar/infusionsoft_src/xmlrpc-3.0/demo/client/client.php
    • > /wp-content/plugins/woocommerce-to-autoresponders-woar/infusionsoft_src/xmlrpc-3.0/debugger/action.php
    • > /wp-content/plugins/woocommerce-to-autoresponders-woar/infusionsoft_src/xmlrpc-3.0/debugger/controller.php
    • > /wp-content/plugins/woocommerce-to-autoresponders-woar/infusionsoft_src/xmlrpc-3.0/demo/client/mail.php
    • > /wp-content/plugins/woocommerce-to-autoresponders-woar/infusionsoft_src/phpinfo.php
    • > /wp-content/plugins/woocommerce-to-autoresponders-woar/infusionsoft_src/xmlrpc-3.0/test/verify_compat.php
    • > /wp-content/plugins/woocommerce-to-autoresponders-woar/infusionsoft_src/xmlrpc-3.0/demo/client/agesort.php
    • > /wp-content/plugins/woocommerce-to-autoresponders-woar/ajax_set_up_aweber.php
  • 71× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      include(xmlrpc_wrappers.inc): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-to-autoresponders-woar/infusionsoft_src/xmlrpc-3.0/demo/server/server.php on line 23
    • > PHP Notice
      Undefined variable: xmlrpcString in wp-content/plugins/woocommerce-to-autoresponders-woar/infusionsoft_src/xmlrpc-3.0/demo/server/discuss.php on line 6
    • > PHP Warning
      include(xmlrpc.inc): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-to-autoresponders-woar/infusionsoft_src/xmlrpc-3.0/demo/client/introspect.php on line 8
    • > PHP Warning
      include(xmlrpc.inc): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-to-autoresponders-woar/infusionsoft_src/xmlrpc-3.0/demo/client/zopetest.php on line 7
    • > PHP Warning
      require_once(xmlrpc.inc): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-to-autoresponders-woar/infusionsoft_src/xmlrpc-3.0/test/parse_args.php on line 17
    • > PHP Fatal error
      require_once(): Failed opening required 'PHPUnit/Assert.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-to-autoresponders-woar/infusionsoft_src/xmlrpc-3.0/test/PHPUnit/TestCase.php on line 23
    • > PHP Notice
      Undefined variable: xmlrpcString in wp-content/plugins/woocommerce-to-autoresponders-woar/infusionsoft_src/xmlrpc-3.0/demo/server/discuss.php on line 60
    • > PHP Warning
      include(): Failed opening 'xmlrpcs.inc' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-to-autoresponders-woar/infusionsoft_src/xmlrpc-3.0/demo/server/discuss.php on line 4
    • > PHP Fatal error
      Uncaught Error: Interface 'AWeberOAuthAdapter' not found in wp-content/plugins/woocommerce-to-autoresponders-woar/aweber_api/oauth_application.php:56
    • > PHP Warning
      include(xmlrpc.inc): failed to open stream: No such file or directory in wp-content/plugins/woocommerce-to-autoresponders-woar/infusionsoft_src/xmlrpc-3.0/demo/client/comment.php on line 2

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

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (23 tag instead of maximum 10)
You can take inspiration from this readme.txt

woocommerce-to-autoresponders-woar/init.php 92% from 13 tests

The entry point to "WooCommerce to Autoresponders Email Syncing" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-to-autoresponders-woar.php" instead of "init.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
Success! There were no dangerous files found in this plugin19,745 lines of code in 111 files:
LanguageFilesBlank linesComment linesLines of code
PHP531,7946,01812,536
XML1903213,330
CSS4452251,854
HTML47001,471
SVG100339
make24444115
JavaScript19444
Perl116531
Python110225

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity14.55
▷ Minimum class complexity1.00
▷ Maximum class complexity103.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes36
▷ Abstract classes00.00%
▷ Concrete classes36100.00%
▷ Final classes00.00%
Methods474
▷ Static methods71.48%
▷ Public methods44593.88%
▷ Protected methods245.06%
▷ Private methods51.05%
Functions59
▷ Named functions59100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/deactivated.png1.45KB0.53KB▼ 63.84%
img/btn_bg.png0.13KB0.29KB0.00%
img/gh_bg.png0.96KB0.08KB▼ 91.22%
img/selected_tab.png0.99KB0.21KB▼ 79.01%
img/activated.png1.49KB0.53KB▼ 64.55%