83% wordpress-faq-manager

Code Review | FAQ Manager

WordPress plugin FAQ Manager scored 83% from 54 tests.

About plugin

  • Plugin page: wordpress-faq-man...
  • Plugin version: 2.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 6, 2011
  • Latest release: Dec 14, 2022
  • Number of updates: 106
  • Update frequency: every 40.9 days
  • Top authors: norcross (89.62%)curtismchale (11.32%)

Code review

54 tests

User reviews

12 reviews

Install metrics

3,000+ active / 81,772 total downloads

Benchmarks

Plugin footprint 83% from 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 gracefully, with no errors

Server metrics [RAM: ▲0.39MB] [CPU: ▲2.12ms] Passed 4 tests

Analyzing server-side resources used by FAQ Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3845.93 ▲3.33
Dashboard /wp-admin3.71 ▲0.4146.68 ▼3.71
Posts /wp-admin/edit.php3.76 ▲0.4150.21 ▲4.41
Add New Post /wp-admin/post-new.php6.37 ▲0.4899.54 ▲9.42
Media Library /wp-admin/upload.php3.57 ▲0.3438.27 ▲4.45
FAQs /wp-admin/edit.php?post_type=question3.6238.70
FAQ Tags /wp-admin/edit-tags.php?taxonomy=faq-tags&post_type=question3.5634.83
FAQ Topics /wp-admin/edit-tags.php?taxonomy=faq-topic&post_type=question3.5757.18
Instructions /wp-admin/edit.php?post_type=question&page=instructions3.5431.43
Sort FAQs /wp-admin/edit.php?post_type=question&page=sort-page3.5337.02
Add New FAQ /wp-admin/post-new.php?post_type=question6.3683.76

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-comments
widget_faq_cloud
widget_recent_questions
theysaidso_admin_options
widget_faq_search
widget_recent-posts
widget_faq_random
widget_theysaidso_widget
db_upgraded
widget_recent_faqtax
...

Browser metrics Passed 4 tests

Checking browser requirements for FAQ Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲9113.21 ▼1.471.61 ▼1.0940.31 ▼7.24
Dashboard /wp-admin2,252 ▲645.89 ▲0.0395.87 ▼16.7638.18 ▼5.01
Posts /wp-admin/edit.php2,135 ▲462.04 ▲0.0738.71 ▲2.0037.28 ▲5.88
Add New Post /wp-admin/post-new.php1,549 ▲1417.76 ▼5.04615.45 ▼38.5749.90 ▼7.11
Media Library /wp-admin/upload.php1,428 ▲374.14 ▼0.0597.82 ▼4.0440.83 ▼4.58
FAQs /wp-admin/edit.php?post_type=question1,1622.0133.2026.61
FAQ Tags /wp-admin/edit-tags.php?taxonomy=faq-tags&post_type=question1,2802.1425.8226.01
FAQ Topics /wp-admin/edit-tags.php?taxonomy=faq-topic&post_type=question1,3052.1528.4432.09
Instructions /wp-admin/edit.php?post_type=question&page=instructions1,0052.0323.0859.92
Sort FAQs /wp-admin/edit.php?post_type=question&page=sort-page8271.9425.7626.27
Add New FAQ /wp-admin/post-new.php?post_type=question1,57317.26879.9630.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 11 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_faq_search
    • widget_recent_questions
    • widget_theysaidso_widget
    • widget_recent_faqtax
    • widget_recent-comments
    • widget_faq_cloud
    • widget_faq_random
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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 following issues need your attention
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wordpress-faq-manager/lib/shortcodes.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordpress-faq-manager/lib/front.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordpress-faq-manager/lib/admin.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wordpress-faq-manager/lib/legacy.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wordpress-faq-manager/lib/widgets.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wordpress-faq-manager/faq-manager.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordpress-faq-manager/lib/types.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: custom post types, shortcodes, faq, frequently asked questions

wordpress-faq-manager/faq-manager.php 69% from 13 tests

The primary PHP file in "FAQ Manager" version 2.0.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wordpress-faq-manager.php" instead of "faq-manager.php")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.4" instead of "7.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected9,391 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
JSON3006,700
PHP106451,1291,334
PO File3351351943
Markdown1860181
JavaScript55387123
CSS4308110

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity15.64
▷ Minimum class complexity3.00
▷ Maximum class complexity38.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods84
▷ Static methods1517.86%
▷ Public methods8398.81%
▷ Protected methods00.00%
▷ Private methods11.19%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin