84% easy-woocommerce-brands

Code Review | Easy Woocommerce Brands

WordPress plugin Easy Woocommerce Brands scored 84% from 53 tests.

About plugin

  • Plugin page: easy-woocommerce-...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 5.8.1
  • First release: Oct 8, 2018
  • Latest release: Jun 16, 2020
  • Number of updates: 17
  • Update frequency: every 36.4 days
  • Top authors: osamabaqi123 (100%)

Code review

53 tests

User reviews

6 reviews

Install metrics

100+ active / 1,240 total downloads


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.15MB] [CPU: ▼277.47ms] Passed 4 tests

A check of server-side resources used by Easy Woocommerce Brands
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1433.21 ▲3.64
Dashboard /wp-admin3.27 ▲0.2277.90 ▲21.61
Posts /wp-admin/edit.php3.32 ▲0.2244.65 ▼11.41
Add New Post /wp-admin/post-new.php5.55 ▲0.12112.39 ▼1,075.58
Media Library /wp-admin/upload.php3.13 ▲0.1332.93 ▼26.54
EWB Settings /wp-admin/options-general.php?page=ewb_settings3.1334.54

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Easy Woocommerce Brands
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,854 ▲27217.32 ▲1.7810.12 ▼0.7446.24 ▼5.06
Dashboard /wp-admin3,129 ▲2768.02 ▲2.20193.64 ▲59.68134.56 ▲28.24
Posts /wp-admin/edit.php2,920 ▲2144.30 ▲1.6180.78 ▲10.18102.52 ▲10.38
Add New Post /wp-admin/post-new.php1,594 ▼6221.21 ▲2.78307.27 ▼76.83120.90 ▼1.11
Media Library /wp-admin/upload.php1,796 ▲244.79 ▼0.22144.85 ▼39.83124.87 ▼18.05
EWB Settings /wp-admin/options-general.php?page=ewb_settings1,4903.3576.02106.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_ewb_brands_list

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
Almost there! Just fix the following items
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-woocommerce-brands/easy-woocommerce-brands.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-woocommerce-brands/include/widget/brands-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-woocommerce-brands/include/shortcode/ewb_page.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-woocommerce-brands/include/brand_image_field.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-woocommerce-brands/include/admin/brand_image_field.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/easy-woocommerce-brands/include/admin/ewb-settings.php:3

User-side errors Passed 1 test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: brand, manufacturer, woocommerce brands, logo, brands

easy-woocommerce-brands/easy-woocommerce-brands.php 92% from 13 tests

Analyzing the main PHP file in "Easy Woocommerce Brands" version 1.1
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 163 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin527 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity8.75
▷ Minimum class complexity4.00
▷ Maximum class complexity19.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods14.76%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions888.89%
▷ Anonymous functions111.11%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected