89% edd-product-faq

Code Review | Product FAQ for Easy Digital Downloads

WordPress plugin Product FAQ for Easy Digital Downloads scored89%from 54 tests.

About plugin

  • Plugin page: edd-product-faq
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3
  • WordPress version: 6.3.1
  • First release: Jun 24, 2020
  • Latest release: Aug 7, 2023
  • Number of updates: 11
  • Update frequency: every 103.6 days
  • Top authors: Wpcalc (72.73%)lobov (36.36%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /511 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.79ms] Passed 4 tests

Analyzing server-side resources used by Product FAQ for Easy Digital Downloads
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.07 ▼5.42
Dashboard /wp-admin3.37 ▲0.0648.65 ▼4.58
Posts /wp-admin/edit.php3.48 ▲0.1250.19 ▲2.29
Add New Post /wp-admin/post-new.php5.95 ▲0.0688.65 ▼5.44
Media Library /wp-admin/upload.php3.29 ▲0.0636.84 ▲0.28

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Product FAQ for Easy Digital Downloads
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲15213.61 ▼0.764.82 ▲2.9637.74 ▼14.77
Dashboard /wp-admin2,213 ▲254.85 ▼0.04109.52 ▼8.8341.01 ▼5.71
Posts /wp-admin/edit.php2,092 ▲31.97 ▼0.0440.51 ▲5.5535.08 ▼4.86
Add New Post /wp-admin/post-new.php1,533 ▲1123.34 ▲0.05648.14 ▼29.7845.73 ▼3.05
Media Library /wp-admin/upload.php1,398 ▲104.25 ▲0.0995.91 ▼6.0140.30 ▼2.86

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Backend), #2 (Frontend)
The official readme.txt is a good inspiration

edd-product-faq/edd-product-faq.php 92% from 13 tests

"Product FAQ for Easy Digital Downloads" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected379 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP386103206
CSS45384
Sass13053
JavaScript48136

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.32
Average class complexity9.00
▷ Minimum class complexity3.00
▷ Maximum class complexity16.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods14
▷ Static methods214.29%
▷ Public methods1285.71%
▷ Protected methods00.00%
▷ Private methods214.29%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png12.72KB3.13KB▼ 75.39%
screenshot-1.png20.24KB5.21KB▼ 74.24%