84% houzez-woo-addon

Code Review | Houzez WooCommerce Addon

WordPress plugin Houzez WooCommerce Addon scored84%from 54 tests.

About plugin

  • Plugin page: houzez-woo-addon
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 1, 2020
  • Latest release: Aug 31, 2023
  • Number of updates: 28
  • Update frequency: every 41.9 days
  • Top authors: favethemes (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

3,000+ active /9,777 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Houzez WooCommerce Addon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.71 ▼2.81
Dashboard /wp-admin3.33 ▲0.0244.60 ▼4.49
Posts /wp-admin/edit.php3.38 ▲0.0246.89 ▼2.33
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.77 ▼8.14
Media Library /wp-admin/upload.php3.25 ▲0.0238.84 ▲4.07

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Houzez WooCommerce Addon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.27 ▼1.111.64 ▼0.0537.60 ▼2.61
Dashboard /wp-admin2,224 ▲365.86 ▲0.98110.29 ▲7.3342.95 ▲1.33
Posts /wp-admin/edit.php2,106 ▲172.04 ▼0.0140.86 ▼0.0139.21 ▲3.25
Add New Post /wp-admin/post-new.php1,555 ▲3618.42 ▼4.78618.31 ▼49.7464.21 ▲2.76
Media Library /wp-admin/upload.php1,409 ▲274.24 ▲0.0499.80 ▲3.3942.21 ▲1.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 1× 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/houzez-woo-addon/includes/payment.php:8

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: payment gateways, woocommerce, houzez, responsive, widget...

houzez-woo-addon/houzez-woo-addon.php Passed 13 tests

This is the main PHP file of "Houzez WooCommerce Addon" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
45 characters long description:
Add woocommerce functionality to houzez theme

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin479 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2157109391
PO File2202088

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity15.50
▷ Minimum class complexity13.00
▷ Maximum class complexity18.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods28
▷ Static methods27.14%
▷ Public methods2796.43%
▷ Protected methods13.57%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin