83% simple-faq-by-lukask

Code Review | Simple FAQ by LukasK

WordPress plugin Simple FAQ by LukasK scored 83% from 54 tests.

About plugin

  • Plugin page: simple-faq-by-lukask
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.8
  • WordPress version: 6.3.1
  • First release: Jul 8, 2017
  • Latest release: Jul 8, 2017
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: kukask32 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 571 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.23ms] Passed 4 tests

An overview of server-side resources used by Simple FAQ by LukasK
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.74 ▼5.58
Dashboard /wp-admin3.34 ▲0.0446.69 ▼3.61
Posts /wp-admin/edit.php3.39 ▲0.0347.88 ▼2.56
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.46 ▼25.18
Media Library /wp-admin/upload.php3.26 ▲0.0335.80 ▲0.75
Add New /wp-admin/post-new.php?post_type=lukask_faq3.3746.43
FAQ settings /wp-admin/edit.php?post_type=lukask_faq&page=lukask_faq_settings3.2330.01
All questions /wp-admin/edit.php?post_type=lukask_faq3.3035.78

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Simple FAQ by LukasK
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7713.59 ▼0.761.73 ▼0.1440.46 ▼2.08
Dashboard /wp-admin2,231 ▲405.85 ▲0.92105.61 ▲6.2138.35 ▼4.04
Posts /wp-admin/edit.php2,120 ▲312.06 ▲0.0738.78 ▲0.1434.98 ▼0.78
Add New Post /wp-admin/post-new.php1,559 ▲4023.07 ▼0.31644.23 ▼13.2256.55 ▼3.50
Media Library /wp-admin/upload.php1,422 ▲344.20 ▼0.01109.40 ▲7.8847.09 ▲3.73
Add New /wp-admin/post-new.php?post_type=lukask_faq2,1547.70158.6860.14
FAQ settings /wp-admin/edit.php?post_type=lukask_faq&page=lukask_faq_settings8902.0323.6527.37
All questions /wp-admin/edit.php?post_type=lukask_faq1,0841.9930.8528.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/simple-faq-by-lukask/lukask-faq.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: questions and answers, qa, frequently asked questions, faq

simple-faq-by-lukask/lukask-faq.php 77% from 13 tests

The main PHP script in "Simple FAQ by LukasK" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-faq-by-lukask.php" instead of "lukask-faq.php")
  • Description: The description should be shorter than 140 characters (currently 222 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected289 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14525199
PO File1323290

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.22
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods9100.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin