90% wpc-product-faqs

Code Review | WPC Product FAQs for WooCommerce

WordPress plugin WPC Product FAQs for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wpc-product-faqs
  • Plugin version: 2.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 28, 2021
  • Latest release: Oct 28, 2023
  • Number of updates: 25
  • Update frequency: every 40.2 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /5,541 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼0.89ms] Passed 4 tests

Analyzing server-side resources used by WPC Product FAQs for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1832.76 ▼3.70
Dashboard /wp-admin3.48 ▲0.1844.29 ▲0.01
Posts /wp-admin/edit.php3.60 ▲0.2447.92 ▲1.26
Add New Post /wp-admin/post-new.php6.08 ▲0.2088.16 ▼0.39
Media Library /wp-admin/upload.php3.41 ▲0.1832.18 ▲0.53
About /wp-admin/admin.php?page=wpclever3.3730.81
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.3728.32

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

WPC Product FAQs for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲10514.37 ▼0.211.58 ▼0.2037.92 ▼7.34
Dashboard /wp-admin2,275 ▲1015.69 ▲0.0782.30 ▼3.5168.96 ▲25.58
Posts /wp-admin/edit.php2,181 ▲842.03 ▲0.0238.04 ▲1.7934.58 ▲1.32
Add New Post /wp-admin/post-new.php1,601 ▲7523.10 ▲0.21724.18 ▲49.1149.18 ▼0.43
Media Library /wp-admin/upload.php1,480 ▲834.27 ▲0.0596.64 ▼4.9688.05 ▲45.67
About /wp-admin/admin.php?page=wpclever1,4052.1429.5736.38
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7322.1332.9960.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention: You can take inspiration from this readme.txt

wpc-product-faqs/wpc-product-faqs.php Passed 13 tests

The primary PHP file in "WPC Product FAQs for WooCommerce" version 2.1.5 is used by WordPress to initiate all plugin functionality
53 characters long description:
Ultimate solution to manage WooCommerce product FAQs.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,684 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP514833965
CSS41008514
JavaScript3335176
SVG10029

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity32.00
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods43
▷ Static methods12.33%
▷ Public methods43100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected