68% spider-faq

Code Review | SpiderFAQ

WordPress plugin SpiderFAQ scored68%from 54 tests.

About plugin

  • Plugin page: spider-faq
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Feb 25, 2013
  • Latest release: Dec 16, 2019
  • Number of updates: 68
  • Update frequency: every 36.6 days
  • Top authors: webdorado (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

1,000+ active /69,351 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.84MB] [CPU: ▲6.50ms] Passed 4 tests

Server-side resources used by SpiderFAQ
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.30 ▲0.8352.77 ▲10.41
Dashboard /wp-admin4.15 ▲0.8457.50 ▲4.75
Posts /wp-admin/edit.php4.26 ▲0.9056.87 ▲2.99
Add New Post /wp-admin/post-new.php6.73 ▲0.8499.43 ▲7.85
Media Library /wp-admin/upload.php4.07 ▲0.8448.93 ▲10.59
Uninstall Spider FAQ /wp-admin/admin.php?page=Uninstall_Spider_FAQ4.0336.74
Featured Plugins /wp-admin/admin.php?page=Spider_Faq_featured_plugins4.0334.95
Licensing /wp-admin/admin.php?page=Spider_FAQ_Licensing4.0337.68
Questions /wp-admin/admin.php?page=Spider_Faq_Questions4.2139.41
Themes /wp-admin/admin.php?page=Spider_Faq_Themes4.5540.37
Categories /wp-admin/admin.php?page=Spider_Faq_Categories4.1038.63
FAQs /wp-admin/admin.php?page=Spider_Faq4.2338.42

Server storage [IO: ▲2.62MB] [DB: ▲0.03MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 192 new files
Database: 5 new tables, 6 new options
New tables
wp_spider_faq_faq
wp_spider_faq_theme
wp_spider_faq_question
wp_spider_faq_category
wp_post_right_content
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for SpiderFAQ
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲19213.69 ▼0.9611.02 ▲9.3337.87 ▼6.06
Dashboard /wp-admin2,234 ▲605.69 ▲0.1086.95 ▼12.9578.63 ▲36.11
Posts /wp-admin/edit.php2,174 ▲772.28 ▲0.3142.94 ▲4.0437.41 ▲1.15
Add New Post /wp-admin/post-new.php6,373 ▲4,84124.99 ▲1.93913.36 ▲200.7086.74 ▲30.37
Media Library /wp-admin/upload.php1,461 ▲614.39 ▲0.15115.49 ▼2.3178.09 ▲29.06
Uninstall Spider FAQ /wp-admin/admin.php?page=Uninstall_Spider_FAQ9271.9227.2127.57
Featured Plugins /wp-admin/admin.php?page=Spider_Faq_featured_plugins1,0851.9225.8634.51
Licensing /wp-admin/admin.php?page=Spider_FAQ_Licensing8881.9227.3326.25
Questions /wp-admin/admin.php?page=Spider_Faq_Questions1,0081.8929.3438.26
Themes /wp-admin/admin.php?page=Spider_Faq_Themes8951.9226.9429.72
Categories /wp-admin/admin.php?page=Spider_Faq_Categories1,0151.9425.7127.85
FAQs /wp-admin/admin.php?page=Spider_Faq9751.9224.8628.97

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure failed, leaving 5 tables in the database
    • wp_spider_faq_faq
    • wp_spider_faq_question
    • wp_post_right_content
    • wp_spider_faq_category
    • wp_spider_faq_theme
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/spider-faq/spider_faq_category_functions.html.php
    • > /wp-content/plugins/spider-faq/spider_faq_question_functions.html.php
    • > /wp-content/plugins/spider-faq/spider_faq_theme_functions.html.php
    • > /wp-content/plugins/spider-faq/spider_faq_functions.html.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/spider-faq/faq.php:11

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
No tags were found

spider-faq/faq.php 92% from 13 tests

The main PHP file in "SpiderFAQ" ver. 1.3.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("spider-faq.php" instead of "faq.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin18,818 lines of code in 77 files:
LanguageFilesBlank linesComment linesLines of code
PHP112,0471269,610
JavaScript104423884,940
CSS76491493,083
PO File472353291,175
HTML23010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions78
▷ Named functions78100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
51 PNG files occupy 0.52MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/search-faq.png1.70KB0.88KB▼ 48.42%
upload/ikon/unlike_black.png1.40KB0.56KB▼ 60.33%
upload/ikon/+.png1.26KB0.31KB▼ 75.52%
images/filesave.png0.52KB0.38KB▼ 27.31%
images/folder_sm.png0.69KB0.51KB▼ 25.04%