68% casengo-faq-web-self-service-plugin

Code Review | FAQ & Knowledge Base Plugin

WordPress plugin FAQ & Knowledge Base Plugin scored68%from 54 tests.

About plugin

  • Plugin page: casengo-faq-web-s...
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.7
  • WordPress version: 6.3.1
  • First release: Jun 7, 2013
  • Latest release: Jun 23, 2014
  • Number of updates: 494
  • Update frequency: every 1.3 days
  • Top authors: casengo (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /7,887 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.87MB] [CPU: ▼32.38ms] Passed 4 tests

An overview of server-side resources used by FAQ & Knowledge Base Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0834.72 ▼4.59
Dashboard /wp-admin3.08 ▼0.2322.64 ▼24.30
Posts /wp-admin/edit.php3.08 ▼0.2823.27 ▼21.82
Add New Post /wp-admin/post-new.php3.08 ▼2.8120.06 ▼78.80
Media Library /wp-admin/upload.php3.08 ▼0.1533.02 ▼0.10
Our Friends /wp-admin/admin.php?page=casengo-friends3.0819.28

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for FAQ & Knowledge Base Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.54 ▼0.772.26 ▲0.6137.47 ▼1.67
Dashboard /wp-admin2,229 ▲415.84 ▼0.07101.18 ▼5.9578.62 ▲38.77
Posts /wp-admin/edit.php2,109 ▲202.00 ▲0.0136.89 ▼1.7931.77 ▲0.81
Add New Post /wp-admin/post-new.php1,685 ▲14122.50 ▲4.21641.73 ▲18.5255.84 ▲4.31
Media Library /wp-admin/upload.php1,405 ▲174.26 ▲0.0195.78 ▼1.8943.43 ▼2.41
Our Friends /wp-admin/admin.php?page=casengo-friends7812.0225.6123.41

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=casengo-friends
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/admin.php?page=casengo-friends
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'wp-content/plugins/casengo-faq-web-self-service-plugin/friends.php' not found or invalid function name

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 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/casengo-faq-web-self-service-plugin/cas-faq-template.php:113
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/casengo-faq-web-self-service-plugin/friends.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/casengo-faq-web-self-service-plugin/casengo.php:62

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: The official readme.txt might help

casengo-faq-web-self-service-plugin/casengo.php 92% from 13 tests

The main file in "FAQ & Knowledge Base Plugin" v. 1.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("casengo-faq-web-self-service-plugin.php" instead of "casengo.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
Everything looks great! No dangerous files found in this plugin730 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4157150633
JavaScript118697

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions15
▷ Named functions15100.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
There are no PNG files in this plugin