84% faq-plus

Code Review | FAQ Plus - WordPress FAQ Plugin

WordPress plugin FAQ Plus - WordPress FAQ Plugin scored84%from 54 tests.

About plugin

  • Plugin page: faq-plus
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 26, 2020
  • Latest release: Nov 27, 2020
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: nikanwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /610 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.07MB] [CPU: ▼0.46ms] Passed 4 tests

A check of server-side resources used by FAQ Plus - WordPress FAQ Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.03 ▼2.31
Dashboard /wp-admin3.38 ▲0.0851.62 ▼3.39
Posts /wp-admin/edit.php3.47 ▲0.1257.03 ▲12.90
Add New Post /wp-admin/post-new.php5.99 ▲0.1188.48 ▼5.72
Media Library /wp-admin/upload.php3.28 ▲0.0539.70 ▲9.58
Add New /wp-admin/post-new.php?post_type=faqp3.3346.72
All FAQ /wp-admin/edit.php?post_type=faqp3.3540.29
Setting /wp-admin/edit.php?post_type=faqp&page=faqp_setting3.2734.90

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for FAQ Plus - WordPress FAQ Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,991 ▲25616.70 ▲2.401.65 ▼0.2940.81 ▼3.05
Dashboard /wp-admin2,397 ▲2097.16 ▲1.15146.56 ▲40.3141.58 ▼2.14
Posts /wp-admin/edit.php2,449 ▲3574.65 ▲2.6666.31 ▲28.6134.01 ▼3.06
Add New Post /wp-admin/post-new.php1,547 ▲3323.21 ▼0.43625.77 ▼49.3438.67 ▼12.99
Media Library /wp-admin/upload.php1,589 ▲2014.94 ▲0.6796.10 ▼5.8540.31 ▼6.14
Add New /wp-admin/post-new.php?post_type=faqp1,8565.3076.3940.87
All FAQ /wp-admin/edit.php?post_type=faqp1,4184.6055.1526.82
Setting /wp-admin/edit.php?post_type=faqp&page=faqp_setting1,1814.5149.4724.56

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/faq-plus/includes/admin_faqp_post_type_tax.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/faq-plus/includes/admin_faqp_menu.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/faq-plus/includes/faqp_admin_functions.php:5

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Requires at least: Version not formatted correctly
Please take inspiration from this readme.txt

faq-plus/faq-plus.php Passed 13 tests

The entry point to "FAQ Plus - WordPress FAQ Plugin" version 1.0.0 is a PHP file that has certain tags in its header comment area
26 characters long description:
A faq plugin for WordPress

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
Everything looks great! No dangerous files found in this plugin657 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP42271359
JavaScript3279155
PO File1344284
CSS32059

PHP code Passed 2 tests

A brief analysis 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.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions1583.33%
▷ Anonymous functions316.67%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin