84% faq-concertina

Code Review | FAQ Concertina

WordPress plugin FAQ Concertina scored84%from 54 tests.

About plugin

  • Plugin page: faq-concertina
  • Plugin version: 1.4.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.9
  • WordPress version: 6.3.1
  • First release: Dec 11, 2015
  • Latest release: Jan 28, 2022
  • Number of updates: 53
  • Update frequency: every 42.3 days
  • Top authors: mburridge (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

1,000+ active /23,097 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.35ms] Passed 4 tests

A check of server-side resources used by FAQ Concertina
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.16 ▼10.00
Dashboard /wp-admin3.37 ▲0.0747.29 ▼5.57
Posts /wp-admin/edit.php3.42 ▲0.0649.51 ▼3.62
Add New Post /wp-admin/post-new.php6.08 ▲0.2095.40 ▲0.86
Media Library /wp-admin/upload.php3.29 ▲0.0634.42 ▼2.20
Add new FAQ /wp-admin/post-new.php?post_type=faqconc6.0890.08
Settings /wp-admin/edit.php?post_type=faqconc&page=faqconc_settings_page3.2637.31
FAQs /wp-admin/edit.php?post_type=faqconc3.3333.79
Categories /wp-admin/edit-tags.php?taxonomy=faqconc_cat&post_type=faqconc3.2836.21

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for FAQ Concertina
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲11113.56 ▼1.061.77 ▼0.0943.50 ▼3.30
Dashboard /wp-admin2,260 ▲725.03 ▼0.86111.92 ▼9.4838.04 ▼6.57
Posts /wp-admin/edit.php2,145 ▲532.32 ▲0.3541.16 ▲6.3435.77 ▼1.13
Add New Post /wp-admin/post-new.php1,557 ▲4323.35 ▲5.80653.39 ▼36.6935.97 ▼17.45
Media Library /wp-admin/upload.php1,436 ▲484.40 ▲0.1496.84 ▼14.4845.74 ▼0.43
Add new FAQ /wp-admin/post-new.php?post_type=faqconc1,54917.02850.4730.31
Settings /wp-admin/edit.php?post_type=faqconc&page=faqconc_settings_page1,2822.2743.6564.87
FAQs /wp-admin/edit.php?post_type=faqconc1,1622.2633.7130.98
Categories /wp-admin/edit-tags.php?taxonomy=faqconc_cat&post_type=faqconc1,2932.0631.8028.93

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/faq-concertina/faq-concertina.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Too many tags (54 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

faq-concertina/faq-concertina.php 92% from 13 tests

The primary PHP file in "FAQ Concertina" version 1.4.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 229 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected658 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2196124555
JavaScript228569
CSS1103034

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions38
▷ Named functions38100.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
No PNG files were detected