100% wpb-woocommerce-widgets-accordion

Code Review | WPB Widgets Accordion for WooCommerce

WordPress plugin WPB Widgets Accordion for WooCommerce scored 100% from 54 tests.

About plugin

  • Plugin page: wpb-woocommerce-w...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.1
  • WordPress version: 5.8.1
  • First release: May 13, 2019
  • Latest release: Nov 10, 2021
  • Number of updates: 9
  • Update frequency: every 101.5 days
  • Top authors: wpbean (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 710 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by WPB Widgets Accordion for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1333.71 ▲5.45
Dashboard /wp-admin3.07 ▲0.0247.36 ▲0.72
Posts /wp-admin/edit.php3.12 ▲0.0146.02 ▲0.79
Add New Post /wp-admin/post-new.php5.43 ▼0.0187.63 ▼563.31
Media Library /wp-admin/upload.php3.01 ▲0.0136.01 ▲2.73

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WPB Widgets Accordion for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,816 ▲22016.68 ▲0.6914.15 ▲4.0446.30 ▼2.59
Dashboard /wp-admin2,967 ▲305.90 ▼0.10144.99 ▼2.35103.63 ▼7.46
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0066.60 ▼34.1589.69 ▲2.10
Add New Post /wp-admin/post-new.php1,604 ▼7918.91 ▲0.15402.03 ▼3.25109.67 ▼1.92
Media Library /wp-admin/upload.php1,807 ▼05.04 ▼0.00151.67 ▼27.50115.05 ▲5.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 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 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
No output text or server-side errors detected on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: wordpress sidebar accordion, wordpress widgets accordion, woocommerce widgets accordion, sidebar accordion, widgets accordion...

wpb-woocommerce-widgets-accordion/main.php 92% from 13 tests

"WPB Widgets Accordion for WooCommerce" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpb-woocommerce-widgets-accordion.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin198 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS11713104
PHP3273248
SVG11336
JavaScript22410

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected