89% f12-floating-menu

Code Review | F12 Floating Menu, sticky menu for WordPress

WordPress plugin F12 Floating Menu, sticky menu for WordPress scored89%from 54 tests.

About plugin

  • Plugin page: f12-floating-menu
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 16, 2021
  • Latest release: Oct 1, 2023
  • Number of updates: 48
  • Update frequency: every 14.9 days
  • Top authors: forge12 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /3,964 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲1.89MB] [CPU: ▲11.77ms] Passed 4 tests

Server-side resources used by F12 Floating Menu, sticky menu for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.28 ▲0.8246.39 ▲2.58
Dashboard /wp-admin5.65 ▲2.3574.21 ▲23.45
Posts /wp-admin/edit.php5.79 ▲2.4474.72 ▲19.76
Add New Post /wp-admin/post-new.php7.87 ▲1.99107.06 ▲8.09
Media Library /wp-admin/upload.php5.64 ▲2.4153.33 ▲16.63
Settings /wp-admin/edit.php?post_type=floating_menu&page=f12_floating_menu_settings5.6451.36
Add New /wp-admin/post-new.php?post_type=floating_menu5.7069.83
Floating Menu /wp-admin/edit.php?post_type=floating_menu5.7753.29
Dashboard /wp-admin/edit.php?post_type=floating_menu&page=f12_floating_menu5.6449.97

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 78 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

F12 Floating Menu, sticky menu for WordPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,150 ▲38916.03 ▲1.617.12 ▲5.5341.76 ▲1.02
Dashboard /wp-admin2,439 ▲2627.30 ▲1.63128.39 ▲39.3642.94 ▼3.47
Posts /wp-admin/edit.php2,364 ▲2644.07 ▲2.0561.32 ▲15.1235.19 ▼2.88
Add New Post /wp-admin/post-new.php1,625 ▲8823.99 ▲5.83609.42 ▼9.6935.31 ▼40.14
Media Library /wp-admin/upload.php1,501 ▲1015.28 ▲1.1797.78 ▼9.5645.52 ▼0.95
Settings /wp-admin/edit.php?post_type=floating_menu&page=f12_floating_menu_settings1,9424.8084.3141.54
Add New /wp-admin/post-new.php?post_type=floating_menu8,2655.15140.4456.90
Floating Menu /wp-admin/edit.php?post_type=floating_menu1,3283.9856.7630.56
Dashboard /wp-admin/edit.php?post_type=floating_menu&page=f12_floating_menu1,1014.0447.0526.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt 75% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (15 tag instead of maximum 10)
  • Requires php: The plugin version is formatted incorrectly
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in f12-floating-menu/assets to your readme.txt
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt might help

f12-floating-menu/Application.class.php 92% from 13 tests

The main PHP script in "F12 Floating Menu, sticky menu for WordPress" version 1.3.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("f12-floating-menu.php" instead of "Application.class.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected20,383 lines of code in 59 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,552
PHP276521,0795,541
CSS91,6441423,901
JavaScript18206497937
Sass2780452

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes27
▷ Abstract classes311.11%
▷ Concrete classes2488.89%
▷ Final classes00.00%
Methods163
▷ Static methods106.13%
▷ Public methods12576.69%
▷ Protected methods169.82%
▷ Private methods2213.50%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
core/assets/logo-forge12-dark.png18.66KB6.28KB▼ 66.37%
core/assets/logo-forge12.png10.04KB3.91KB▼ 61.10%