84% adonide-faq-plugin

Code Review | FAQ plugin

WordPress plugin FAQ plugin scored 84% from 54 tests.

About plugin

  • Plugin page: adonide-faq-plugin
  • Plugin version: 2.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-4.4
  • WordPress version: 5.9.2
  • First release: Jul 18, 2012
  • Latest release: Mar 31, 2016
  • Number of updates: 83
  • Update frequency: every 16.3 days
  • Top authors: djerba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 5,731 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼304.86ms] Passed 4 tests

A check of server-side resources used by FAQ plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0758.06 ▼2.84
Dashboard /wp-admin3.48 ▲0.0732.67 ▼11.05
Posts /wp-admin/edit.php3.71 ▼0.2038.94 ▼6.29
Add New Post /wp-admin/post-new.php6.95 ▼0.0297.11 ▼1,199.25
Media Library /wp-admin/upload.php3.37 ▲0.0723.72 ▼1.13
Help /wp-admin/edit.php?post_type=adonide_faq&page=adonide-faq-plugin/core/html-faq-page-postType.php3.3421.74
Taxonomies /wp-admin/edit-tags.php?taxonomy=taxonomies&post_type=adonide_faq3.5126.52
New Question /wp-admin/post-new.php?post_type=adonide_faq3.7445.54
All questions /wp-admin/edit.php?post_type=adonide_faq3.4727.49

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 1 new option
New WordPress options
faqPage_plugin_signature

Browser metrics Passed 4 tests

FAQ plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,914 ▲19216.40 ▲1.1013.00 ▲5.862.54 ▼0.29
Dashboard /wp-admin2,941 ▲836.18 ▲0.01117.18 ▼27.81222.41 ▲55.78
Posts /wp-admin/edit.php2,734 ▲463.13 ▼0.1266.42 ▲2.74143.56 ▲0.37
Add New Post /wp-admin/post-new.php1,665 ▼10821.91 ▲0.91379.08 ▼153.38179.52 ▲10.79
Media Library /wp-admin/upload.php1,748 ▲535.56 ▲0.08129.99 ▼23.27225.13 ▲32.94
Help /wp-admin/edit.php?post_type=adonide_faq&page=adonide-faq-plugin/core/html-faq-page-postType.php1,3213.2661.92127.53
Taxonomies /wp-admin/edit-tags.php?taxonomy=taxonomies&post_type=adonide_faq1,6712.7454.56114.82
New Question /wp-admin/post-new.php?post_type=adonide_faq3,5979.71188.54246.50
All questions /wp-admin/edit.php?post_type=adonide_faq1,4533.1759.90113.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 1 option in the database
    • faqPage_plugin_signature

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 fix the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/adonide-faq-plugin/index.php
    • > /wp-content/plugins/adonide-faq-plugin/core/updateList.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (FAQ plugin configuration panel)
The official readme.txt is a good inspiration

adonide-faq-plugin/index.php 92% from 13 tests

Analyzing the main PHP file in "FAQ plugin" version 2.2.2
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("adonide-faq-plugin.php" instead of "index.php")

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
No dangerous file extensions were detected7,338 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51,4671,0336,677
PHP425109357
PO File291122153
CSS215151

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity7.50
▷ Minimum class complexity3.00
▷ Maximum class complexity12.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods15.26%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
10 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
core/images/icon-32.png1.32KB1.26KB▼ 4.59%
core/images/icon.png0.64KB0.67KB0.00%
core/images/icon-128.png4.86KB3.05KB▼ 37.19%
core/images/icon-24.png0.97KB0.94KB▼ 2.22%
screenshot-1.png65.70KB29.98KB▼ 54.37%