84% ask-faq

Code Review | Ask FAQ

WordPress plugin Ask FAQ scored84%from 54 tests.

About plugin

  • Plugin page: ask-faq
  • Plugin version: 0.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 1, 2023
  • Latest release: Nov 16, 2023
  • Number of updates: 3
  • Update frequency: every 56.0 days
  • Top authors: themeatelier (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /111 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.24MB] [CPU: ▼9.69ms] Passed 4 tests

This is a short check of server-side resources used by Ask FAQ
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.48 ▼0.42
Dashboard /wp-admin3.34 ▲0.0347.05 ▼4.84
Posts /wp-admin/edit.php3.39 ▲0.0348.96 ▲6.83
Add New Post /wp-admin/post-new.php4.85 ▼1.0451.35 ▼40.31
Media Library /wp-admin/upload.php3.26 ▲0.0338.67 ▲7.61

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Ask FAQ
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲8714.32 ▼0.3220.93 ▲19.0946.78 ▲1.01
Dashboard /wp-admin2,192 ▲185.60 ▲0.0693.15 ▼6.5639.35 ▼4.83
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0140.75 ▲4.1737.17 ▼4.27
Add New Post /wp-admin/post-new.php6,374 ▲4,84828.06 ▲5.25988.94 ▲339.5467.00 ▲17.22
Media Library /wp-admin/upload.php1,397 ▲34.34 ▲0.15104.77 ▲3.0047.51 ▲1.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ask-faq/ask-faq.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: faq block, accordion block, tab block, faq, accordion...

ask-faq/ask-faq.php 85% from 13 tests

The entry point to "Ask FAQ" version 0.0.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Requires PHP: The required version number must match the one declared in readme.txt ("5.4" instead of "7.0")
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "4.0")

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
Good job! No executable or dangerous file extensions detected6,006 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript53861,4034,335
CSS427291,378
JSON300152
PO File13763103
PHP471538

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected