79% accordions-or-faqs

Code Review | Accordion - Multiple Accordion or FAQs Builder

WordPress plugin Accordion - Multiple Accordion or FAQs Builder scored79%from 54 tests.

About plugin

  • Plugin page: accordions-or-faqs
  • Plugin version: 2.3.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.4.1
  • WordPress version: 6.3.1
  • First release: May 18, 2017
  • Latest release: Nov 19, 2023
  • Number of updates: 32
  • Update frequency: every 74.7 days
  • Top authors: biplob018 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /20,765 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.27MB] [CPU: ▼3.21ms] 75% from 4 tests

Analyzing server-side resources used by Accordion - Multiple Accordion or FAQs Builder
The following require your attention
  • CPU: Try to keep total CPU usage under 500.00ms (currently 629.98ms on /wp-admin/admin.php?page=oxi-accordions-ultimate-plugins)
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2536.47 ▼1.88
Dashboard /wp-admin3.63 ▲0.2946.85 ▼17.86
Posts /wp-admin/edit.php3.68 ▲0.3350.20 ▲3.72
Add New Post /wp-admin/post-new.php6.15 ▲0.2694.06 ▲3.40
Media Library /wp-admin/upload.php3.49 ▲0.2637.50 ▲3.52
Support /wp-admin/admin.php?page=oxi-accordions-ultimate-welcome3.6334.47
Shortcode /wp-admin/admin.php?page=oxi-accordions-ultimate3.6545.71
Create New /wp-admin/admin.php?page=oxi-accordions-ultimate-new4.1445.23
Settings /wp-admin/admin.php?page=oxi-accordions-ultimate-settings3.6436.31
Oxilab Plugins /wp-admin/admin.php?page=oxi-accordions-ultimate-plugins3.69629.98

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 132 new files
Database: 3 new tables, 8 new options
New tables
wp_oxi_div_import
wp_oxi_div_style
wp_oxi_div_list
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
accordions_or_faqs_activation_date
widget_oxi_ultimate_accordions_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Accordion - Multiple Accordion or FAQs Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲9514.67 ▲0.321.83 ▲0.1135.75 ▼5.79
Dashboard /wp-admin2,237 ▲605.65 ▲0.0293.23 ▼9.8644.36 ▼0.41
Posts /wp-admin/edit.php2,145 ▲421.95 ▲0.0040.01 ▼5.3736.14 ▲2.91
Add New Post /wp-admin/post-new.php1,568 ▲3925.10 ▲1.87585.72 ▼39.0465.71 ▲19.28
Media Library /wp-admin/upload.php1,442 ▲454.19 ▼0.0397.89 ▼0.3444.13 ▲2.63
Support /wp-admin/admin.php?page=oxi-accordions-ultimate-welcome1,5498.95285.83165.81
Shortcode /wp-admin/admin.php?page=oxi-accordions-ultimate1,3132.7669.66101.99
Create New /wp-admin/admin.php?page=oxi-accordions-ultimate-new4,1002.3842.44161.69
Settings /wp-admin/admin.php?page=oxi-accordions-ultimate-settings1,2002.4933.1643.47
Oxilab Plugins /wp-admin/admin.php?page=oxi-accordions-ultimate-plugins1,1852.1630.8660.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 3 tables in the database
    • wp_oxi_div_import
    • wp_oxi_div_list
    • wp_oxi_div_style
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_theysaidso_widget
    • widget_oxi_ultimate_accordions_widget
    • widget_recent-posts
    • accordions_or_faqs_activation_date
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 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)
Good news, no errors were detected

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
7 plugin tags: collapse, accordion plugin jquery, accordion plugin wordpress, accordion, accordion shortcode...

accordions-or-faqs/index.php 92% from 13 tests

This is the main PHP file of "Accordion - Multiple Accordion or FAQs Builder" version 2.3.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("accordions-or-faqs.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin40,189 lines of code in 93 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript221,01778811,067
CSS151,4629810,809
PHP258301,2229,396
SVG30128,889
JSON280028

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity33.41
▷ Minimum class complexity1.00
▷ Maximum class complexity367.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces5
Interfaces0
Traits4
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods276
▷ Static methods51.81%
▷ Public methods27398.91%
▷ Protected methods00.00%
▷ Private methods31.09%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants55
▷ Global constants712.73%
▷ Class constants4887.27%
▷ Public constants48100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
23 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/backend/img/icons/demo.png2.34KB0.30KB▼ 86.96%
assets/backend/img/icons/custom.png1.67KB0.80KB▼ 51.91%
assets/backend/img/icons/arrow.png1.62KB0.53KB▼ 67.43%
assets/backend/img/icons/hand.png1.76KB0.72KB▼ 59.06%
assets/backend/img/icons/angle-double-up.png1.88KB0.59KB▼ 68.64%