73% iks-menu

Code Review | Iks Menu - WordPress Category Accordion Menu & FAQs

WordPress plugin Iks Menu - WordPress Category Accordion Menu & FAQs scored73%from 54 tests.

About plugin

  • Plugin page: iks-menu
  • Plugin version: 1.11.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 26, 2019
  • Latest release: Jul 5, 2023
  • Number of updates: 106
  • Update frequency: every 13.0 days
  • Top authors: iksstudio (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

8,000+ active /69,467 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.63MB] [CPU: ▲1.93ms] Passed 4 tests

This is a short check of server-side resources used by Iks Menu - WordPress Category Accordion Menu & FAQs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲0.6438.85 ▼1.78
Dashboard /wp-admin3.94 ▲0.6449.56 ▲0.96
Posts /wp-admin/edit.php3.99 ▲0.6447.05 ▲2.87
Add New Post /wp-admin/post-new.php6.49 ▲0.6190.23 ▲5.66
Media Library /wp-admin/upload.php3.87 ▲0.6440.13 ▲7.28
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius4.0336.41
Iks Menu FAQs /wp-admin/edit.php?post_type=iksm_faq3.9140.59
Add FAQ /wp-admin/post-new.php?post_type=iksm_faq3.9852.26
Groups /wp-admin/edit-tags.php?taxonomy=iksm_faq_group&post_type=iksm_faq3.8640.22

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 285 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
fs_active_plugins
can_compress_scripts
widget_recent-comments
fs_debug_mode
fs_accounts
theysaidso_admin_options
widget_iksm-widget

Browser metrics Passed 4 tests

An overview of browser requirements for Iks Menu - WordPress Category Accordion Menu & FAQs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲20814.05 ▼0.605.35 ▲3.6627.85 ▼18.04
Dashboard /wp-admin2,271 ▲835.87 ▼0.0996.00 ▼18.9190.78 ▲47.23
Posts /wp-admin/edit.php2,154 ▲652.02 ▼0.0239.97 ▲3.8336.22 ▲2.52
Add New Post /wp-admin/post-new.php1,565 ▲3023.34 ▲0.04742.35 ▲67.0353.19 ▲0.30
Media Library /wp-admin/upload.php1,453 ▲624.20 ▼0.0297.88 ▼1.0480.20 ▲37.44
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,1151.7324.9726.71
Iks Menu FAQs /wp-admin/edit.php?post_type=iksm_faq1,1181.9330.7032.32
Add FAQ /wp-admin/post-new.php?post_type=iksm_faq2,2867.65161.53130.28
Groups /wp-admin/edit-tags.php?taxonomy=iksm_faq_group&post_type=iksm_faq1,3302.3128.4534.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/iks-menu/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 10 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • fs_accounts
    • fs_active_plugins
    • widget_theysaidso_widget
    • widget_iksm-widget
    • fs_debug_mode

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'IksStudio\\IKSM_CORE\\settings\\AbstractSettingsStore' not found in wp-content/plugins/iks-menu/includes/settings/SettingsStore.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'IksStudio\\IKSM_CORE\\API\\AdminAPI_Base' not found in wp-content/plugins/iks-menu/includes/core/API/AdminAPI_Plugin.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'IksStudio\\IKSM_CORE\\utils\\RemoteFetchController' not found in wp-content/plugins/iks-menu/includes/core/skins/SkinsManager.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'IksStudio\\IKSM_CORE\\API\\AdminAPI_Base' not found in wp-content/plugins/iks-menu/includes/core/API/AdminAPI_Skins.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'IksStudio\\IKSM_CORE\\Widget_Base' not found in wp-content/plugins/iks-menu/includes/Widget.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'IksStudio\\IKSM_CORE\\API\\AdminAPI_Base' not found in wp-content/plugins/iks-menu/includes/core/API/AdminAPI_PluginPosts.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'IksStudio\\IKSM_CORE\\Shortcode_Base' not found in wp-content/plugins/iks-menu/includes/Shortcode.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/iks-menu/includes/core/Widget_Base.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'IksStudio\\IKSM_CORE\\Plugin' not found in wp-content/plugins/iks-menu/includes/images/AdminMenusImprover.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'IksStudio\\IKSM_CORE\\API\\AdminAPI_Base' not found in wp-content/plugins/iks-menu/includes/API/AdminAPI_ImagesSupport.php:25

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 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: accordion menu, answer, question, category widget, accordion faqs...

iks-menu/iks-menu.php 85% from 13 tests

The primary PHP file in "Iks Menu - WordPress Category Accordion Menu & FAQs" version 1.11.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected39,304 lines of code in 203 files:
LanguageFilesBlank linesComment linesLines of code
PHP1708,75619,11937,989
SVG702730
JavaScript889182494
Markdown123043
HTML10031
CSS160017

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
Please fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity49.03
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.15
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces15
Interfaces0
Traits0
Classes99
▷ Abstract classes33.03%
▷ Concrete classes9696.97%
▷ Final classes00.00%
Methods1,538
▷ Static methods28018.21%
▷ Public methods1,08170.29%
▷ Protected methods261.69%
▷ Private methods43128.02%
Functions118
▷ Named functions10286.44%
▷ Anonymous functions1613.56%
Constants145
▷ Global constants9867.59%
▷ Class constants4732.41%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
24 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/includes/freemius-pricing/afba5c2c00e941dc077e7dfa36b58aa0.png7.09KB2.94KB▼ 58.58%
freemius/includes/freemius-pricing/27b5a722a5553d9de0170325267fccec.png6.35KB3.38KB▼ 46.76%
freemius/includes/freemius-pricing/5cfbcca7da107dcd337f385907a49475.png11.80KB3.94KB▼ 66.64%
freemius/includes/freemius-pricing/4375c4a3ddc6f637c2ab9a2d7220f91e.png9.16KB5.26KB▼ 42.58%
freemius/includes/freemius-pricing/e366d70661d8ad2493bd6afbd779f125.png10.86KB3.99KB▼ 63.26%