94% woohoo

Code Review | WooHoo! - WooCommerce customiser

WordPress plugin WooHoo! - WooCommerce customiser scored 94% from 53 tests.

About plugin

  • Plugin page: woohoo
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.3.2
  • WordPress version: 5.8.1
  • First release: Mar 20, 2018
  • Latest release: Aug 26, 2020
  • Number of updates: 16
  • Update frequency: every 55.7 days
  • Top authors: corgdesign (87.5%)corgmo (18.75%)

Code review

53 tests

User reviews

1 review

Install metrics

200+ active / 3,585 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by WooHoo! - WooCommerce customiser
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1337.95 ▲18.20
Dashboard /wp-admin3.07 ▲0.0247.77 ▲1.21
Posts /wp-admin/edit.php3.12 ▲0.0246.57 ▼5.95
Add New Post /wp-admin/post-new.php5.44 ▲0.0195.80 ▼1,062.26
Media Library /wp-admin/upload.php3.01 ▲0.0134.24 ▼1.95

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 72 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WooHoo! - WooCommerce customiser
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,726 ▲12015.90 ▲0.327.16 ▼0.7152.08 ▲4.05
Dashboard /wp-admin2,986 ▲1365.97 ▲0.13139.16 ▼8.22103.16 ▼0.04
Posts /wp-admin/edit.php2,728 ▲222.70 ▲0.0171.36 ▲6.40106.88 ▲6.44
Add New Post /wp-admin/post-new.php1,870 ▲21919.06 ▲1.79345.44 ▼18.79107.55 ▼0.01
Media Library /wp-admin/upload.php1,796 ▲245.03 ▲0.03145.91 ▼9.07105.95 ▼9.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 21× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woohoo/includes/core/product_gallery_lightbox.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woohoo/includes/core/woocommerce_breadcrumbs.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woohoo/includes/core/number_of_products_per_row.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woohoo/includes/core/description_tab.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woohoo/includes/core/product_gallery_slider.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woohoo/includes/core/product_gallery_zoom.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woohoo/includes/core/rename_coupon_field_in_cart.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woohoo/includes/core/number_of_gallery_thumbnails_per_row.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woohoo/includes/core/order_notes_in_checkout.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woohoo/includes/core/product_excerpt_on_shop_page.php:8

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • License uri: Please fix this invalid url: ""
You can take inspiration from this readme.txt

woohoo/woohoo.php 92% from 13 tests

This is the main PHP file of "WooHoo! - WooCommerce customiser" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.9.4" instead of "3.0.0")

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
There were no executable files found in this plugin12,395 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript71,4272,2294,321
CSS211,8361154,194
SVG30122,880
PHP265315251,000

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods562.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin