10% wp-floating-menu-framework

Code Review | WP Floating Menu Framework

WordPress plugin WP Floating Menu Framework scored 10% from 54 tests.

About plugin

  • Plugin page: wp-floating-menu-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Sep 19, 2014
  • Latest release: Sep 20, 2014
  • Number of updates: 8
  • Update frequency: every 1.0 days
  • Top authors: kimipooh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,707 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/wp-floating-menu-framework/wp-floating-menu-framework.php+29
    Undefined variable: js_file_key

Server metrics [RAM: ▼1.90MB] [CPU: ▼53.55ms] Passed 4 tests

This is a short check of server-side resources used by WP Floating Menu Framework
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.38 ▼35.66
Dashboard /wp-admin2.11 ▼1.205.61 ▼45.79
Posts /wp-admin/edit.php2.11 ▼1.256.86 ▼42.09
Add New Post /wp-admin/post-new.php2.11 ▼3.785.71 ▼90.64
Media Library /wp-admin/upload.php2.11 ▼1.125.29 ▼31.17
Floating Menu Settings /wp-admin/options-general.php?page=wp-floating-menu-framework/wp-floating-menu-framework.php2.116.56

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
wp-floating-menu-framework_array
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP Floating Menu Framework
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9414.47 ▲0.091.67 ▲0.0840.81 ▼0.63
Dashboard /wp-admin2,210 ▲215.79 ▲0.8797.97 ▼11.8941.59 ▼2.65
Posts /wp-admin/edit.php2,090 ▲222.04 ▲0.0336.97 ▲0.2931.81 ▼8.84
Add New Post /wp-admin/post-new.php1,545 ▲3118.31 ▲0.89595.52 ▼82.8547.95 ▼9.30
Media Library /wp-admin/upload.php1,395 ▲74.25 ▲0.0793.30 ▼10.5441.09 ▼7.59
Floating Menu Settings /wp-admin/options-general.php?page=wp-floating-menu-framework/wp-floating-menu-framework.php8442.1927.6827.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/wp-floating-menu-framework/wp-floating-menu-framework.php+29
    Undefined variable: js_file_key
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • wp-floating-menu-framework_array
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-floating-menu-framework/wp-floating-menu-framework.php
    • > Notice in wp-content/plugins/wp-floating-menu-framework/wp-floating-menu-framework.php+29
    Undefined variable: js_file_key
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-floating-menu-framework/wp-floating-menu-framework.php
    • > Notice in wp-content/plugins/wp-floating-menu-framework/wp-floating-menu-framework.php+167
    Undefined index: js_file

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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-floating-menu-framework/wp-floating-menu-framework.php:27

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: framework, floating menu

wp-floating-menu-framework/wp-floating-menu-framework.php Passed 13 tests

The main file in "WP Floating Menu Framework" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
74 characters long description:
The plugin is the framework for setting up the floating menu in WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin324 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP12914144
JavaScript32815119
PO File1141661

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin