84% accordion-faq-builder

Code Review | Accordion FAQ Builder

WordPress plugin Accordion FAQ Builder scored84%from 54 tests.

About plugin

  • Plugin page: accordion-faq-bui...
  • Plugin version: 0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Mar 30, 2022
  • Latest release: May 17, 2022
  • Number of updates: 3
  • Update frequency: every 16.0 days
  • Top authors: autocircle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /321 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.39ms] Passed 4 tests

Analyzing server-side resources used by Accordion FAQ Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.74 ▼2.35
Dashboard /wp-admin3.33 ▲0.0351.54 ▼0.10
Posts /wp-admin/edit.php3.38 ▲0.0350.53 ▼1.61
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.66 ▼21.51
Media Library /wp-admin/upload.php3.26 ▲0.0341.11 ▲1.46
Accordion FAQs /wp-admin/edit.php?post_type=accordion_faq3.3037.95
Add New /wp-admin/post-new.php?post_type=accordion_faq3.3246.23

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Accordion FAQ Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲10213.73 ▼0.671.84 ▲0.1039.90 ▼0.33
Dashboard /wp-admin2,263 ▲594.94 ▲0.02104.42 ▼10.0340.40 ▼0.08
Posts /wp-admin/edit.php2,139 ▲392.09 ▲0.1036.36 ▼4.0634.89 ▼2.94
Add New Post /wp-admin/post-new.php1,396 ▼14917.12 ▼6.18578.55 ▼71.5844.78 ▼7.77
Media Library /wp-admin/upload.php1,442 ▲454.33 ▲0.0698.06 ▼4.6642.57 ▼4.58
Accordion FAQs /wp-admin/edit.php?post_type=accordion_faq1,1112.0134.3132.77
Add New /wp-admin/post-new.php?post_type=accordion_faq1,7152.6552.4166.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/edit.php?post_type=accordion_faq
    • > Javascript (severe) in unknown
    /wp-content/plugins/accordion-faq-builder/assets/js/admin-script.js?ver=0.3 150:12 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: question, faq, animated faq, accordion, collapsible faq...

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

The main PHP script in "Accordion FAQ Builder" version 0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("accordion-faq-builder.php" instead of "init.php")
  • 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 an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected9,456 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
CSS42,517405,653
JavaScript46552793,210
PHP1196167533
PO File1222360

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.49
Average class complexity8.29
▷ Minimum class complexity2.00
▷ Maximum class complexity41.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods24
▷ Static methods1041.67%
▷ Public methods1875.00%
▷ Protected methods416.67%
▷ Private methods28.33%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants6
▷ 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
There were not PNG files found in your plugin