83% product-faqs-for-woocommerce

Code Review | Product FAQs For WooCommerce

WordPress plugin Product FAQs For WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: product-faqs-for-...
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Oct 13, 2021
  • Latest release: Nov 14, 2021
  • Number of updates: 11
  • Update frequency: every 3.0 days
  • Top authors: burhandodhy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /360 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.97ms] Passed 4 tests

This is a short check of server-side resources used by Product FAQs For WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.82 ▼3.95
Dashboard /wp-admin3.34 ▲0.0443.45 ▼6.17
Posts /wp-admin/edit.php3.45 ▲0.1043.86 ▼1.16
Add New Post /wp-admin/post-new.php5.94 ▲0.0579.20 ▼8.58
Media Library /wp-admin/upload.php3.26 ▲0.0334.78 ▼1.05

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Product FAQs For WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9213.56 ▼0.852.39 ▲0.6339.50 ▼1.84
Dashboard /wp-admin2,219 ▲285.23 ▼0.65104.72 ▲0.1038.54 ▼2.46
Posts /wp-admin/edit.php2,105 ▲192.41 ▲0.4043.50 ▲1.3236.58 ▼2.49
Add New Post /wp-admin/post-new.php1,518 ▼222.97 ▼0.33638.19 ▼49.4264.42 ▲3.62
Media Library /wp-admin/upload.php1,404 ▲164.64 ▲0.41105.94 ▼3.6542.67 ▼3.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/product-faqs-for-woocommerce/product-faqs-for-woocommerce.php:89

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed: Please take inspiration from this readme.txt

product-faqs-for-woocommerce/product-faqs-for-woocommerce.php 85% from 13 tests

The main PHP script in "Product FAQs For WooCommerce" version 1.1.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected155 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP552100151
CSS2002
JavaScript2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.00
▷ Minimum class complexity2.00
▷ Maximum class complexity6.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods1184.62%
▷ Protected methods215.38%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
No PNG files were detected