84% gecka-submenu

Code Review | Gecka Submenu

WordPress plugin Gecka Submenu scored84%from 54 tests.

About plugin

  • Plugin page: gecka-submenu
  • Plugin version: 0.7.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Jun 23, 2010
  • Latest release: Oct 20, 2015
  • Number of updates: 46
  • Update frequency: every 42.3 days
  • Top authors: Gecka (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

5,000+ active /56,792 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼2.73ms] Passed 4 tests

A check of server-side resources used by Gecka Submenu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1943.09 ▲2.53
Dashboard /wp-admin3.48 ▲0.1850.84 ▼3.19
Posts /wp-admin/edit.php3.60 ▲0.2450.39 ▼0.72
Add New Post /wp-admin/post-new.php6.07 ▲0.1888.02 ▼6.44
Media Library /wp-admin/upload.php3.41 ▲0.1838.65 ▼0.55

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options
widget_gksm-custom-menu-widget
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
gecka-submenu-pro-notice
widget_recent-comments

Browser metrics Passed 4 tests

Gecka Submenu: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.74 ▲0.811.73 ▼0.4443.47 ▼2.36
Dashboard /wp-admin2,198 ▲185.61 ▲0.0286.27 ▼4.2342.25 ▼2.60
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0737.36 ▲1.1836.02 ▲0.57
Add New Post /wp-admin/post-new.php1,526 ▼223.14 ▲0.05650.96 ▼38.4043.44 ▼24.52
Media Library /wp-admin/upload.php1,403 ▲64.19 ▼0.0198.20 ▼8.2440.88 ▼6.06

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • gecka-submenu-pro-notice
    • widget_gksm-custom-menu-widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: item_id in wp-content/plugins/gecka-submenu/views/Nav-Menu-Fields.php on line 5
    • > PHP Notice
      Undefined index: wp_version in wp-content/plugins/gecka-submenu/models/Nav-Menu-Edit-Walker.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/gecka-submenu/views/Nav-Menu-Fields.php:5
    • > PHP Notice
      Undefined variable: item_id in wp-content/plugins/gecka-submenu/views/Nav-Menu-Fields.php on line 4
    • > PHP Notice
      Undefined variable: item_id in wp-content/plugins/gecka-submenu/views/Nav-Menu-Fields.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/gecka-submenu/gecka-submenu.class.php:235
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gecka-submenu/gecka-submenu.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/gecka-submenu/models/Nav-Menu-Edit-Walker.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gecka-submenu/widgets/Custom-menu.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Advanced custom menu widget), #2 (Autopopulating with child pages)
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can take inspiration from this readme.txt

gecka-submenu/gecka-submenu.php Passed 13 tests

This is the main PHP file of "Gecka Submenu" version 0.7.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
72 characters long description:
Enhances the worpdress nav menu system, autopopulate with children pages

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,593 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP94122091,366
PO File14774120
CSS414057
JavaScript324150

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity21.90
▷ Minimum class complexity2.00
▷ Maximum class complexity60.00
Average method complexity4.73
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods56
▷ Static methods00.00%
▷ Public methods5191.07%
▷ Protected methods00.00%
▷ Private methods58.93%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png14.94KB7.43KB▼ 50.25%
screenshot-2.png12.38KB6.53KB▼ 47.27%