67% accordion-faq-for-elementor

Code Review | Accordion FAQ with Category

WordPress plugin Accordion FAQ with Category scored67%from 54 tests.

About plugin

  • Plugin page: accordion-faq-for...
  • Plugin version: 1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Feb 7, 2021
  • Latest release: Aug 25, 2023
  • Number of updates: 68
  • Update frequency: every 13.9 days
  • Top authors: wpmart (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,788 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.98MB] [CPU: ▼1.62ms] Passed 4 tests

This is a short check of server-side resources used by Accordion FAQ with Category
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.43 ▲0.9637.32 ▼1.50
Dashboard /wp-admin4.29 ▲0.9845.17 ▼1.12
Posts /wp-admin/edit.php4.40 ▲1.0444.30 ▲0.42
Add New Post /wp-admin/post-new.php6.87 ▲0.9882.42 ▼4.27
Media Library /wp-admin/upload.php4.21 ▲0.9838.02 ▲1.17
Import/Export Plugin /wp-admin/admin.php?page=afaq-6310-import-export4.1936.28
Help /wp-admin/admin.php?page=afaq-6310-faq-for-elementor-use4.1937.01
Template 01-10 /wp-admin/admin.php?page=afaq-6310-faq-01-104.4235.38
All FAQ /wp-admin/admin.php?page=afaq-6310-faq-for-elementor4.2035.83
License /wp-admin/admin.php?page=afaq-6310-faq-for-elementor-license4.1933.15
Manage FAQ /wp-admin/admin.php?page=afaq-6310-manage-faq4.5153.97
Manage category /wp-admin/admin.php?page=afaq-6310-manage-category4.4845.09
Template 11-20 /wp-admin/admin.php?page=afaq-6310-faq-11-204.4241.46
WpMart Plugins /wp-admin/admin.php?page=afaq-6310-wpmart-plugins4.1933.99

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 138 new files
Database: 3 new tables, 8 new options
New tables
wp_afaq_6310_category
wp_afaq_6310_style
wp_afaq_6310_faq
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
afaq_6310_version_info
faq_6310_install_default
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Accordion FAQ with Category
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8314.46 ▲0.111.68 ▲0.1241.81 ▲1.07
Dashboard /wp-admin2,250 ▲705.58 ▼0.0483.79 ▼1.8939.44 ▼0.87
Posts /wp-admin/edit.php2,155 ▲552.03 ▲0.0233.40 ▼2.7834.82 ▼5.11
Add New Post /wp-admin/post-new.php1,569 ▲4123.35 ▲0.44678.71 ▼6.1451.94 ▼6.09
Media Library /wp-admin/upload.php1,455 ▲554.27 ▲0.1494.40 ▼11.1643.40 ▼1.81
Import/Export Plugin /wp-admin/admin.php?page=afaq-6310-import-export1,0061.9126.49114.02
Help /wp-admin/admin.php?page=afaq-6310-faq-for-elementor-use1,0051.9529.8942.92
Template 01-10 /wp-admin/admin.php?page=afaq-6310-faq-01-101,9661.9927.2482.89
All FAQ /wp-admin/admin.php?page=afaq-6310-faq-for-elementor9302.0024.4439.49
License /wp-admin/admin.php?page=afaq-6310-faq-for-elementor-license9872.0324.8835.25
Manage FAQ /wp-admin/admin.php?page=afaq-6310-manage-faq6,8096.43123.08267.10
Manage category /wp-admin/admin.php?page=afaq-6310-manage-category5,9003.3246.22138.50
Template 11-20 /wp-admin/admin.php?page=afaq-6310-faq-11-201,9791.9529.7288.27
WpMart Plugins /wp-admin/admin.php?page=afaq-6310-wpmart-plugins1,0471.9528.3140.13

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 3 tables
    • wp_afaq_6310_style
    • wp_afaq_6310_faq
    • wp_afaq_6310_category
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • faq_6310_install_default
    • afaq_6310_version_info
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% 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 0% from 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
The following issues need your attention
  • 66× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/accordion-faq-for-elementor/output/css/_css-04.php
    • > /wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-12.php
    • > /wp-content/plugins/accordion-faq-for-elementor/settings/helper/_helper-05.php
    • > /wp-content/plugins/accordion-faq-for-elementor/settings/helper/_helper-11.php
    • > /wp-content/plugins/accordion-faq-for-elementor/settings/helper/_helper-09.php
    • > /wp-content/plugins/accordion-faq-for-elementor/settings/helper/_helper-13.php
    • > /wp-content/plugins/accordion-faq-for-elementor/settings/helper/_helper-14.php
    • > /wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-03.php
    • > /wp-content/plugins/accordion-faq-for-elementor/settings/helper/_helper-07.php
    • > /wp-content/plugins/accordion-faq-for-elementor/output/css/_css-01.php
  • 4095× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: cssData in wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-16.php on line 110
    • > PHP Notice
      Undefined variable: ids in wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-03.php on line 57
    • > PHP Notice
      Undefined variable: ids in wp-content/plugins/accordion-faq-for-elementor/settings/helper/_helper-06.php on line 265
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-03.php on line 121
    • > PHP Notice
      Undefined variable: cssData in wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-08.php on line 56
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/accordion-faq-for-elementor/settings/helper/details_form.php on line 191
    • > PHP Notice
      Undefined variable: ids in wp-content/plugins/accordion-faq-for-elementor/settings/helper/_helper-18.php on line 199
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/accordion-faq-for-elementor/settings/helper/details_form.php on line 179
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/accordion-faq-for-elementor/settings/css/_css-06.php on line 91
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/accordion-faq-for-elementor/settings/templates/template-13.php on line 18

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

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4 in accordion-faq-for-elementor/assets to your readme.txt
You can look at the official readme.txt

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

The main PHP script in "Accordion FAQ with Category" version 1.4 is automatically included on every request by WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 153 characters long)
  • Main file name: It is recommended to name the main PHP file 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 glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected32,209 lines of code in 132 files:
LanguageFilesBlank linesComment linesLines of code
PHP1231,4591,43527,661
CSS5111343,732
JavaScript43024816

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
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%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up 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/image/template-01.png139.17KB47.59KB▼ 65.81%
assets/css/hover.png1.27KB0.66KB▼ 48.23%
assets/css/jquery.minicolors.png67.02KB34.31KB▼ 48.80%
assets/css/fs-sprite.png1.07KB0.18KB▼ 82.82%