84% faqz

Code Review | FAQz

WordPress plugin FAQz scored 84% from 53 tests.

About plugin

  • Plugin page: faqz
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1
  • WordPress version: 5.8.1
  • First release: Oct 15, 2012
  • Latest release: Jun 11, 2015
  • Number of updates: 7
  • Update frequency: every 139.0 days
  • Top authors: husobj (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 1,294 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼260.21ms] Passed 4 tests

An overview of server-side resources used by FAQz
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.1035.71 ▲4.30
Dashboard /wp-admin3.15 ▲0.1042.70 ▼7.67
Posts /wp-admin/edit.php3.21 ▲0.1045.88 ▲5.08
Add New Post /wp-admin/post-new.php5.51 ▲0.0893.63 ▼1,031.86
Media Library /wp-admin/upload.php3.09 ▲0.0931.68 ▼5.60
Add New /wp-admin/post-new.php?post_type=faqz3.2051.32
All FAQs /wp-admin/edit.php?post_type=faqz3.1433.73
Category /wp-admin/edit-tags.php?taxonomy=faqz_category&post_type=faqz3.0931.38

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options
widget_faqz_search

Browser metrics Passed 4 tests

A check of browser resources used by FAQz
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,693 ▲8715.86 ▲0.247.64 ▼1.6948.30 ▲2.58
Dashboard /wp-admin2,973 ▲1236.07 ▲0.23136.07 ▲5.1196.55 ▼6.10
Posts /wp-admin/edit.php2,746 ▲432.70 ▼0.1364.58 ▼7.2090.79 ▼10.16
Add New Post /wp-admin/post-new.php1,507 ▼38018.44 ▼0.47349.30 ▼23.24107.74 ▲1.63
Media Library /wp-admin/upload.php1,812 ▲434.99 ▲0.01151.40 ▼11.80111.70 ▼3.06
Add New /wp-admin/post-new.php?post_type=faqz3,1088.93212.55139.62
All FAQs /wp-admin/edit.php?post_type=faqz1,4372.6264.8070.49
Category /wp-admin/edit-tags.php?taxonomy=faqz_category&post_type=faqz1,7412.5160.5265.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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 did not uninstall successfully, leaving 1 option in the database
    • widget_faqz_search

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/faqz/faqz.php:42
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/faqz/includes/widgets.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: questions, faqs, answers, faq, knowledgebase

faqz/faqz.php Passed 13 tests

The primary PHP file in "FAQz" version 0.3 is used by WordPress to initiate all plugin functionality
54 characters long description:
Simple management of Frequently Asked Questions (FAQ).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected220 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP296120220

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity7.50
▷ Minimum class complexity3.00
▷ Maximum class complexity12.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin