90% faq-with-categories

Code Review | FAQ with categories

WordPress plugin FAQ with categories scored90%from 54 tests.

About plugin

  • Plugin page: faq-with-categories
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4
  • WordPress version: 6.3.1
  • First release: Nov 23, 2020
  • Latest release: Oct 29, 2023
  • Number of updates: 16
  • Update frequency: every 67.5 days
  • Top authors: ruigehond (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,237 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼4.16ms] Passed 4 tests

Server-side resources used by FAQ with categories
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2539.84 ▲1.67
Dashboard /wp-admin3.55 ▲0.2547.65 ▼2.94
Posts /wp-admin/edit.php3.67 ▲0.3150.83 ▲0.10
Add New Post /wp-admin/post-new.php6.14 ▲0.2581.17 ▼15.46
Media Library /wp-admin/upload.php3.48 ▲0.2537.47 ▲5.83
FAQ /wp-admin/edit.php?post_type=ruigehond010_faq3.5337.72
Settings /wp-admin/admin.php?page=faq-with-categories-with-submenu-settings3.4634.61
Order taxonomy /wp-admin/admin.php?page=faq-with-categories-with-submenu-order-taxonomy3.4733.57

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 7 new options
New tables
wp_ruigehond010_taxonomy_o
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
ruigehond010

Browser metrics Passed 4 tests

FAQ with categories: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲17613.56 ▼0.958.42 ▲6.7042.78 ▼3.72
Dashboard /wp-admin2,228 ▲515.60 ▲0.0185.16 ▼14.9538.96 ▼4.97
Posts /wp-admin/edit.php2,136 ▲362.04 ▲0.0240.75 ▲1.0236.91 ▲1.53
Add New Post /wp-admin/post-new.php1,554 ▲2623.02 ▼0.16684.39 ▲30.9464.81 ▲9.89
Media Library /wp-admin/upload.php1,430 ▲304.22 ▲0.0298.94 ▼2.5641.64 ▲0.35
FAQ /wp-admin/edit.php?post_type=ruigehond010_faq1,1441.9834.9230.25
Settings /wp-admin/admin.php?page=faq-with-categories-with-submenu-settings1,0472.0022.2729.51
Order taxonomy /wp-admin/admin.php?page=faq-with-categories-with-submenu-order-taxonomy8372.0831.5126.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: frequently, answers, faq, asked, categories...

faq-with-categories/faq-with-categories.php Passed 13 tests

The main file in "FAQ with categories" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
Easy to maintain FAQ and answer plugin with categories.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,317 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP3942821,083
JavaScript23499949
PO File14855195
CSS29190

PHP code Passed 2 tests

Analyzing 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.80
▷ Minimum class complexity1.00
▷ Maximum class complexity136.00
Average method complexity4.24
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods51
▷ Static methods00.00%
▷ Public methods4792.16%
▷ Protected methods11.96%
▷ Private methods35.88%
Functions9
▷ Named functions666.67%
▷ Anonymous functions333.33%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected