84% easy-accordion-for-faq

Code Review | Easy Accordion FAQ

WordPress plugin Easy Accordion FAQ scored 84% from 54 tests.

About plugin

  • Plugin page: easy-accordion-fo...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.1
  • WordPress version: 5.9.2
  • First release: Oct 28, 2018
  • Latest release: Oct 11, 2020
  • Number of updates: 30
  • Update frequency: every 23.8 days
  • Top authors: pareshpachani007 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,146 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼2.53MB] [CPU: ▼352.26ms] Passed 4 tests

Server-side resources used by Easy Accordion FAQ
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.84 ▼1.684.27 ▼49.09
Dashboard /wp-admin1.86 ▼1.553.51 ▼32.23
Posts /wp-admin/edit.php1.86 ▼1.784.64 ▼50.50
Add New Post /wp-admin/post-new.php1.86 ▼5.114.84 ▼1,277.21
Media Library /wp-admin/upload.php1.86 ▼1.443.54 ▼22.45
All FAQ /wp-admin/edit.php?post_type=eaf-faq1.864.04
Add New /wp-admin/post-new.php?post_type=eaf-faq1.863.55
Help and use /wp-admin/edit.php?post_type=eaf-faq&page=lswr-designs1.864.47
FAQ Category /wp-admin/edit-tags.php?taxonomy=eaf_cat&post_type=eaf-faq1.863.69

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Accordion FAQ
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,976 ▲22216.18 ▲0.528.70 ▲3.012.64 ▲0.03
Dashboard /wp-admin2,949 ▲926.21 ▲0.07125.82 ▼2.61162.20 ▼4.25
Posts /wp-admin/edit.php2,745 ▲573.24 ▲0.0168.27 ▲5.51158.67 ▲9.09
Add New Post /wp-admin/post-new.php1,672 ▲1719.41 ▼1.45451.78 ▼7.42145.41 ▼17.48
Media Library /wp-admin/upload.php1,755 ▲575.55 ▲0.03143.08 ▼1.08190.62 ▼2.03
All FAQ /wp-admin/edit.php?post_type=eaf-faq1,4433.1661.55113.19
Add New /wp-admin/post-new.php?post_type=eaf-faq2,9829.96195.07201.87
Help and use /wp-admin/edit.php?post_type=eaf-faq&page=lswr-designs1,2632.4557.19115.34
FAQ Category /wp-admin/edit-tags.php?taxonomy=eaf_cat&post_type=eaf-faq1,6792.7955.70112.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5768
    wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the accordion-faq handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=eaf_cat&post_type=eaf-faq
    • > User notice in wp-includes/functions.php+5768
    wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the accordion-faq handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=eaf_cat&post_type=eaf-faq
    • > User notice in wp-includes/functions.php+5768
    wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the accordion-faq handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=eaf_cat&post_type=eaf-faq
    • > User notice in wp-includes/functions.php+5768
    wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the accordion-fa handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=eaf_cat&post_type=eaf-faq
    • > User notice in wp-includes/functions.php+5768
    wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the accordion-fa handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=eaf_cat&post_type=eaf-faq
    • > User notice in wp-includes/functions.php+5768
    wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the eaf-costum-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=eaf_cat&post_type=eaf-faq
    • > User notice in wp-includes/functions.php+5768
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the eaf-costum-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=eaf_cat&post_type=eaf-faq
    • > User notice in wp-includes/functions.php+5768
    wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the eaf-shortcode handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=eaf_cat&post_type=eaf-faq
    • > User notice in wp-includes/functions.php+5768
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the eaf-shortcode handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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: Please delete some tags, you are using 18 tag instead of maximum 10
The official readme.txt is a good inspiration

easy-accordion-for-faq/easy-accordion-for-faq.php 92% from 13 tests

The primary PHP file in "Easy Accordion FAQ" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,559 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
SVG100685
PHP512115532
JavaScript230257
CSS20485

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
PNG images were not found in this plugin