68% wp-simple-faqs

Code Review | WP Simple FAQs

WordPress plugin WP Simple FAQs scored68%from 54 tests.

About plugin

  • Plugin page: wp-simple-faqs
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Nov 22, 2017
  • Latest release: Nov 22, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: lpkapil008 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /582 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼0.26ms] Passed 4 tests

Server-side resources used by WP Simple FAQs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.51 ▼3.79
Dashboard /wp-admin3.39 ▲0.0946.49 ▼2.84
Posts /wp-admin/edit.php3.44 ▲0.0947.98 ▼0.66
Add New Post /wp-admin/post-new.php5.97 ▲0.09100.21 ▲12.74
Media Library /wp-admin/upload.php3.32 ▲0.0937.07 ▲6.27
FAQ Settings /wp-admin/edit.php?post_type=wpsimplefaqs&page=wp-simple-faqs/views/settings.php3.2833.47
FAQ Categories /wp-admin/edit-tags.php?taxonomy=faqscat&post_type=wpsimplefaqs3.3134.06
Add New /wp-admin/post-new.php?post_type=wpsimplefaqs3.3943.61
All FAQs /wp-admin/edit.php?post_type=wpsimplefaqs3.3634.73

Server storage [IO: ▲0.02MB] [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: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

WP Simple FAQs: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲18613.65 ▼0.726.43 ▲4.5537.31 ▼9.85
Dashboard /wp-admin2,241 ▲535.90 ▲0.05106.28 ▼8.8844.84 ▲1.78
Posts /wp-admin/edit.php2,127 ▲382.05 ▲0.0139.10 ▲2.2834.80 ▼3.31
Add New Post /wp-admin/post-new.php1,571 ▲5218.49 ▼4.56606.17 ▼36.5853.63 ▼6.39
Media Library /wp-admin/upload.php1,423 ▲324.17 ▼0.0193.71 ▼7.1944.83 ▼0.42
FAQ Settings /wp-admin/edit.php?post_type=wpsimplefaqs&page=wp-simple-faqs/views/settings.php9652.0725.2526.04
FAQ Categories /wp-admin/edit-tags.php?taxonomy=faqscat&post_type=wpsimplefaqs1,2722.1430.2129.90
Add New /wp-admin/post-new.php?post_type=wpsimplefaqs2,1196.11154.6461.23
All FAQs /wp-admin/edit.php?post_type=wpsimplefaqs1,2071.9330.8831.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/wp-simple-faqs/uninstall.php+16
    Undefined variable: taxonomy
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-simple-faqs/views/faqs_cat.php
    • > /wp-content/plugins/wp-simple-faqs/views/faqs_tags.php
  • 10× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_title() in wp-content/plugins/wp-simple-faqs/views/faqs.php:8
    • > PHP Notice
      Undefined variable: cat in wp-content/plugins/wp-simple-faqs/views/faqs_tags.php on line 6
    • > PHP Notice
      Undefined variable: cat in wp-content/plugins/wp-simple-faqs/views/faqs_cat.php on line 7
    • > PHP Notice
      Undefined variable: cat in wp-content/plugins/wp-simple-faqs/views/faqs_cat.php on line 8
    • > PHP Notice
      Trying to get property 'name' of non-object in wp-content/plugins/wp-simple-faqs/views/faqs_tags.php on line 6
    • > PHP Notice
      Trying to get property 'name' of non-object in wp-content/plugins/wp-simple-faqs/views/faqs_cat.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-simple-faqs/views/settings.php:5
    • > PHP Notice
      Trying to get property 'term_id' of non-object in wp-content/plugins/wp-simple-faqs/views/faqs_tags.php on line 6
    • > PHP Notice
      Undefined variable: cat in wp-content/plugins/wp-simple-faqs/views/faqs_tags.php on line 6
    • > PHP Notice
      Trying to get property 'term_id' of non-object in wp-content/plugins/wp-simple-faqs/views/faqs_cat.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3 in wp-simple-faqs/assets to your readme.txt
You can look at the official readme.txt

wp-simple-faqs/WpSimpleFaqs.php 85% from 13 tests

The entry point to "WP Simple FAQs" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-simple-faqs.php" instead of "WpSimpleFaqs.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin291 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP750136260
CSS19826
JavaScript14145

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin