68% wp-ds-faq-plus

Code Review | WP DS FAQ Plus

WordPress plugin WP DS FAQ Plus scored68%from 54 tests.

About plugin

  • Plugin page: wp-ds-faq-plus
  • Plugin version: 1.5.0
  • PHP compatiblity: 5.8+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 9, 2012
  • Latest release: Feb 28, 2023
  • Number of updates: 59
  • Update frequency: every 67.9 days
  • Top authors: kimipooh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /11,844 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼5.31ms] Passed 4 tests

An overview of server-side resources used by WP DS FAQ Plus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2640.60 ▼0.55
Dashboard /wp-admin3.57 ▲0.2348.71 ▼18.33
Posts /wp-admin/edit.php3.69 ▲0.3354.82 ▲3.50
Add New Post /wp-admin/post-new.php6.15 ▲0.2790.37 ▼5.86
Media Library /wp-admin/upload.php3.50 ▲0.2740.38 ▲4.45
FAQ Settings /wp-admin/options-general.php?page=wp-ds-faq-plus/wp-ds-faq.php&admin_page=13.9736.07

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: 2 new tables, 7 new options
New tables
wp_dsfaq_name
wp_dsfaq_quest
New WordPress options
db_upgraded
wp_ds_faq_array
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP DS FAQ Plus
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.22 ▼0.131.80 ▼0.0040.33 ▲2.08
Dashboard /wp-admin2,224 ▲475.63 ▲0.0484.04 ▼5.2640.10 ▲4.08
Posts /wp-admin/edit.php2,126 ▲262.13 ▲0.1436.85 ▲0.4932.62 ▼3.41
Add New Post /wp-admin/post-new.php1,548 ▲1823.31 ▲0.27690.15 ▲77.0354.47 ▲1.44
Media Library /wp-admin/upload.php1,429 ▲264.21 ▲0.03101.00 ▲0.0943.83 ▲1.51
FAQ Settings /wp-admin/options-general.php?page=wp-ds-faq-plus/wp-ds-faq.php&admin_page=11,4012.0026.6051.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie tables were found after uninstall: 2 tables
    • wp_dsfaq_quest
    • wp_dsfaq_name
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • wp_ds_faq_array

Smoke tests 50% from 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 0% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-ds-faq-plus/ajax.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-ds-faq-plus/wp-ds-faq.php on line 28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-ds-faq-plus/wp-ds-faq.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: answer, documentation, question, faq, page...

wp-ds-faq-plus/wp-ds-faq.php 77% from 13 tests

This is the main PHP file of "WP DS FAQ Plus" version 1.5.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Domain Path: The domain path folder was not found ("/lang")
  • Description: Keep the plugin description shorter than 140 characters (currently 262 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-ds-faq-plus.php" instead of "wp-ds-faq.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,950 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23484071,808
CSS2155142

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity306.00
▷ Minimum class complexity306.00
▷ Maximum class complexity306.00
Average method complexity20.06
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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