90% wpc-brands

Code Review | WPC Brands for WooCommerce

WordPress plugin WPC Brands for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wpc-brands
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 10, 2021
  • Latest release: Sep 3, 2023
  • Number of updates: 15
  • Update frequency: every 42.3 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,135 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.22MB] [CPU: ▼7.25ms] Passed 4 tests

Server-side resources used by WPC Brands for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2342.46 ▼1.07
Dashboard /wp-admin3.53 ▲0.1854.25 ▼13.96
Posts /wp-admin/edit.php3.64 ▲0.2948.39 ▼5.59
Add New Post /wp-admin/post-new.php6.13 ▲0.2491.13 ▼8.36
Media Library /wp-admin/upload.php3.45 ▲0.2241.26 ▲4.18
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.6335.68
About /wp-admin/admin.php?page=wpclever3.4231.94

Server storage [IO: ▲0.09MB] [DB: ▲0.02MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

WPC Brands for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲13114.75 ▲0.371.86 ▼0.0443.62 ▼1.03
Dashboard /wp-admin2,286 ▲834.86 ▼1.0799.64 ▼19.2171.71 ▲28.26
Posts /wp-admin/edit.php2,185 ▲852.04 ▼0.0136.27 ▼1.1832.81 ▼3.35
Add New Post /wp-admin/post-new.php1,622 ▲9623.21 ▲5.69674.25 ▼12.0459.53 ▼2.96
Media Library /wp-admin/upload.php1,477 ▲774.18 ▼0.02101.81 ▲0.6581.77 ▲37.99
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7412.1536.0256.71
About /wp-admin/admin.php?page=wpclever1,3722.1633.4038.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

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

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: wpc, woo, brands, woocommerce

wpc-brands/wpc-brands.php Passed 13 tests

The main PHP file in "WPC Brands for WooCommerce" ver. 1.2.5 adds more information about the plugin and also serves as the entry point for this plugin
62 characters long description:
WPC Brands allows you to manage product brands in the easiest.

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
No dangerous file extensions were detected1,752 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP4172391,141
CSS4927474
JavaScript3194108
SVG10029

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity37.00
▷ Minimum class complexity1.00
▷ Maximum class complexity100.00
Average method complexity4.16
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods46
▷ Static methods36.52%
▷ Public methods46100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants7
▷ Global constants7100.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
PNG images were not found in this plugin