67% helpie-faq

Code Review | Accordion / FAQ / Docs – Helpie WordPress FAQ Accordion plugin

WordPress plugin Accordion / FAQ / Docs – Helpie WordPress FAQ Accordion plugin scored67%from 54 tests.

About plugin

  • Plugin page: helpie-faq
  • Plugin version: 1.14
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 24, 2018
  • Latest release: Nov 27, 2023
  • Number of updates: 270
  • Update frequency: every 7.0 days
  • Top authors: Essekia (79.63%)sekar0369 (14.81%)santhoshoutright (6.3%)

Code review

54 tests

User reviews

76 reviews

Install metrics

10,000+ active /268,031 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲7.36MB] [CPU: ▲54.68ms] 50% from 4 tests

This is a short check of server-side resources used by Accordion / FAQ / Docs – Helpie WordPress FAQ Accordion plugin
The following require your attention
  • RAM: Total memory usage must be kept under 10MB (currently 10.84MB on /wp-admin/admin.php?page=freemius)
  • Extra RAM: The extra memory usage should kept under 5MB (currently 7.36MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /10.75 ▲7.2888.61 ▲46.38
Dashboard /wp-admin10.66 ▲7.36106.41 ▲54.66
Posts /wp-admin/edit.php10.71 ▲7.35103.83 ▲57.49
Add New Post /wp-admin/post-new.php15.24 ▲9.36160.53 ▲60.18
Media Library /wp-admin/upload.php10.66 ▲7.43102.16 ▲67.49
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius10.8491.84

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 620 new files
Database: no new tables, 16 new options
New WordPress options
helpie-faq
helpie_faq_slug_updated
fs_debug_mode
helpie_version
theysaidso_admin_options
db_upgraded
can_compress_scripts
helpie_faq_default_category
helpie_faq_page_id
all_helpie_faq_page_id
...

Browser metrics Passed 4 tests

Checking browser requirements for Accordion / FAQ / Docs – Helpie WordPress FAQ Accordion plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,083 ▲33216.12 ▲1.4138.79 ▲37.1426.92 ▼17.40
Dashboard /wp-admin2,245 ▲756.99 ▲1.40119.14 ▲13.6180.69 ▲32.52
Posts /wp-admin/edit.php2,171 ▲743.69 ▲1.7156.18 ▲18.6138.69 ▲2.96
Add New Post /wp-admin/post-new.php1,651 ▲12522.25 ▼1.31665.02 ▲58.8035.84 ▼11.98
Media Library /wp-admin/upload.php1,456 ▲535.57 ▲1.39113.68 ▲21.0575.40 ▲34.13
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,1193.1044.9927.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/helpie-faq/vendor/pauple/pluginator/src/Library/freemius/includes/class-freemius.php+8515
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 16 options in the database
    • db_upgraded
    • helpie_faq_page_id
    • widget_theysaidso_widget
    • fs_active_plugins
    • helpie_faq_category_children
    • helpie-faq
    • helpie_faq_slug_updated
    • theysaidso_admin_options
    • helpie_faq_default_category
    • widget_recent-posts
    • ...

Smoke tests 50% from 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 0% 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/helpie-faq/features/faq-group/config.php
  • 115× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/helpie-faq/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/helpie-faq/vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/helpie-faq/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/helpie-faq/vendor/composer/installers/src/Composer/Installers/SyliusInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/helpie-faq/vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/helpie-faq/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/helpie-faq/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/helpie-faq/vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/helpie-faq/vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/helpie-faq/vendor/composer/installers/src/Composer/Installers/WinterInstaller.php:4

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (FAQ Accordion and Toggle - Embed them in any post or page)
The official readme.txt might help

helpie-faq/helpie-faq.php Passed 13 tests

The main file in "Accordion / FAQ / Docs – Helpie WordPress FAQ Accordion plugin" v. 1.14 serves as a complement to information provided in readme.txt and as the entry point to the plugin
28 characters long description:
Awesome WordPress FAQ plugin

Code Analysis 97% from 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
There were no executable files found in this plugin90,414 lines of code in 521 files:
LanguageFilesBlank linesComment linesLines of code
PHP43714,41820,87362,024
CSS272,46463610,562
SVG5009,554
PO File223,3253,4336,787
Sass8188361,120
JSX57649310
XML26042
JavaScript150015

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
These items need your attention
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity23.60
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity4.16
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces43
Interfaces6
Traits0
Classes328
▷ Abstract classes72.13%
▷ Concrete classes32197.87%
▷ Final classes00.00%
Methods2,424
▷ Static methods30712.67%
▷ Public methods1,85576.53%
▷ Protected methods1355.57%
▷ Private methods43417.90%
Functions156
▷ Named functions13989.10%
▷ Anonymous functions1710.90%
Constants167
▷ Global constants11669.46%
▷ Class constants5130.54%
▷ Public constants51100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.13MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/pauple/pluginator/src/Library/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
vendor/pauple/pluginator/src/Library/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%
assets/libs/chosen/chosen-sprite@2x.png0.72KB0.83KB0.00%
vendor/pauple/pluginator/src/Library/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/img/helpie_faq-logo.png2.43KB1.18KB▼ 51.32%