78% ultimate-searchable-accordion-lite-wpbakery-page-builder-addon

Code Review | Ultimate Searchable Accordion Lite - WPBakery Page Builder Addon

WordPress plugin Ultimate Searchable Accordion Lite - WPBakery Page Builder Addon scored78%from 54 tests.

About plugin

  • Plugin page: ultimate-searchab...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 15, 2022
  • Latest release: Nov 19, 2023
  • Number of updates: 15
  • Update frequency: every 34.8 days
  • Top authors: xenioushk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,136 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Ultimate Searchable Accordion Lite - WPBakery Page Builder Addon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.43 ▼0.28
Dashboard /wp-admin3.33 ▲0.0245.74 ▼3.37
Posts /wp-admin/edit.php3.38 ▲0.0247.02 ▼0.86
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.25 ▲0.85
Media Library /wp-admin/upload.php3.25 ▲0.0230.60 ▼1.76

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate Searchable Accordion Lite - WPBakery Page Builder Addon
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4014.18 ▼0.171.67 ▼0.0336.00 ▼1.99
Dashboard /wp-admin2,210 ▲335.60 ▼0.0492.86 ▼4.9342.18 ▼3.21
Posts /wp-admin/edit.php2,112 ▲91.97 ▲0.0340.22 ▼1.5838.55 ▲1.77
Add New Post /wp-admin/post-new.php1,538 ▲223.72 ▲0.61618.15 ▼151.0959.06 ▲1.79
Media Library /wp-admin/upload.php1,409 ▲184.20 ▲0.07101.69 ▲4.6844.00 ▲2.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ultimate-searchable-accordion-lite-wpbakery-page-builder-addon/ultimate-searchable-accordion-lite-wpbakery-page-builder-addon.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ultimate-searchable-accordion-lite-wpbakery-page-builder-addon/includes/usa-vc-shortcodes.php:189
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-searchable-accordion-lite-wpbakery-page-builder-addon/includes/noticebox/UsaVcAdminNotice.php:10

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: toggle accordion, accordion, wpbakery addon, accordion pagination, ultimate accordion...

ultimate-searchable-accordion-lite-wpbakery-page-builder-addon/ultimate-searchable-accordion-lite-wpbakery-page-builder-addon.php 85% from 13 tests

The main file in "Ultimate Searchable Accordion Lite - WPBakery Page Builder Addon" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 211 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin13,473 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
SVG30128,954
CSS74411193,683
PHP414748537
JavaScript52813202
Markdown142097

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity3.25
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/bsa_vc_addon_menu_icon.png0.69KB0.60KB▼ 13.38%
assets/images/icon-usa-con-vc-addon.5ad89747.png1.83KB0.75KB▼ 58.75%
assets/images/search.png1.23KB0.49KB▼ 60.46%
assets/images/icon-usa-vc-addon.5a48d130.png1.15KB0.19KB▼ 83.23%
assets/images/search.7657ebd1.png1.23KB0.49KB▼ 60.46%