77% faq-in-minute

Code Review | Faq in minute

WordPress plugin Faq in minute scored77%from 54 tests.

About plugin

  • Plugin page: faq-in-minute
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Jul 25, 2015
  • Latest release: Sep 3, 2020
  • Number of updates: 75
  • Update frequency: every 24.9 days
  • Top authors: jitenit (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /4,327 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.82ms] Passed 4 tests

This is a short check of server-side resources used by Faq in minute
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0750.01 ▲5.11
Dashboard /wp-admin3.37 ▲0.0750.66 ▼1.81
Posts /wp-admin/edit.php3.42 ▲0.0746.69 ▼7.53
Add New Post /wp-admin/post-new.php5.97 ▲0.0983.27 ▼12.65
Media Library /wp-admin/upload.php3.30 ▲0.0739.27 ▲2.72
FAQ Settings /wp-admin/edit.php?post_type=faq_in_minute_cat&page=faq_in_minute_cat3.2435.19
faqcategory /wp-admin/edit-tags.php?taxonomy=faqcategory&post_type=faq_in_minute_cat3.2936.15
All Items /wp-admin/edit.php?post_type=faq_in_minute_cat3.3537.90
Add New /wp-admin/post-new.php?post_type=faq_in_minute_cat3.4660.47
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=faq_in_minute_cat3.2936.55
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=faq_in_minute_cat3.2941.91

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
category_children

Browser metrics Passed 4 tests

Checking browser requirements for Faq in minute
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲17713.62 ▼0.9112.24 ▲10.3150.04 ▲1.84
Dashboard /wp-admin2,257 ▲835.83 ▲0.2491.95 ▼9.1938.00 ▼4.93
Posts /wp-admin/edit.php2,164 ▲642.26 ▲0.2636.19 ▼0.9436.66 ▲2.11
Add New Post /wp-admin/post-new.php1,575 ▲4923.21 ▼0.41647.71 ▼45.5035.53 ▼38.46
Media Library /wp-admin/upload.php1,462 ▲624.42 ▲0.2799.71 ▼8.8142.40 ▼2.74
FAQ Settings /wp-admin/edit.php?post_type=faq_in_minute_cat&page=faq_in_minute_cat1,0882.5946.3526.57
faqcategory /wp-admin/edit-tags.php?taxonomy=faqcategory&post_type=faq_in_minute_cat1,3412.0532.0631.43
All Items /wp-admin/edit.php?post_type=faq_in_minute_cat1,2302.3634.2829.64
Add New /wp-admin/post-new.php?post_type=faq_in_minute_cat3,1518.30181.5777.65
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=faq_in_minute_cat1,3892.0432.9531.56
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=faq_in_minute_cat1,5252.0634.1334.39

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • category_children
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=faq_in_minute_cat&page=faq_in_minute_cat
    • > Notice in wp-content/plugins/faq-in-minute/faq_all.php+132
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/faq-in-minute/faq.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/faq-in-minute/faq_all.php:78

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Add Faq From admin panel), #2 (Display all Faq in website), #3 (Faq with custom color), #4 (FAQ color,font Settings in admin), #5 (Default faq list), #6 (Display Faq with Category wise)
  • Tags: You are using too many tags: 16 tag instead of maximum 10
You can look at the official readme.txt

faq-in-minute/faq_all.php 85% from 13 tests

The primary PHP file in "Faq in minute" version 2.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 283 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("faq-in-minute.php" instead of "faq_all.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin227 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP23314222
JavaScript2054
CSS1041

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions11
▷ Named functions11100.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
9 PNG files occupy 0.37MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png87.96KB25.62KB▼ 70.87%
screenshot-1.png53.15KB20.81KB▼ 60.85%
screenshot-5.png27.00KB8.46KB▼ 68.65%
images/secoendaccordingtab.png1.55KB0.51KB▼ 67.21%
screenshot-6.png96.10KB27.15KB▼ 71.75%