10% wpb-floating-menu-or-categories

Code Review | WPB Floating Menu or Categories - Sticky Floating Side Menu & Categories with Icons

WordPress plugin WPB Floating Menu or Categories - Sticky Floating Side Menu & Categories with Icons scored10%from 54 tests.

About plugin

  • Plugin page: wpb-floating-menu...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 6, 2018
  • Latest release: Aug 9, 2023
  • Number of updates: 11
  • Update frequency: every 180.7 days
  • Top authors: wpbean (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /8,348 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wpb-floating-menu-or-categories/admin/category-icon.php+11
    Undefined index: taxonomy

Server metrics [RAM: ▼1.75MB] [CPU: ▼53.81ms] Passed 4 tests

This is a short check of server-side resources used by WPB Floating Menu or Categories - Sticky Floating Side Menu & Categories with Icons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.24 ▼1.225.52 ▼37.86
Dashboard /wp-admin2.26 ▼1.047.69 ▼42.28
Posts /wp-admin/edit.php2.26 ▼1.108.26 ▼41.77
Add New Post /wp-admin/post-new.php2.26 ▼3.637.94 ▼93.31
Media Library /wp-admin/upload.php2.26 ▼0.979.34 ▼26.87
Floating Menu /wp-admin/admin.php?page=wpb-floating-menu-or-categories-about2.267.13
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins2.418.19
Settings /wp-admin/admin.php?page=wpb-floating-menu-or-categories-settings2.266.64

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-comments
category_children
db_upgraded
widget_theysaidso_widget
wpb_fmc_style_settings
wpb_fmc_category_settings
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
wpb_fmc_memu_settings

Browser metrics Passed 4 tests

A check of browser resources used by WPB Floating Menu or Categories - Sticky Floating Side Menu & Categories with Icons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,150 ▲40415.43 ▲1.085.19 ▲3.3541.31 ▼5.15
Dashboard /wp-admin2,418 ▲2336.62 ▲0.77133.37 ▲18.8143.83 ▼0.65
Posts /wp-admin/edit.php2,329 ▲2373.55 ▲1.5553.55 ▲16.5234.69 ▲2.07
Add New Post /wp-admin/post-new.php1,584 ▲6524.65 ▲1.52587.60 ▼52.4129.19 ▼27.80
Media Library /wp-admin/upload.php1,471 ▲834.38 ▲0.1985.85 ▼12.4344.90 ▲3.68
Floating Menu /wp-admin/admin.php?page=wpb-floating-menu-or-categories-about1,1373.5051.16330.05
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins1,1923.2444.6928.81
Settings /wp-admin/admin.php?page=wpb-floating-menu-or-categories-settings1,6073.6067.7129.40

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
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/wpb-floating-menu-or-categories/admin/category-icon.php+11
    Undefined index: taxonomy
  • The uninstall procedure has failed, leaving 10 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • wpb_fmc_style_settings
    • category_children
    • wpb_fmc_memu_settings
    • widget_theysaidso_widget
    • widget_recent-posts
    • wpb_fmc_category_settings

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpb-floating-menu-or-categories-settings
    • > Notice in wp-content/plugins/wpb-floating-menu-or-categories/inc/wpb_scripts.php+29
    Undefined index: taxonomy

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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WPB_FMC_WeDevs_Settings_API' not found in wp-content/plugins/wpb-floating-menu-or-categories/admin/plugin-settings.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/wpb-floating-menu-or-categories/admin/admin-page.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/wpb-floating-menu-or-categories/inc/class-tgm-plugin-activation.php:2016

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (13 tag instead of maximum 10)
Please take inspiration from this readme.txt

wpb-floating-menu-or-categories/main.php 92% from 13 tests

The main PHP file in "WPB Floating Menu or Categories - Sticky Floating Side Menu & Categories with Icons" ver. 1.0.7 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wpb-floating-menu-or-categories.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin5,907 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP98151,8802,843
SVG1002,671
CSS31818393

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity35.08
▷ Minimum class complexity1.00
▷ Maximum class complexity195.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods148
▷ Static methods64.05%
▷ Public methods12584.46%
▷ Protected methods2315.54%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin