68% iconic-navigation

Code Review | Iconic Navigation

WordPress plugin Iconic Navigation scored68%from 54 tests.

About plugin

  • Plugin page: iconic-navigation
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3.1
  • WordPress version: 6.3.1
  • First release: Aug 23, 2013
  • Latest release: Oct 6, 2015
  • Number of updates: 40
  • Update frequency: every 19.4 days
  • Top authors: indybook (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /14,389 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.60MB] [CPU: ▼54.06ms] Passed 4 tests

Server-side resources used by Iconic Navigation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.38 ▼1.086.35 ▼40.48
Dashboard /wp-admin2.40 ▼0.907.28 ▼44.49
Posts /wp-admin/edit.php2.40 ▼0.958.77 ▼39.29
Add New Post /wp-admin/post-new.php2.40 ▼3.487.10 ▼91.97
Media Library /wp-admin/upload.php2.40 ▼0.827.43 ▼28.87
Iconic Navigation Settings /wp-admin/options-general.php?page=iconic-navigation2.406.92

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
recovery_mode_email_last_sent
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Iconic Navigation
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,987 ▲22614.63 ▲0.252.03 ▲0.2937.13 ▼4.92
Dashboard /wp-admin2,369 ▲1666.46 ▲0.62138.51 ▲30.7838.87 ▼7.08
Posts /wp-admin/edit.php2,267 ▲1673.41 ▲1.3656.11 ▲17.1134.24 ▲0.08
Add New Post /wp-admin/post-new.php1,688 ▲15522.47 ▼0.78676.52 ▲57.5536.35 ▼17.62
Media Library /wp-admin/upload.php1,417 ▲174.14 ▼0.0781.07 ▼24.5240.46 ▼3.93
Iconic Navigation Settings /wp-admin/options-general.php?page=iconic-navigation7081.7110.5621.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/iconic-navigation/iconavs_menu_fun.php+88
    Declaration of iconNavs_Edit_Nav_Menu_Walker::start_el(&$output, $item, $depth, $args) should be compatible with Walker_Nav_Menu::start_el(&$output, $data_object, $depth = 0, $args = NULL, $current_object_id = 0)
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=iconic-navigation
    • > Warning in wp-content/plugins/iconic-navigation/iconavs_menu_fun.php+88
    Declaration of iconNavs_Edit_Nav_Menu_Walker::start_el(&$output, $item, $depth, $args) should be compatible with Walker_Nav_Menu::start_el(&$output, $data_object, $depth = 0, $args = NULL, $current_object_id = 0)
    • > GET request to /wp-admin/options-general.php?page=iconic-navigation
    • > Error in wp-content/plugins/iconic-navigation/classes/cadreu_plugin.php+62
    Uncaught Error: [] operator not supported for strings in wp-content/plugins/iconic-navigation/classes/cadreu_plugin.php:62
    Stack trace:
    #0 wp-content/plugins/iconic-navigation/classes/cadreu_plugin_options.php(49): cadrEu_Plugin->_Settings_link()
    #1 wp-includes/class-wp-hook.php(310): cadreuPlugin_Options->_options_form()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/admin.php(259): do_action()
    #5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #6 {main}
    thrown

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: iconic_navigation in wp-content/plugins/iconic-navigation/iconavs_menu_fun.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to a member function getTheme_settings() on null in wp-content/plugins/iconic-navigation/iconavs_menu_fun.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: font icon, navigation, icon, responsive, menu image upload...

iconic-navigation/iconic-navigation.php 77% from 13 tests

"Iconic Navigation" version 1.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path should be prefixed with a forward slash character ("/")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Domain Path: The domain path should use only dashes and lowercase characters ("")

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
No dangerous file extensions were detected18,712 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
HTML1018,310
SVG2007,766
JavaScript472511,814
PHP7146100820
CSS2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity25.00
▷ Minimum class complexity4.00
▷ Maximum class complexity62.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods36
▷ Static methods12.78%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/img/cadrosSite.png2.19KB1.47KB▼ 32.96%