84% wp-faqs

Code Review | WP FAQ

WordPress plugin WP FAQ scored84%from 54 tests.

About plugin

  • Plugin page: wp-faqs
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.0
  • WordPress version: 6.3.1
  • First release: May 13, 2015
  • Latest release: Dec 22, 2018
  • Number of updates: 8
  • Update frequency: every 164.9 days
  • Top authors: jayantisolanki (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /3,484 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.03MB] [CPU: ▼5.37ms] Passed 4 tests

An overview of server-side resources used by WP FAQ
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0445.59 ▼7.91
Dashboard /wp-admin3.34 ▲0.0350.76 ▼0.31
Posts /wp-admin/edit.php3.39 ▲0.0347.15 ▼6.50
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.47 ▼6.74
Media Library /wp-admin/upload.php3.26 ▲0.0338.66 ▲1.94
Add FAQ /wp-admin/post-new.php?post_type=wp_faq3.3550.04
FAQs /wp-admin/edit.php?post_type=wp_faq3.3040.37

Server storage [IO: ▲0.16MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP FAQ
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.35 ▼0.001.75 ▼0.0444.03 ▼1.64
Dashboard /wp-admin2,222 ▲455.65 ▲0.0593.40 ▼4.0442.22 ▲0.13
Posts /wp-admin/edit.php2,127 ▲302.04 ▲0.0933.87 ▼2.8033.35 ▼3.95
Add New Post /wp-admin/post-new.php1,549 ▲2322.95 ▼0.24651.14 ▼52.4248.49 ▼3.02
Media Library /wp-admin/upload.php1,430 ▲304.16 ▲0.0099.91 ▼5.9144.80 ▲0.78
Add FAQ /wp-admin/post-new.php?post_type=wp_faq2,1717.66172.7659.70
FAQs /wp-admin/edit.php?post_type=wp_faq1,0911.9733.4528.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-faqs/faqs.php

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: wp faq, faq, accordian faqs, simple faqs, toggle

wp-faqs/faqs.php 92% from 13 tests

"WP FAQ" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-faqs.php" instead of "faqs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin107 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11018107

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png66.10KB25.95KB▼ 60.74%
screenshot-1.png74.36KB28.71KB▼ 61.40%
screenshot-3.png23.34KB11.80KB▼ 49.42%