99% accordion-faq-builder

Code Review | Accordion FAQ Builder

WordPress plugin Accordion FAQ Builder scored 99% from 54 tests.

About plugin

  • Plugin page: accordion-faq-bui...
  • Plugin version: 0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.9.2
  • First release: Mar 30, 2022
  • Latest release: Mar 30, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: autocircle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 11 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼292.38ms] Passed 4 tests

Server-side resources used by Accordion FAQ Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.1853.04 ▲4.80
Dashboard /wp-admin3.53 ▲0.1234.47 ▼2.90
Posts /wp-admin/edit.php3.75 ▲0.1137.61 ▼1.79
Add New Post /wp-admin/post-new.php7.00 ▲0.03100.19 ▼1,165.05
Media Library /wp-admin/upload.php3.40 ▲0.1124.33 ▲0.22
Add New /wp-admin/post-new.php?post_type=accordion_faq3.6837.84
Accordion FAQs /wp-admin/edit.php?post_type=accordion_faq3.5126.01

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Accordion FAQ Builder: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,854 ▲9916.04 ▲0.446.26 ▲0.472.54 ▼1.29
Dashboard /wp-admin2,944 ▲866.30 ▲0.07117.92 ▼15.78163.18 ▲1.34
Posts /wp-admin/edit.php2,738 ▲503.39 ▲0.1665.72 ▲2.98141.47 ▼1.52
Add New Post /wp-admin/post-new.php1,694 ▲3316.29 ▲0.22396.09 ▼47.99154.09 ▼3.00
Media Library /wp-admin/upload.php1,748 ▲505.56 ▲0.06141.89 ▲3.86188.84 ▲1.50
Add New /wp-admin/post-new.php?post_type=accordion_faq2,1344.17102.20157.46
Accordion FAQs /wp-admin/edit.php?post_type=accordion_faq1,4283.3060.83117.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: answer, faq, question, accordion, frequently asked questions...

accordion-faq-builder/init.php 85% from 13 tests

The main PHP script in "Accordion FAQ Builder" version 0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("accordion-faq-builder.php" instead of "init.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,794 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PO File1222360

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity6.00
▷ Minimum class complexity2.00
▷ Maximum class complexity25.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods939.13%
▷ Public methods1773.91%
▷ Protected methods417.39%
▷ Private methods28.70%
▷ Named functions00.00%
▷ Anonymous functions2100.00%
▷ Global constants6100.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
PNG images were not found in this plugin