83% infoplus-connect-for-woocommerce

Code Review | Infoplus Connect for WooCommerce

WordPress plugin Infoplus Connect for WooCommerce scored 83% from 54 tests.

About plugin

  • Plugin page: infoplus-connect-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7.5
  • WordPress version: 6.3.1
  • First release: Nov 5, 2018
  • Latest release: Apr 29, 2020
  • Number of updates: 7
  • Update frequency: every 78.1 days
  • Top authors: infoplusconnect (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 948 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

An overview of server-side resources used by Infoplus Connect for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.46 ▼3.24
Dashboard /wp-admin3.38 ▲0.0848.78 ▲1.83
Posts /wp-admin/edit.php3.49 ▲0.1450.10 ▲1.20
Add New Post /wp-admin/post-new.php5.96 ▲0.0897.34 ▲0.30
Media Library /wp-admin/upload.php3.30 ▲0.0736.46 ▲2.21

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 118 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Infoplus Connect for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.18 ▼1.521.85 ▼0.2543.44 ▼2.66
Dashboard /wp-admin2,209 ▲244.80 ▼0.2595.67 ▼23.1241.59 ▼6.39
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0140.88 ▲2.0734.84 ▲1.70
Add New Post /wp-admin/post-new.php1,534 ▲2023.27 ▲5.75664.33 ▲18.8255.71 ▲8.78
Media Library /wp-admin/upload.php1,391 ▲34.17 ▲0.0294.04 ▼1.4043.72 ▼1.63

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/infoplus-connect-for-woocommerce/includes/admin/views/html-settings-connect.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/infoplus-connect-for-woocommerce/trunk/includes/admin/views/html-orders-meta-box-table.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/infoplus-connect-for-woocommerce/includes/admin/views/html-orders-meta-box-table.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/infoplus-connect-for-woocommerce/trunk/includes/admin/views/html-settings-connect.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Connect your store to Infoplus), #2 (Determine which products are managed via Infoplus), #3 (Order data is automatically pushed to Infoplus and synced to fulfillment workflows), #4 (Customers and admins can easily track orders)
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

infoplus-connect-for-woocommerce/infoplus-connect-for-woocommerce.php 92% from 13 tests

The primary PHP file in "Infoplus Connect for WooCommerce" version 1.0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin5,308 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
PHP532,8855,6904,560
PO File1287547702
CSS12045
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity12.94
▷ Minimum class complexity1.00
▷ Maximum class complexity77.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces4
Traits0
Classes86
▷ Abstract classes1820.93%
▷ Concrete classes6879.07%
▷ Final classes00.00%
Methods856
▷ Static methods14817.29%
▷ Public methods66477.57%
▷ Protected methods18021.03%
▷ Private methods121.40%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected