84% woo-sidebar-category-accordion

Code Review | Woocommerce Sidebar Category Accordion

WordPress plugin Woocommerce Sidebar Category Accordion scored84%from 54 tests.

About plugin

  • Plugin page: woo-sidebar-categ...
  • Plugin version: 1.1.3
  • PHP compatiblity: 3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.9
  • WordPress version: 6.3.1
  • First release: Sep 19, 2018
  • Latest release: Mar 14, 2019
  • Number of updates: 13
  • Update frequency: every 13.5 days
  • Top authors: marcrandall (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active /10,940 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
Installer ran successfully

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

Server-side resources used by Woocommerce Sidebar Category Accordion
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.05 ▼4.82
Dashboard /wp-admin3.33 ▲0.0344.25 ▼6.29
Posts /wp-admin/edit.php3.38 ▲0.0246.49 ▼1.42
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.31 ▼19.78
Media Library /wp-admin/upload.php3.26 ▲0.0238.04 ▲2.08
Woo Sidebar Accordion /wp-admin/options-general.php?page=wcsca3.2233.34

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
wcsca_open_icon
wcsca_font_size
widget_recent-comments
db_upgraded
wcsca_closed_icon
wcsca_padding
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Woocommerce Sidebar Category Accordion
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲10813.52 ▼0.755.33 ▲3.2537.74 ▼8.79
Dashboard /wp-admin2,210 ▲245.86 ▼0.00100.03 ▼3.4336.96 ▼7.62
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0136.08 ▼2.5731.59 ▼3.13
Add New Post /wp-admin/post-new.php1,517 ▲317.79 ▲0.24662.50 ▼6.7959.33 ▼9.70
Media Library /wp-admin/upload.php1,392 ▲104.19 ▼0.06107.61 ▲7.6447.66 ▲4.99
Woo Sidebar Accordion /wp-admin/options-general.php?page=wcsca8812.0223.3027.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 10 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • wcsca_font_size
    • wcsca_open_icon
    • widget_theysaidso_widget
    • widget_recent-posts
    • wcsca_closed_icon
    • wcsca_padding

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-sidebar-category-accordion/wcsca.php:19

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: category accordion, product categories accordion, collapse, sidebar, woocommerce...

woo-sidebar-category-accordion/wcsca.php 92% from 13 tests

Analyzing the main PHP file in "Woocommerce Sidebar Category Accordion" version 1.1.3
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-sidebar-category-accordion.php" instead of "wcsca.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected181 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP212896
JavaScript111061
CSS15024

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin