62% accordion-faq-for-elementor

Code Review | Accordion FAQ with Category

WordPress plugin Accordion FAQ with Category scored 62% from 54 tests.

About plugin

  • Plugin page: accordion-faq-for...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.9
  • WordPress version: 5.9.2
  • First release: Feb 7, 2021
  • Latest release: Mar 6, 2022
  • Number of updates: 59
  • Update frequency: every 7.0 days
  • Top authors: wpmart (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active / 831 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼302.90ms] Passed 4 tests

An overview of server-side resources used by Accordion FAQ with Category
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0160.94 ▲10.40
Dashboard /wp-admin3.44 ▲0.0437.42 ▼2.46
Posts /wp-admin/edit.php3.67 ▲0.0338.80 ▼3.37
Add New Post /wp-admin/post-new.php6.90 ▼0.06102.90 ▼1,205.89
Media Library /wp-admin/upload.php3.32 ▲0.0228.26 ▲0.12
All FAQ /wp-admin/admin.php?page=afaq-6310-faq-for-elementor3.3527.62
License /wp-admin/admin.php?page=afaq-6310-faq-for-elementor-license3.3226.71
Template 01-10 /wp-admin/admin.php?page=afaq-6310-faq-01-103.5726.14
Manage category /wp-admin/admin.php?page=afaq-6310-manage-category3.5635.76
Import/Export Plugin /wp-admin/admin.php?page=afaq-6310-import-export3.3230.59
Template 11-20 /wp-admin/admin.php?page=afaq-6310-faq-11-203.5728.81
WpMart Plugins /wp-admin/admin.php?page=afaq-6310-wpmart-plugins3.3230.57
How to use /wp-admin/admin.php?page=afaq-6310-faq-for-elementor-use3.3223.58
Manage FAQ /wp-admin/admin.php?page=afaq-6310-manage-faq3.6041.29

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 139 new files
Database: 3 new tables, 1 new option
New tables
wp_afaq_6310_style
wp_afaq_6310_faq
wp_afaq_6310_category
New WordPress options
afaq_6310_version_info

Browser metrics Passed 4 tests

An overview of browser requirements for Accordion FAQ with Category
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,850 ▲9615.63 ▼0.415.94 ▲0.082.75 ▲0.04
Dashboard /wp-admin2,943 ▲926.24 ▲0.08120.09 ▼17.50166.61 ▲4.66
Posts /wp-admin/edit.php2,754 ▲663.24 ▼0.0163.95 ▼1.61142.44 ▼3.65
Add New Post /wp-admin/post-new.php1,704 ▲4316.16 ▼1.19405.33 ▼22.15148.76 ▼5.53
Media Library /wp-admin/upload.php1,764 ▲665.48 ▼0.01142.30 ▲1.80191.70 ▲1.55
All FAQ /wp-admin/admin.php?page=afaq-6310-faq-for-elementor1,2242.4456.52178.06
License /wp-admin/admin.php?page=afaq-6310-faq-for-elementor-license1,2732.8558.07151.56
Template 01-10 /wp-admin/admin.php?page=afaq-6310-faq-01-102,7932.9762.46203.16
Manage category /wp-admin/admin.php?page=afaq-6310-manage-category7,8174.4980.79157.55
Import/Export Plugin /wp-admin/admin.php?page=afaq-6310-import-export1,2332.8256.48163.35
Template 11-20 /wp-admin/admin.php?page=afaq-6310-faq-11-202,7792.9762.27197.54
WpMart Plugins /wp-admin/admin.php?page=afaq-6310-wpmart-plugins1,3072.8557.60148.99
How to use /wp-admin/admin.php?page=afaq-6310-faq-for-elementor-use3,68629.54947.19184.43
Manage FAQ /wp-admin/admin.php?page=afaq-6310-manage-faq8,9788.43151.51158.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie tables detected upon uninstall: 3 tables
    • wp_afaq_6310_category
    • wp_afaq_6310_style
    • wp_afaq_6310_faq
  • The uninstall procedure has failed, leaving 1 option in the database
    • afaq_6310_version_info

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=afaq-6310-faq-11-20
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 0% 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
Almost there! Just fix the following items
  • 67× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/accordion-faq-for-elementor/settings/helper/_helper-14.php
    • > /wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-08.php
    • > /wp-content/plugins/accordion-faq-for-elementor/settings/helper/tab-menu.php
    • > /wp-content/plugins/accordion-faq-for-elementor/settings/helper/_helper-15.php
    • > /wp-content/plugins/accordion-faq-for-elementor/settings/helper/_helper-10.php
    • > /wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-07.php
    • > /wp-content/plugins/accordion-faq-for-elementor/settings/form/category/_template-01.php
    • > /wp-content/plugins/accordion-faq-for-elementor/settings/import-export-plugins.php
    • > /wp-content/plugins/accordion-faq-for-elementor/settings/helper/_helper-06.php
    • > /wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-19.php
  • 4739× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: ids in wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-13.php on line 27
    • > PHP Notice
      Undefined variable: cssData in wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-12.php on line 27
    • > PHP Notice
      Undefined variable: cssData in wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-20.php on line 43
    • > PHP Notice
      Undefined variable: cssData in wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-15.php on line 82
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-13.php on line 59
    • > PHP Notice
      Undefined variable: cssData in wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-14.php on line 108
    • > PHP Notice
      Undefined variable: cssData in wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-13.php on line 131
    • > PHP Notice
      Undefined variable: ids in wp-content/plugins/accordion-faq-for-elementor/settings/helper/_helper-19.php on line 221
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-13.php on line 41
    • > PHP Notice
      Undefined variable: cssData in wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-09.php on line 58

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in accordion-faq-for-elementor/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt might help

accordion-faq-for-elementor/index.php 85% from 13 tests

This is the main PHP file of "Accordion FAQ with Category" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 153 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("accordion-faq-for-elementor.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected32,493 lines of code in 133 files:
LanguageFilesBlank linesComment linesLines of code
PHP1241,4661,43127,958
CSS5111343,712
JavaScript43024823

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.75
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%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.20MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/hover.png1.27KB0.66KB▼ 48.23%
assets/css/fs-sprite.png1.07KB0.18KB▼ 82.82%
assets/image/template-01.png139.17KB47.59KB▼ 65.81%
assets/css/jquery.minicolors.png67.02KB34.31KB▼ 48.80%