84% quick-and-easy-faqs

Code Review | Quick and Easy FAQs

WordPress plugin Quick and Easy FAQs scored 84% from 54 tests.

About plugin

  • Plugin page: quick-and-easy-faqs
  • Plugin version: 1.3.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 17, 2015
  • Latest release: Jun 5, 2023
  • Number of updates: 62
  • Update frequency: every 47.9 days
  • Top authors: saqibsarwar (75.81%)sungraiz (11.29%)usmanaliqureshi (9.68%)fahidjavid (8.06%)

Code review

54 tests

User reviews

34 reviews

Install metrics

20,000+ active / 294,024 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Quick and Easy FAQs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3739.24 ▼2.53
Dashboard /wp-admin3.73 ▲0.4255.00 ▲3.14
Posts /wp-admin/edit.php3.78 ▲0.4256.72 ▲10.68
Add New Post /wp-admin/post-new.php6.38 ▲0.4992.57 ▲4.64
Media Library /wp-admin/upload.php3.56 ▲0.3340.00 ▲5.68
Groups /wp-admin/edit-tags.php?taxonomy=faq-group&post_type=faq3.5941.26
Settings /wp-admin/edit.php?post_type=faq&page=quick_and_easy_faqs3.5640.14
Add New /wp-admin/post-new.php?post_type=faq6.3688.29
FAQs /wp-admin/edit.php?post_type=faq3.7043.72

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
qaef_basics
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
qaef_typography

Browser metrics Passed 4 tests

An overview of browser requirements for Quick and Easy FAQs
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,017 ▲28215.16 ▲0.461.75 ▲0.0443.21 ▼8.11
Dashboard /wp-admin2,398 ▲2106.61 ▲1.72126.51 ▲9.8138.68 ▼10.44
Posts /wp-admin/edit.php2,304 ▲2153.52 ▲1.4650.52 ▲12.7229.29 ▼4.07
Add New Post /wp-admin/post-new.php6,452 ▲4,92120.62 ▼2.63818.43 ▲158.6534.18 ▼50.32
Media Library /wp-admin/upload.php1,440 ▲524.34 ▲0.1583.36 ▼22.9144.75 ▲2.22
Groups /wp-admin/edit-tags.php?taxonomy=faq-group&post_type=faq1,4773.4743.1825.99
Settings /wp-admin/edit.php?post_type=faq&page=quick_and_easy_faqs1,8984.69101.9330.32
Add New /wp-admin/post-new.php?post_type=faq1,51217.13825.1930.30
FAQs /wp-admin/edit.php?post_type=faq1,2843.4750.4627.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 8 options
    • can_compress_scripts
    • qaef_basics
    • qaef_typography
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Quick_And_Easy_FAQs\\Includes\\Utilities' not found in wp-content/plugins/quick-and-easy-faqs/includes/class-faqs-query.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Quick_And_Easy_FAQs\\Includes\\Utilities' not found in wp-content/plugins/quick-and-easy-faqs/frontend/class-frontend.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Quick_And_Easy_FAQs\\Includes\\Utilities' not found in wp-content/plugins/quick-and-easy-faqs/includes/class-faqs.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Quick_And_Easy_FAQs\\Includes\\Utilities' not found in wp-content/plugins/quick-and-easy-faqs/frontend/class-shortcode.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can take inspiration from this readme.txt

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

"Quick and Easy FAQs" version 1.3.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
46 characters long description:
A quick and easy way to add FAQs to your site.

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
Good job! No executable or dangerous file extensions detected3,920 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP143535831,448
PO File75225661,382
SVG2151569
JavaScript43925335
CSS4171496
LESS210682
XML1008

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity15.64
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods78
▷ Static methods45.13%
▷ Public methods6279.49%
▷ Protected methods1114.10%
▷ Private methods56.41%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin