78% wp-simple-faq

Code Review | WP Simple FAQ

WordPress plugin WP Simple FAQ scored78%from 54 tests.

About plugin

  • Plugin page: wp-simple-faq
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Dec 13, 2013
  • Latest release: Apr 2, 2015
  • Number of updates: 20
  • Update frequency: every 23.8 days
  • Top authors: happyplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,474 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.31ms] Passed 4 tests

An overview of server-side resources used by WP Simple FAQ
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.27 ▼3.81
Dashboard /wp-admin3.33 ▲0.0351.29 ▲2.89
Posts /wp-admin/edit.php3.39 ▲0.0347.92 ▼3.06
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.76 ▼9.26
Media Library /wp-admin/upload.php3.26 ▲0.0339.52 ▲6.59
All FAQ's /wp-admin/edit.php?post_type=faq3.3032.44
FAQ Category /wp-admin/edit-tags.php?taxonomy=faq_cat&post_type=faq3.3440.93
Add New /wp-admin/post-new.php?post_type=faq3.4050.51

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

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

Browser metrics Passed 4 tests

WP Simple FAQ: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲20113.71 ▼0.686.44 ▲4.7042.26 ▼3.40
Dashboard /wp-admin2,239 ▲535.85 ▼0.06107.18 ▲0.4273.21 ▲32.39
Posts /wp-admin/edit.php2,131 ▲422.02 ▲0.0438.05 ▼4.7534.42 ▼1.28
Add New Post /wp-admin/post-new.php1,699 ▲16422.34 ▼0.79720.62 ▲55.5152.83 ▼1.17
Media Library /wp-admin/upload.php1,423 ▲384.10 ▼0.1195.70 ▼9.4065.52 ▲20.85
All FAQ's /wp-admin/edit.php?post_type=faq1,0941.9930.9129.04
FAQ Category /wp-admin/edit-tags.php?taxonomy=faq_cat&post_type=faq1,2952.2826.3230.44
Add New /wp-admin/post-new.php?post_type=faq2,2637.59177.39136.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-simple-faq/wp_simple_faq.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=faq
    • > Network (severe)
    wp-admin//images/press-this.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: frequently asked questions, knowledgebase, simple faq, faq widget, faqs...

wp-simple-faq/wp_simple_faq.php 92% from 13 tests

The entry point to "WP Simple FAQ" version 1.4.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-simple-faq.php" instead of "wp_simple_faq.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,191 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS134491,094
PHP1291794
JavaScript1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin