79% accordions-or-faqs

Code Review | Accordions - Multiple Accordions or FAQs Builder

WordPress plugin Accordions - Multiple Accordions or FAQs Builder scored 79% from 54 tests.

About plugin

  • Plugin page: accordions-or-faqs
  • Plugin version: 2.2.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.9.1
  • WordPress version: 5.8.1
  • First release: May 18, 2017
  • Latest release: Mar 8, 2022
  • Number of updates: 21
  • Update frequency: every 84.2 days
  • Top authors: biplob018 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active / 6,271 total downloads


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.26MB] [CPU: ▼160.92ms] 75% from 4 tests

Analyzing server-side resources used by Accordions - Multiple Accordions or FAQs Builder
The following require your attention
  • CPU: Try to keep total CPU usage under 500.00ms (currently 910.95ms on /wp-admin/admin.php?page=oxi-accordions-ultimate-plugins)
PageMemory (MB)CPU Time (ms)
Home /3.08 ▲0.2427.19 ▼0.85
Dashboard /wp-admin3.38 ▲0.3141.39 ▼3.98
Posts /wp-admin/edit.php3.43 ▲0.3237.30 ▲1.77
Add New Post /wp-admin/post-new.php5.68 ▲0.2481.58 ▼638.91
Media Library /wp-admin/upload.php3.26 ▲0.2528.40 ▲0.06
Support /wp-admin/admin.php?page=oxi-accordions-ultimate-welcome3.4031.93
Settings /wp-admin/admin.php?page=oxi-accordions-ultimate-settings3.4133.96
Shortcode /wp-admin/admin.php?page=oxi-accordions-ultimate3.4329.64
Oxilab Plugins /wp-admin/admin.php?page=oxi-accordions-ultimate-plugins3.47910.95
Create New /wp-admin/admin.php?page=oxi-accordions-ultimate-new3.8836.06

Server storage [IO: ▲7.48MB] [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, 2 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Accordions - Multiple Accordions or FAQs Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,718 ▲11715.68 ▼0.325.85 ▼0.8484.70 ▲10.47
Dashboard /wp-admin2,979 ▲836.11 ▼0.03123.33 ▼10.15186.42 ▲14.51
Posts /wp-admin/edit.php2,793 ▲533.22 ▲0.0063.48 ▼0.58139.02 ▲1.56
Add New Post /wp-admin/post-new.php3,738 ▲318.61 ▲0.17420.83 ▼40.30160.56 ▼8.74
Media Library /wp-admin/upload.php1,803 ▲515.52 ▲0.10140.28 ▼8.19185.53 ▲3.43
Support /wp-admin/admin.php?page=oxi-accordions-ultimate-welcome2,21011.57251.43410.37
Settings /wp-admin/admin.php?page=oxi-accordions-ultimate-settings1,5263.5568.91216.19
Shortcode /wp-admin/admin.php?page=oxi-accordions-ultimate1,7383.9395.88223.03
Oxilab Plugins /wp-admin/admin.php?page=oxi-accordions-ultimate-plugins1,4343.5165.40197.31
Create New /wp-admin/admin.php?page=oxi-accordions-ultimate-new5,7663.7170.34239.56

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: 2 options
    • accordions_or_faqs_activation_date
    • widget_oxi_ultimate_accordions_widget

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


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: faq, accordions plugin jquery, accordions, accordions plugin, accordions shortcode...

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

This is the main PHP file of "Accordions - Multiple Accordions or FAQs Builder" version 2.2.2, 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 plugin39,118 lines of code in 93 files:
LanguageFilesBlank linesComment linesLines of code

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 complexity32.27
▷ Minimum class complexity1.00
▷ Maximum class complexity367.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
▷ Static methods41.49%
▷ Public methods26799.26%
▷ Protected methods00.00%
▷ Private methods20.74%
▷ Named functions00.00%
▷ Anonymous functions7100.00%
▷ 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/image/logo.png10.19KB6.12KB▼ 39.97%
assets/backend/img/icons/angle-3.png1.50KB0.45KB▼ 70.22%
assets/backend/img/icons/carret.png1.37KB0.40KB▼ 71.03%
assets/backend/img/icons/chevron.png1.42KB0.43KB▼ 70.05%
assets/backend/css/icon-close-white.png1.07KB0.26KB▼ 75.82%