89% sp-faq

Code Review | WP responsive FAQ with category plugin

WordPress plugin WP responsive FAQ with category plugin scored89%from 54 tests.

About plugin

  • Plugin page: sp-faq
  • Plugin version: 3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 15, 2013
  • Latest release: Nov 24, 2023
  • Number of updates: 144
  • Update frequency: every 25.6 days
  • Top authors: anoopranawat (81.25%)wponlinesupport (19.44%)

Code review

54 tests

User reviews

17 reviews

Install metrics

6,000+ active /132,806 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.37MB] [CPU: ▲0.74ms] Passed 4 tests

This is a short check of server-side resources used by WP responsive FAQ with category plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.3142.20 ▲0.07
Dashboard /wp-admin3.72 ▲0.4246.19 ▼1.22
Posts /wp-admin/edit.php3.78 ▲0.4250.10 ▲1.76
Add New Post /wp-admin/post-new.php6.27 ▲0.3994.74 ▲13.60
Media Library /wp-admin/upload.php3.58 ▲0.3535.91 ▲2.35

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 67 new files
Database: no new tables, 8 new options
New WordPress options
wpos_anylc_site_uid
wpos_anylc_redirect
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

WP responsive FAQ with category plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,569 ▼1,19310.15 ▼4.051.73 ▲0.0518.74 ▼32.06
Dashboard /wp-admin2,218 ▲415.54 ▼0.09105.38 ▲7.4354.09 ▲8.64
Posts /wp-admin/edit.php2,122 ▲221.97 ▼0.0539.15 ▼2.1235.85 ▲0.38
Add New Post /wp-admin/post-new.php6,215 ▲4,68919.06 ▼4.79907.34 ▲309.9352.37 ▼5.06
Media Library /wp-admin/upload.php1,422 ▲194.25 ▲0.0895.41 ▼2.2839.80 ▼1.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • theysaidso_admin_options
    • wpos_anylc_site_uid
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • wpos_anylc_redirect
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

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

The main file in "WP responsive FAQ with category plugin" v. 3.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("sp-faq.php" instead of "faq.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 detected3,479 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP296571,0992,925
JavaScript612723376
CSS5127176
JSON2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity16.62
▷ Minimum class complexity3.00
▷ Maximum class complexity87.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes225.00%
Methods45
▷ Static methods24.44%
▷ Public methods4191.11%
▷ Protected methods00.00%
▷ Private methods48.89%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants19100.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
22 PNG files occupy 0.31MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/image-upgrade.png166.27KB48.08KB▼ 71.08%
wpos-plugins/assets/images/sliderspack.png5.55KB2.79KB▼ 49.75%
assets/images/SlidersPack-50.png6.48KB2.79KB▼ 56.91%
wpos-plugins/assets/images/cart-2.png2.20KB1.82KB▼ 17.38%
wpos-analytics/assets/images/icon.png11.03KB4.38KB▼ 60.24%