84% wpsso-faq

Code Review | WPSSO FAQ Manager

WordPress plugin WPSSO FAQ Manager scored84%from 54 tests.

About plugin

  • Plugin page: wpsso-faq
  • Plugin version: 5.0.0
  • PHP compatiblity: 7.2.34+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 2, 2019
  • Latest release: Nov 9, 2023
  • Number of updates: 1,357
  • Update frequency: every 1.2 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /13,104 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼5.15ms] Passed 4 tests

An overview of server-side resources used by WPSSO FAQ Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1542.18 ▲7.31
Dashboard /wp-admin3.46 ▲0.1549.29 ▼2.01
Posts /wp-admin/edit.php3.57 ▲0.2146.77 ▼5.00
Add New Post /wp-admin/post-new.php6.04 ▲0.1582.94 ▼14.58
Media Library /wp-admin/upload.php3.38 ▲0.1535.82 ▲1.01

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WPSSO FAQ Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3414.25 ▼0.461.64 ▲0.1444.92 ▲5.29
Dashboard /wp-admin2,198 ▲205.51 ▼0.1798.62 ▼2.7142.64 ▲0.26
Posts /wp-admin/edit.php2,106 ▲61.95 ▼0.0537.37 ▼4.4333.44 ▼3.53
Add New Post /wp-admin/post-new.php1,532 ▲623.19 ▲0.05680.41 ▲35.9951.13 ▲2.42
Media Library /wp-admin/upload.php1,409 ▲94.26 ▲0.0498.76 ▼0.6643.02 ▲2.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

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 items
  • 15× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/wpsso-faq/lib/style.php
    • > /wp-content/plugins/wpsso-faq/lib/term.php
    • > /wp-content/plugins/wpsso-faq/lib/filters-messages.php
    • > /wp-content/plugins/wpsso-faq/lib/config.php
    • > /wp-content/plugins/wpsso-faq/lib/abstract/com/add-on.php
    • > /wp-content/plugins/wpsso-faq/lib/register.php
    • > /wp-content/plugins/wpsso-faq/lib/filters.php
    • > /wp-content/plugins/wpsso-faq/lib/submenu/faq-settings.php
    • > /wp-content/plugins/wpsso-faq/lib/shortcode/question.php
    • > /wp-content/plugins/wpsso-faq/lib/post.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% 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
These attributes need your attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

wpsso-faq/wpsso-faq.php Passed 13 tests

Analyzing the main PHP file in "WPSSO FAQ Manager" version 5.0.0
120 characters long description:
Create FAQ and Question / Answer Pages with optional shortcodes to include FAQs and Questions / Answers in your content.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,497 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP166002821,163
PO File19598235
HTML451063
Markdown117036

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity11.62
▷ Minimum class complexity2.00
▷ Maximum class complexity31.00
Average method complexity2.99
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes215.38%
▷ Concrete classes1184.62%
▷ Final classes00.00%
Methods68
▷ Static methods1217.65%
▷ Public methods5885.29%
▷ Protected methods57.35%
▷ Private methods57.35%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants9
▷ Global constants9100.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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-256x256.png50.73KB21.76KB▼ 57.11%
images/icon-128x128.png19.20KB8.58KB▼ 55.30%