79% simple-faq-manager

Code Review | Simple FAQ Manager

WordPress plugin Simple FAQ Manager scored79%from 54 tests.

About plugin

  • Plugin page: simple-faq-manager
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 16, 2019
  • Latest release: Oct 9, 2023
  • Number of updates: 4
  • Update frequency: every 431.7 days
  • Top authors: jonboss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /557 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.04MB] [CPU: ▼9.90ms] Passed 4 tests

An overview of server-side resources used by Simple FAQ Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.78 ▲1.34
Dashboard /wp-admin3.36 ▲0.0148.98 ▼13.58
Posts /wp-admin/edit.php3.41 ▲0.0550.24 ▲0.76
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.67 ▼28.13
Media Library /wp-admin/upload.php3.29 ▲0.0538.16 ▲6.67
Add New /wp-admin/post-new.php?post_type=simple-faq3.4048.42
FAQ /wp-admin/edit.php?post_type=simple-faq3.3336.92
Topics /wp-admin/edit-tags.php?taxonomy=topics&post_type=simple-faq3.2830.11

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple FAQ Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲16013.47 ▼0.878.39 ▲6.8242.24 ▲2.00
Dashboard /wp-admin2,229 ▲495.62 ▼0.0197.11 ▲11.9641.41 ▲1.80
Posts /wp-admin/edit.php2,131 ▲311.98 ▼0.0335.20 ▼2.2132.83 ▼5.86
Add New Post /wp-admin/post-new.php1,552 ▲1723.33 ▲4.95648.66 ▲24.8255.64 ▼10.04
Media Library /wp-admin/upload.php1,431 ▲344.22 ▼0.0094.54 ▼8.5843.18 ▼1.62
Add New /wp-admin/post-new.php?post_type=simple-faq2,2507.66179.4762.41
FAQ /wp-admin/edit.php?post_type=simple-faq1,0991.9631.4726.88
Topics /wp-admin/edit-tags.php?taxonomy=topics&post_type=simple-faq1,2742.1227.3325.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simple-faq-manager/views/topics-sidebar.php
    • > /wp-content/plugins/simple-faq-manager/views/shortcode-notice.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: topics in wp-content/plugins/simple-faq-manager/views/topics-sidebar.php on line 6
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/simple-faq-manager/views/topics-sidebar.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'Simple_FAQ' not found in wp-content/plugins/simple-faq-manager/views/faq.php:4
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/simple-faq-manager/views/main-content.php:9
    • > PHP Notice
      Undefined variable: questions in wp-content/plugins/simple-faq-manager/views/main-content.php on line 9

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: faqs, frequently asked questions, faq

simple-faq-manager/simple-faq-manager.php Passed 13 tests

The main PHP file in "Simple FAQ Manager" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
Adds an FAQ section to the site that can be displayed with a shortcode

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
Good job! No executable or dangerous file extensions detected355 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP87359190
Sass127082
CSS14163
JavaScript14020

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity1.67
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods11
▷ Static methods11100.00%
▷ Public methods763.64%
▷ Protected methods00.00%
▷ Private methods436.36%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin