83% wpb-accordion-menu-or-category

Code Review | WPB Accordion Menu - Elementor Accordion Menu - WooCommerce Category Accordion

WordPress plugin WPB Accordion Menu - Elementor Accordion Menu - WooCommerce Category Accordion scored83%from 54 tests.

About plugin

  • Plugin page: wpb-accordion-men...
  • Plugin version: 1.4.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 9, 2015
  • Latest release: Nov 27, 2023
  • Number of updates: 104
  • Update frequency: every 29.5 days
  • Top authors: wpbean (100%)

Code review

54 tests

User reviews

36 reviews

Install metrics

7,000+ active /96,187 total downloads

Benchmarks

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.19ms] Passed 4 tests

Server-side resources used by WPB Accordion Menu - Elementor Accordion Menu - WooCommerce Category Accordion
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.83 ▼5.26
Dashboard /wp-admin3.37 ▲0.0644.40 ▼1.68
Posts /wp-admin/edit.php3.48 ▲0.1247.21 ▲0.11
Add New Post /wp-admin/post-new.php5.94 ▲0.0682.70 ▼9.94
Media Library /wp-admin/upload.php3.29 ▲0.0635.41 ▲0.11

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WPB Accordion Menu - Elementor Accordion Menu - WooCommerce Category Accordion
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,025 ▲26313.38 ▼0.988.09 ▲6.3829.70 ▼16.12
Dashboard /wp-admin2,343 ▲1665.61 ▼0.0592.79 ▼6.1452.10 ▲12.09
Posts /wp-admin/edit.php2,122 ▲252.10 ▲0.1341.54 ▲2.5443.02 ▲6.49
Add New Post /wp-admin/post-new.php1,541 ▲1523.32 ▼0.01668.02 ▼8.4456.22 ▲1.04
Media Library /wp-admin/upload.php1,422 ▲254.27 ▲0.1099.39 ▼1.5746.94 ▲1.82

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WpbWMCAFree\\add_action() in wp-content/plugins/wpb-accordion-menu-or-category/elementor/wpb-wmca-elementor.php:110

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

wpb-accordion-menu-or-category/main.php 85% from 13 tests

The main file in "WPB Accordion Menu - Elementor Accordion Menu - WooCommerce Category Accordion" v. 1.4.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 243 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpb-accordion-menu-or-category.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,127 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP8167297572
JavaScript357115342
CSS21411197
PO File10016

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity4.60
▷ Minimum class complexity2.00
▷ Maximum class complexity10.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods27
▷ Static methods13.70%
▷ Public methods2074.07%
▷ Protected methods414.81%
▷ Private methods311.11%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin