63% wp-faqs-jquery-slide

Code Review | WP FAQS jQuery Slide

WordPress plugin WP FAQS jQuery Slide scored63%from 54 tests.

About plugin

  • Plugin page: wp-faqs-jquery-slide
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 22, 2014
  • Latest release: Feb 22, 2014
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: renut (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /875 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.92MB] [CPU: ▼60.03ms] Passed 4 tests

This is a short check of server-side resources used by WP FAQS jQuery Slide
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.60 ▼36.54
Dashboard /wp-admin2.09 ▼1.256.53 ▼59.39
Posts /wp-admin/edit.php2.09 ▼1.267.28 ▼37.25
Add New Post /wp-admin/post-new.php2.09 ▼3.796.18 ▼106.92
Media Library /wp-admin/upload.php2.09 ▼1.136.14 ▼32.20
Add New /wp-admin/post-new.php?post_type=faq2.095.98
Faq Categories /wp-admin/edit-tags.php?taxonomy=faq_category&post_type=faq2.106.98
All Faqs /wp-admin/edit.php?post_type=faq2.106.35

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WP FAQS jQuery Slide
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,007 ▲23613.44 ▼0.918.42 ▲6.3250.96 ▲9.11
Dashboard /wp-admin2,194 ▲54.69 ▼0.2757.09 ▼60.8534.62 ▼15.32
Posts /wp-admin/edit.php2,125 ▲331.87 ▼0.1321.87 ▼25.7328.97 ▼8.27
Add New Post /wp-admin/post-new.php1,299 ▼23114.66 ▼3.79453.82 ▼209.1237.41 ▼13.64
Media Library /wp-admin/upload.php1,093 ▼2893.39 ▼0.8154.39 ▼46.9026.63 ▼14.44
Add New /wp-admin/post-new.php?post_type=faq2,4366.36122.3352.55
Faq Categories /wp-admin/edit-tags.php?taxonomy=faq_category&post_type=faq1,3401.9017.2628.86
All Faqs /wp-admin/edit.php?post_type=faq1,1672.0721.0227.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wptuts-jquery-ui-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=faq
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wptuts-jquery-ui-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=faq
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wptuts-jquery-ui-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=faq
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wptuts-custom-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=faq
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wptuts-custom-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

SRP 50% 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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-faqs-jquery-slide/wp-faqs-jquery-slide.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-faqs-jquery-slide/wp-faqs-jquery-slide/wp-faqs-jquery-slide.php:57

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=faq
    • > Javascript (severe) in unknown
    /wp-admin/js/common.min.js?ver=6.3.1 1:6139 Uncaught TypeError: W(...).on is not a function
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=faq
    • > Javascript (severe) in unknown
    /wp-includes/js/heartbeat.min.js?ver=6.3.1 1:5086 Uncaught TypeError: i.on is not a function
    • > GET request to /wp-admin/post-new.php?post_type=faq
    • > Javascript (severe) in unknown
    /wp-includes/js/autosave.min.js?ver=6.3.1 1:3354 Uncaught TypeError: c(...).on is not a function
    • > GET request to /wp-admin/post-new.php?post_type=faq
    • > Javascript (severe) in unknown
    /wp-includes/js/jquery/jquery.color.min.js?ver=2.2.0 2:5824 Uncaught TypeError: Cannot set properties of undefined (setting 'backgroundColor')
    • > GET request to /wp-admin/post-new.php?post_type=faq
    • > Javascript (severe) in unknown
    /wp-includes/js/jquery/ui/mouse.min.js?ver=1.13.2 8:158 Uncaught TypeError: o(...).on is not a function
    • > GET request to /wp-admin/post-new.php?post_type=faq
    • > Javascript (severe) in unknown
    /wp-includes/js/jquery/ui/sortable.min.js?ver=1.13.2 8:175 Uncaught TypeError: Cannot read properties of undefined (reading 'mouse')
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=faq
    • > Javascript (severe) in unknown
    /wp-includes/js/jquery/ui/menu.min.js?ver=1.13.2 8:139 Uncaught TypeError: a.widget is not a function
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=faq
    • > Javascript (severe) in unknown
    /wp-includes/js/jquery/ui/autocomplete.min.js?ver=1.13.2 8:148 Uncaught TypeError: o.widget is not a function
    • > GET request to /wp-admin/post-new.php?post_type=faq
    • > Javascript (severe) in unknown
    /wp-admin/js/post.min.js?ver=6.3.1 1:1613 Uncaught TypeError: s(...).on is not a function
    • > GET request to /wp-admin/post-new.php?post_type=faq
    • > Javascript (severe) in unknown
    /wp-includes/js/media-models.min.js?ver=6.3.1 1:13316 Uncaught TypeError: o(...).on is not a function
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=faq
    • > Javascript (severe) in unknown
    /wp-includes/js/wp-auth-check.min.js?ver=6.3.1 1:502 Uncaught TypeError: i(...).on is not a function
    • > GET request to /wp-admin/post-new.php?post_type=faq
    • > Javascript (severe) in unknown
    /wp-admin/js/editor.min.js?ver=6.3.1 1:10699 Uncaught TypeError: g(...).on is not a function
    • > GET request to /wp-admin/post-new.php?post_type=faq
    • > Javascript (severe) in unknown
    /wp-admin/js/media-upload.min.js?ver=6.3.1 1:1069 Uncaught TypeError: d(...).on is not a function
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=faq
    • > Javascript (severe) in unknown
    /wp-admin/js/common.min.js?ver=6.3.1 1:3796 Uncaught TypeError: W(...).on is not a function
    • > GET request to /wp-admin/edit.php?post_type=faq
    • > Javascript (severe) in unknown
    /wp-admin/js/inline-edit-post.min.js?ver=6.3.1 1:7679 Uncaught TypeError: u(...).on is not a function

Optimizations

Plugin configuration Passed 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
8 plugin tags: tab, accordion, jquery, wordpress faq, faq...

wp-faqs-jquery-slide/wp-faqs-jquery-slide.php Passed 13 tests

The main PHP script in "WP FAQS jQuery Slide" version 1.1 is automatically included on every request by WordPress
51 characters long description:
This plugin is used to show list of register users.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin4,522 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11,1557854,316
PHP22233182
CSS10024

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
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 functions880.00%
▷ Anonymous functions220.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
6 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/plus_minus.png5.27KB2.28KB▼ 56.77%
wp-faqs-jquery-slide/screenshot-2.png14.57KB9.88KB▼ 32.23%
wp-faqs-jquery-slide/images/plus_minus.png5.27KB2.28KB▼ 56.77%
screenshot-1.png18.66KB9.17KB▼ 50.84%
wp-faqs-jquery-slide/screenshot-1.png18.66KB9.17KB▼ 50.84%