77% wceazy

Code Review | wcEazy - Supercharge your WooCommerce Store

WordPress plugin wcEazy - Supercharge your WooCommerce Store scored77%from 54 tests.

About plugin

  • Plugin page: wceazy
  • Plugin version: 1.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.3
  • WordPress version: 6.3.1
  • First release: Jun 21, 2022
  • Latest release: Sep 21, 2023
  • Number of updates: 18
  • Update frequency: every 25.4 days
  • Top authors: wceazy (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /3,002 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼4.81ms] Passed 4 tests

Analyzing server-side resources used by wcEazy - Supercharge your WooCommerce Store
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1239.72 ▼5.41
Dashboard /wp-admin3.50 ▲0.1648.31 ▼6.02
Posts /wp-admin/edit.php3.62 ▲0.2247.73 ▼6.15
Add New Post /wp-admin/post-new.php6.08 ▲0.1686.56 ▼1.66
Media Library /wp-admin/upload.php3.43 ▲0.1545.76 ▲9.92

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 209 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
wceazy_modules
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

wcEazy - Supercharge your WooCommerce Store: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.24 ▲0.051.77 ▲0.0144.05 ▲1.39
Dashboard /wp-admin2,221 ▲475.56 ▼0.1483.29 ▼15.8480.62 ▲38.51
Posts /wp-admin/edit.php2,133 ▲301.97 ▲0.0134.70 ▼3.2432.75 ▼1.99
Add New Post /wp-admin/post-new.php1,704 ▲17622.07 ▼1.18766.99 ▲63.9352.43 ▼8.91
Media Library /wp-admin/upload.php1,423 ▲264.22 ▲0.13104.71 ▼16.8766.91 ▲17.06

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
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • wceazy_modules
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 11× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/wceazy/frontend/api/floating_cart/update_quantity.php
    • > /wp-content/plugins/wceazy/frontend/api/product_sticky_bar/add_to_cart.php
    • > /wp-content/plugins/wceazy/frontend/api/address_book/delete.php
    • > /wp-content/plugins/wceazy/frontend/api/floating_cart/remove_cart_item.php
    • > /wp-content/plugins/wceazy/frontend/api/product_filter/add_to_cart.php
    • > /wp-content/plugins/wceazy/frontend/api/floating_cart/apply_coupon.php
    • > /wp-content/plugins/wceazy/modules/pdf_invoice/library/tools/tcpdf_addfont.php
    • > /wp-content/plugins/wceazy/frontend/api/address_book/make_primary.php
    • > /wp-content/plugins/wceazy/backend/templates/views/pdf_invoice/invoice.php
    • > /wp-content/plugins/wceazy/frontend/api/address_book/get_address_on_checkout.php
  • 47× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wceazy/backend/api/pdf_invoice/save.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wceazy/frontend/templates/views/one_click_checkout/view.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wceazy/backend/templates/dashboard.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wceazy/backend/api/url_coupon/coupon_list.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wceazy/backend/api/bogo_deal/save_rules.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_product() in wp-content/plugins/wceazy/frontend/templates/views/product_sticky_bar/view.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wceazy/backend/templates/views/product_sticky_bar/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wceazy/backend/templates/views/bogo_deal/settings.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wceazy/frontend/api/shipping_bar/get_updated_content.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wceazy/backend/templates/views/url_coupon/settings.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7, #8, #9 in wceazy/assets to your readme.txt
You can look at the official readme.txt

wceazy/wceazy.php 92% from 13 tests

The entry point to "wcEazy - Supercharge your WooCommerce Store" version 1.1.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected41,876 lines of code in 198 files:
LanguageFilesBlank linesComment linesLines of code
PHP1074,3832,87933,307
CSS22763905,786
JavaScript214861062,206
SVG4800577

PHP code 0% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 4,420)
  • Method cyclomatic complexity should be reduced to less than 100 (currently 503)
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity131.49
▷ Minimum class complexity1.00
▷ Maximum class complexity4,420.00
Average method complexity9.48
▷ Minimum method complexity1.00
▷ Maximum method complexity503.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes49
▷ Abstract classes00.00%
▷ Concrete classes49100.00%
▷ Final classes00.00%
Methods754
▷ Static methods11014.59%
▷ Public methods59078.25%
▷ Protected methods16221.49%
▷ Private methods20.27%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants78
▷ Global constants78100.00%
▷ Class constants00.00%
▷ Public constants00.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