78% easy-faqs

Code Review | Easy FAQs

WordPress plugin Easy FAQs scored78%from 54 tests.

About plugin

  • Plugin page: easy-faqs
  • Plugin version: 3.2.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Nov 20, 2013
  • Latest release: Jun 12, 2021
  • Number of updates: 85
  • Update frequency: every 32.5 days
  • Top authors: richardgabriel (97.65%)ghuger (3.53%)

Code review

54 tests

User reviews

5 reviews

Install metrics

500+ active /46,669 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.73MB] [CPU: ▲20.29ms] 75% from 4 tests

An overview of server-side resources used by Easy FAQs
Please take the time to fix the following items
  • CPU: The total CPU usage must kept under 500.00ms (currently 1,074.95ms on /wp-admin/admin.php?page=easy_faqs_pro_privacy_notice)
PageMemory (MB)CPU Time (ms)
Home /4.41 ▲0.9469.47 ▲31.24
Dashboard /wp-admin4.28 ▲0.9880.77 ▲35.57
Posts /wp-admin/edit.php4.34 ▲0.9871.34 ▲27.22
Add New Post /wp-admin/post-new.php5.92 ▲0.0379.75 ▼11.99
Media Library /wp-admin/upload.php4.21 ▲0.9869.77 ▲34.68
Help & Instructions /wp-admin/admin.php?page=easy-faqs-help4.1872.53
About Plugin /wp-admin/admin.php?page=easy-faqs-settings_aloha4.1862.99
Privacy Notice /wp-admin/admin.php?page=easy_faqs_pro_privacy_notice4.181,074.95
Add New FAQ /wp-admin/post-new.php?post_type=faq5.9073.53
FAQ Category /wp-admin/edit-tags.php?taxonomy=easy-faq-category&post_type=faq4.2065.15
FAQs /wp-admin/edit.php?post_type=faq4.2462.90
Upgrade To Pro /wp-admin/admin.php?page=easy-faqs-upgrade-to-pro4.1758.53
Basic Options /wp-admin/admin.php?page=easy-faqs-settings4.7379.02
Shortcode Generator /wp-admin/admin.php?page=easy-faqs-shortcode-generator4.2464.34
Themes /wp-admin/admin.php?page=easy-faqs-themes4.1972.31

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 170 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_searchfaqswidget
widget_recent-comments
theysaidso_admin_options
widget_faqsbycategorywidget
db_upgraded
widget_listfaqswidget
widget_singlefaqwidget

Browser metrics Passed 4 tests

An overview of browser requirements for Easy FAQs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,028 ▲28214.14 ▼0.455.59 ▲3.7830.94 ▼8.48
Dashboard /wp-admin2,338 ▲1495.32 ▲0.35105.15 ▼15.2945.11 ▼0.64
Posts /wp-admin/edit.php2,228 ▲1392.20 ▲0.1832.63 ▼1.1130.16 ▼5.30
Add New Post /wp-admin/post-new.php1,662 ▲14819.20 ▲1.63636.35 ▼40.0653.89 ▲1.68
Media Library /wp-admin/upload.php1,522 ▲1314.57 ▲0.3797.03 ▼5.8444.80 ▼0.85
Help & Instructions /wp-admin/admin.php?page=easy-faqs-help1,0382.2638.4338.03
About Plugin /wp-admin/admin.php?page=easy-faqs-settings_aloha1,0352.3428.7833.25
Privacy Notice /wp-admin/admin.php?page=easy_faqs_pro_privacy_notice9122.1526.6824.80
Add New FAQ /wp-admin/post-new.php?post_type=faq6,35222.92894.5435.46
FAQ Category /wp-admin/edit-tags.php?taxonomy=easy-faq-category&post_type=faq1,4012.2329.7330.27
FAQs /wp-admin/edit.php?post_type=faq1,2242.4633.9531.08
Upgrade To Pro /wp-admin/admin.php?page=easy-faqs-upgrade-to-pro1,1842.7132.1295.06
Basic Options /wp-admin/admin.php?page=easy-faqs-settings13,5683.5792.7245.13
Shortcode Generator /wp-admin/admin.php?page=easy-faqs-shortcode-generator1,6817.20130.3862.78
Themes /wp-admin/admin.php?page=easy-faqs-themes1,3662.8354.1444.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 10 options in the database
    • widget_searchfaqswidget
    • widget_singlefaqwidget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_listfaqswidget
    • widget_faqsbycategorywidget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=faq
    • > User deprecated in wp-includes/functions.php+5828
    Hook block_categories is deprecated since version 5.8.0! Use block_categories_all instead.
    • > GET request to /wp-admin/admin.php?page=easy-faqs-shortcode-generator
    • > User deprecated in wp-includes/functions.php+5828
    Hook media_buttons_context is deprecated since version 3.5.0! Use media_buttons instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 15× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-faqs/include/widgets/list_faqs_widget.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/easy-faqs/include/tgmpa/tgmpa/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-faqs/include/widgets/search_faqs_widget.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-faqs/include/widgets/faqs_by_category_widget.php:19
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/easy-faqs/include/Easy_FAQs_Update_Notices.php on line 2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-faqs/include/Easy_FAQs_Update_Notices.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-faqs/include/tgmpa/init.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-faqs/include/tgmpa/init.php:5
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/easy-faqs/include/Easy_FAQs_Update_Notices.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-faqs/include/widgets/single_faq_widget.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: faq submission, frequently asked questions, faq list, faqs, knowledgebase...

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

The main file in "Easy FAQs" v. 3.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
122 characters long description:
Easy FAQs - Provides custom post type, shortcodes, widgets, and other functionality for Frequently Asked Questions (FAQs).

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
Success! There were no dangerous files found in this plugin21,033 lines of code in 80 files:
LanguageFilesBlank linesComment linesLines of code
PHP271,2002,2536,255
PO File171,4491,9934,842
CSS18349904,323
JSON1002,601
JavaScript132772411,871
SVG100685
Markdown2670330
HTML100126

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity33.72
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods286
▷ Static methods93.15%
▷ Public methods26090.91%
▷ Protected methods238.04%
▷ Private methods31.05%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
65 PNG files occupy 0.16MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
include/img/theme-sprite-up-down.png3.10KB5.42KB0.00%
include/img/browser-preview-left.png1.29KB0.83KB▼ 35.28%
include/img/banner-tip-brown.png0.52KB0.40KB▼ 24.25%
include/lib/BikeShed/chosen/chosen-sprite.png0.53KB0.88KB0.00%
include/img/qmark-circle-orange.png0.70KB0.39KB▼ 44.35%