90% floating-menu-button-links

Code Review | Floating Menu Links

WordPress plugin Floating Menu Links scored90%from 54 tests.

About plugin

  • Plugin page: floating-menu-but...
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.0-5.5
  • WordPress version: 6.3.1
  • First release: Jul 4, 2018
  • Latest release: Aug 28, 2020
  • Number of updates: 5
  • Update frequency: every 157.2 days
  • Top authors: blocksera (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,662 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.14ms] Passed 4 tests

This is a short check of server-side resources used by Floating Menu Links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.70 ▲0.54
Dashboard /wp-admin3.33 ▲0.0347.53 ▼4.43
Posts /wp-admin/edit.php3.38 ▲0.0247.29 ▼1.22
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.83 ▼15.44
Media Library /wp-admin/upload.php3.25 ▲0.0238.74 ▲2.07
Floating Menu /wp-admin/options-general.php?page=floating-menu-button-links3.4158.46

Server storage [IO: ▲0.98MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 17 new options
New WordPress options
can_compress_scripts
widget_recent-comments
fmbl_option_11
fmbl_hover_color
fmbl_option_1
theysaidso_admin_options
fmbl_radio_option_1
fmbl_radio_option_2
fmbl_icolor_option
db_upgraded
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Floating Menu Links
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲15713.84 ▼0.697.72 ▲5.8040.21 ▼4.43
Dashboard /wp-admin2,216 ▲365.74 ▲0.1091.92 ▲1.1739.24 ▼1.81
Posts /wp-admin/edit.php2,132 ▲352.29 ▲0.3041.77 ▲6.1633.90 ▼2.04
Add New Post /wp-admin/post-new.php1,548 ▲1323.31 ▲5.15668.55 ▲12.9837.13 ▼27.43
Media Library /wp-admin/upload.php1,424 ▲244.42 ▲0.2599.96 ▼17.0243.92 ▼1.36
Floating Menu /wp-admin/options-general.php?page=floating-menu-button-links24,9262.7478.0633.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% 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 17 options in the database
    • db_upgraded
    • fmbl_option_6
    • fmbl_radio_option_2
    • can_compress_scripts
    • fmbl_hover_color
    • fmbl_isize_option
    • fmbl_bcolor_option
    • fmbl_icolor_option
    • fmbl_radio_option_1
    • fmbl_option_11
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: conversion, menu, menu links, floating menu, float link

floating-menu-button-links/floating-menu-button-links.php Passed 13 tests

The main PHP script in "Floating Menu Links" version 1.2 is automatically included on every request by WordPress
48 characters long description:
Add sticky floating menu links to your web pages

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 detected4,019 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP334241,131
CSS3133197
JavaScript21020

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin