84% hurricane-woocommerce

Code Review | WooCommerce Hurricane Integration

WordPress plugin WooCommerce Hurricane Integration scored84%from 54 tests.

About plugin

  • Plugin page: hurricane-woocomm...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0.1
  • WordPress version: 6.3.1
  • First release: Dec 2, 2014
  • Latest release: Dec 15, 2014
  • Number of updates: 9
  • Update frequency: every 2.0 days
  • Top authors: reality66 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /808 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.86ms] Passed 4 tests

A check of server-side resources used by WooCommerce Hurricane Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.33 ▼1.62
Dashboard /wp-admin3.31 ▲0.0147.40 ▼4.07
Posts /wp-admin/edit.php3.36 ▲0.0045.58 ▼4.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.01 ▼8.87
Media Library /wp-admin/upload.php3.23 ▲0.0036.80 ▼1.37

Server storage [IO: ▲0.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: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

WooCommerce Hurricane Integration: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.17 ▼0.201.77 ▼0.0741.08 ▼3.69
Dashboard /wp-admin2,200 ▲205.53 ▼0.0688.67 ▼2.8542.55 ▲2.29
Posts /wp-admin/edit.php2,109 ▲91.99 ▼0.0136.05 ▼8.7340.29 ▲1.14
Add New Post /wp-admin/post-new.php1,534 ▼323.36 ▲5.05641.48 ▼2.7256.07 ▼17.79
Media Library /wp-admin/upload.php1,411 ▲114.10 ▼0.11102.29 ▼1.2744.08 ▼3.16

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

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

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
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/hurricane-woocommerce/class-hc-woocommerce-integration.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hurricane-woocommerce/hurricane-woocommerce.php:33

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 97% 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 require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === hurricane-woocommerce === )
The official readme.txt is a good inspiration

hurricane-woocommerce/hurricane-woocommerce.php Passed 13 tests

The main PHP script in "WooCommerce Hurricane Integration" version 1.1 is automatically included on every request by WordPress
66 characters long description:
Connect your WooCommerce store to your Hurricane affilaite account

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin99 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2356299

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity5.00
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin