94% collapsible-faqs

Code Review | Collapsible FAQs

WordPress plugin Collapsible FAQs scored 94% from 54 tests.

About plugin

  • Plugin page: collapsible-faqs
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.9.1
  • WordPress version: 5.8.1
  • First release: May 31, 2014
  • Latest release: May 31, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: khaxan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,494 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
Installer ran successfully

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

An overview of server-side resources used by Collapsible FAQs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0140.14 ▲2.84
Dashboard /wp-admin3.07 ▲0.0148.38 ▲6.76
Posts /wp-admin/edit.php3.12 ▲0.0146.65 ▲7.83
Add New Post /wp-admin/post-new.php5.42 ▼0.0192.48 ▼564.65
Media Library /wp-admin/upload.php3.01 ▲0.0133.73 ▲0.35

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

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

Browser metrics Passed 4 tests

Collapsible FAQs: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.97 ▲0.428.88 ▼0.5249.99 ▼4.59
Dashboard /wp-admin2,992 ▲585.94 ▲0.01170.69 ▲16.18120.14 ▼9.29
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0074.56 ▼0.6399.69 ▼1.14
Add New Post /wp-admin/post-new.php1,683 ▼018.74 ▲0.01368.63 ▼33.29118.83 ▼0.89
Media Library /wp-admin/upload.php1,807 ▼35.08 ▲0.07156.59 ▼5.57125.50 ▼3.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/collapsible-faqs/collapsible-faqs.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: collapsible faqs, faqs, faq page, frequently asked questions, shortcodes...

collapsible-faqs/collapsible-faqs.php Passed 13 tests

Analyzing the main PHP file in "Collapsible FAQs" version 1.0
81 characters long description:
Helps you create an aesthetically pleasing FAQ (Frequently Asked Questions) page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin35 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin