80% float-menu

Code Review | Float menu - awesome floating side menu

WordPress plugin Float menu - awesome floating side menu scored80%from 54 tests.

About plugin

  • Plugin page: float-menu
  • Plugin version: 5.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.4
  • WordPress version: 6.3.1
  • First release: Apr 7, 2017
  • Latest release: Oct 30, 2023
  • Number of updates: 78
  • Update frequency: every 30.7 days
  • Top authors: Wpcalc (100%)

Code review

54 tests

User reviews

32 reviews

Install metrics

30,000+ active /353,505 total downloads

Benchmarks

Plugin footprint 65% 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.13MB] [CPU: ▼6.57ms] Passed 4 tests

This is a short check of server-side resources used by Float menu - awesome floating side menu
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1542.85 ▲6.54
Dashboard /wp-admin3.45 ▲0.1048.09 ▼11.65
Posts /wp-admin/edit.php3.57 ▲0.2145.38 ▼3.56
Add New Post /wp-admin/post-new.php6.03 ▲0.1484.34 ▼17.25
Media Library /wp-admin/upload.php3.38 ▲0.1438.61 ▲6.20
Welcome /wp-admin/admin.php?page=wow-company3.3433.14
Float Menu Lite /wp-admin/admin.php?page=float-menu3.4734.91

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 89 new files
Database: 1 new table, 7 new options
New tables
wp_wow_fmp
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
wow_fmp_notice_action

Browser metrics Passed 4 tests

Checking browser requirements for Float menu - awesome floating side menu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲9414.26 ▼0.081.78 ▲0.0443.62 ▲7.12
Dashboard /wp-admin2,261 ▲895.63 ▲0.03101.59 ▼6.6543.23 ▲2.71
Posts /wp-admin/edit.php2,163 ▲632.01 ▲0.0240.61 ▼0.8833.10 ▼2.24
Add New Post /wp-admin/post-new.php1,550 ▲2223.20 ▲0.05676.90 ▲73.0351.19 ▼1.83
Media Library /wp-admin/upload.php1,463 ▲604.20 ▲0.02104.53 ▲11.2544.67 ▲3.90
Welcome /wp-admin/admin.php?page=wow-company9262.0030.6744.65
Float Menu Lite /wp-admin/admin.php?page=float-menu1,0982.1946.3336.51

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
These items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_wow_fmp
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • wow_fmp_notice_action

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Menu) image required
You can look at the official readme.txt

float-menu/float-menu.php Passed 13 tests

"Float menu - awesome floating side menu" version 5.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
50 characters long description:
Easily create floating menus of varying complexity

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 detected16,499 lines of code in 59 files:
LanguageFilesBlank linesComment linesLines of code
CSS122,9321218,272
PHP356066625,428
JavaScript93372901,749
PO File1274343618
Sass1581413
SVG10019

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity20.60
▷ Minimum class complexity4.00
▷ Maximum class complexity54.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes240.00%
Methods56
▷ Static methods47.14%
▷ Public methods4885.71%
▷ Protected methods11.79%
▷ Private methods712.50%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.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
1 PNG file occupies 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/about/image/icon.png121.88KB28.08KB▼ 76.96%