78% simple-faqs

Code Review | Simple FAQs Plugin

WordPress plugin Simple FAQs Plugin scored78%from 54 tests.

About plugin

  • Plugin page: simple-faqs
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.1-4.2.1
  • WordPress version: 6.3.1
  • First release: Nov 18, 2013
  • Latest release: May 12, 2015
  • Number of updates: 31
  • Update frequency: every 17.5 days
  • Top authors: speedito (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /2,736 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼9.31ms] Passed 4 tests

Analyzing server-side resources used by Simple FAQs Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.66 ▼0.98
Dashboard /wp-admin3.36 ▲0.0144.06 ▼12.94
Posts /wp-admin/edit.php3.41 ▲0.0545.79 ▼3.28
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.49 ▼20.02
Media Library /wp-admin/upload.php3.28 ▲0.0533.63 ▲0.18
Simple FAQ Category /wp-admin/edit-tags.php?taxonomy=faq_category&post_type=simple-faqs3.2832.32
Simple FAQs /wp-admin/edit.php?post_type=simple-faqs3.3237.72
Add New /wp-admin/post-new.php?post_type=simple-faqs3.4343.56

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Simple FAQs Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲6513.25 ▼1.134.45 ▲2.4944.06 ▲3.48
Dashboard /wp-admin2,242 ▲574.86 ▼0.03108.93 ▲8.5140.09 ▼4.25
Posts /wp-admin/edit.php2,122 ▲332.00 ▲0.0138.32 ▼3.3935.68 ▼0.70
Add New Post /wp-admin/post-new.php1,542 ▲2317.43 ▼6.05584.80 ▼43.2266.00 ▲17.34
Media Library /wp-admin/upload.php1,424 ▲334.23 ▲0.0397.45 ▼5.9244.21 ▲0.02
Simple FAQ Category /wp-admin/edit-tags.php?taxonomy=faq_category&post_type=simple-faqs1,2982.1425.9725.96
Simple FAQs /wp-admin/edit.php?post_type=simple-faqs1,0861.9832.2329.49
Add New /wp-admin/post-new.php?post_type=simple-faqs2,3197.80167.1266.73

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/simple-faqs/faq_generator.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-faqs/simple-faq.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: faq listing

simple-faqs/simple-faq.php 92% from 13 tests

The entry point to "Simple FAQs Plugin" version 2.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: It is recommended to name the main PHP file as the plugin slug ("simple-faqs.php" instead of "simple-faq.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin585 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS5262288
PHP23821282
JavaScript301215

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.20
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/bookmark_heading_icon_green.png3.03KB0.40KB▼ 86.95%
images/plus_icon_blue.png2.84KB0.15KB▼ 94.81%
images/bookmark_icon_red.png3.02KB0.44KB▼ 85.45%
images/bookmark_heading_icon_blue.png3.03KB0.40KB▼ 86.94%
images/simple_Q_icon_blue.png3.61KB0.68KB▼ 81.16%